News for hackers. Stuff that matters.
Re:Every programmer has a variable naming philosophy by sdh on Thursday February 04, 2010 @05:20PM (#1101804)
Why does it matter if a variable name is longer than it should be? As long as the code is legible, who cares?

I assume the author isn't saying that all variables should be named like "i" and "j" (and those examples are bad ones since they are well-known conventions), but that a variable shouldn't be named any longer than is needed to convey meaning.

Ok. Why even make this point? Programmers should err on the side of too long rather than too short. And, whenever possible, use the conventions of the language in favor of their personal philosophy.

There are no comments on this comment yet.