Thread: var names
View Single Post
Old May 8th, 2006, 3:09 PM   #15
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
Quote:
Originally Posted by Booooze
I think that's the way professionals do it as well don't they?
No, not always the case. Although, it is good practice, in my experience I have rarely come across naming conventions like those, outside of an education environment.

However, I have came across names like iv2, qrz, bobFox, fred, asdfw2etgha, a, aa, aaa, aaaa, aaaaa and so on. Obviously, these programmers didn't want anyone to maintain their code, giving them a false sense of job security (they were wrong, as the code was rewritten).

More often than not, the variables are named in such a way that you know their purpose, not necessarily their type. IE: thermalIndex, heatSignature, balance, firstName, zipCode, etc. The type would normally be derived from how the variable is utilized within its code block in relation to other lines.
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote