A community in which webmasters can ask for help with topics such as PHP coding , MySQL , IT jobs, web design, IT security.
Current location:homephp forumphp talk in 2009 yearWhat does i_tmp2 stand for when used as a variable? - page 1
User InfoPosts
What does i_tmp2 stand for when used as a variable?#1
Sorry for a noobish question but I(ve stumbled upon some other person(s code and he is using i_tmp2 inside of a for loop. When is the i_tmp2 notation used?

posted date: 2009-04-10 12:46:00


Re: What does i_tmp2 stand for when used as a variable?#2
I had made out the solution of this problem. click to view my topic...

hope that hepls.

posted date: 2009-04-10 12:46:01


Re: What does i_tmp2 stand for when used as a variable?#3
Ask the person who actually wrote the code. Every individual programmer has their own reasons for choosing their notation styles for particular types of code.

posted date: 2009-04-10 12:52:00


Re: What does i_tmp2 stand for when used as a variable?#4
I don't think this deserves to be downvoted as it's only a rookie mistake.

posted date: 2009-04-10 12:54:00


Re: What does i_tmp2 stand for when used as a variable?#5
It is used when the programmer isn(t very good.Oh come on, it(s a joke.

posted date: 2009-04-10 12:58:00


Re: What does i_tmp2 stand for when used as a variable?#6
i in i_tmp2 probably stands for "integer", i.e. telling you it(s a variable used for storing whole numbers.tmp2 in i_tmp2 probably just means it(s the second temporary variable created.

posted date: 2009-04-10 12:59:00


Re: What does i_tmp2 stand for when used as a variable?#7
And you can tell this from one variable name?

posted date: 2009-04-10 13:04:00


Re: What does i_tmp2 stand for when used as a variable?#8
Yes you absolutely can tell this from one variable name. All good programming methods include strict rules on variable naming particularly the use of meaningful variable names. I always prefix variables with their type so at least it looks like he is doing that part right.

posted date: 2009-04-10 13:22:00


Re: What does i_tmp2 stand for when used as a variable?#9
AHH HUMOR NAZIS!

posted date: 2009-04-10 14:45:00


Re: What does i_tmp2 stand for when used as a variable?#10
I thank everyone who took the time to answer. I think this explanation comes closest to deciphering the meaning behind this variable naming.

posted date: 2009-04-10 15:02:00


Re: What does i_tmp2 stand for when used as a variable?#11
There is a slightly outdated variabla naming convention called Hungarian notation, credited mostly to Charles Simonyi, a Hungarian programmer worked for Microsoft.With HN, the first character of the variable name is i for integer, l for long, w for word, etc. It is (was) useful with strongly typed languages to keep all the programmers remembering the type of the variables used/expected by functions.Nowdays it is mostly out of fashion :)

posted date: 2009-04-11 00:11:00


select page: « 1 »
Copyright ©2008-2017 www.momige.com, all rights reserved.