If you’re a programmer, you can feel my pain. Is there anything worse than variable names that tell you NOTHING about what the variable does? Today I was debugging someone else’s code and there were two boolean variables – one named check1 and one named check2. The worst part is that right about their declarations were comments that said “check to see if eligible for telnet” and “check to see if eligible for SNMP“. So, why the heck were they not named something like telnetEligible and SNMPEligible? AARRGGHH!
Useless Variable Names
1 Reply