Useless Variable Names

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!

1 thought on “Useless Variable Names

  1. Brian Benzinger

    Oh how I feel your pain. I hate when that happens and even worse when the persons code that you are working on has no comments! Gurr.

    RESPONSE: Don’t even get me started on that topic!

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *