One of the most annoying things I keep seeing is people who write shorthand code with variables like:
i = true
Where "i" means "initialize" or some miscellaneous other word that starts with an "i."
How will you go back later and debug when the code has reached 1,000,000 lines and you forgot what "i" does?
Better yet, even 1,000 lines would throw me for a loop (pun intended).
I mean, C++ code is already cryptic enough, why the extra brevity?
Sometimes I truly think people initially write the full names in the code, and then go back and make things cryptic on purpose just to scare away code thieves. In that case I understand, but is the stereotype really true that programmers are just lazy?
There is a way to be brief yet descriptive without feeling like you are monologuing in your code. I understand that we can sacrifice a little human readability (according to human language standards) for the sake of "getting it done" but really....
init = true
would be better, but even then....
Anyone else know what I'm talking about (I am a beginner)?
Edited by Tutorial Doctor, 15 January 2014 - 09:18 PM.