News for hackers. Stuff that matters.
Re:Clarity over brevity in variable and method names by crazygringo on Monday September 10, 2012 @03:15PM (#4501606)
Oh, man. I've heard it all the time.

It's not so much "screw readability" as "long names are ugly and annoying to type, and if you can't figure out what 'i' and 'x' and 'dx' and 'j' mean in this context, then you lack intelligence and that's your problem, because it's obvious, duh. Real programmers are efficient, not verbose."

I've worked with quite a number of programmers who seem to have a very hard time putting themselves in the shoes of someone who will have to read/maintain their code later. Good variable names are all about communication, and there are certainly programmers out there who don't have communication as one of their strong suits.

Re:Clarity over brevity in variable and method names by debacle on Monday September 10, 2012 @03:34PM (#4501739)
> I've worked with quite a number of programmers who seem to have a very hard time putting themselves in the shoes of someone who will have to read/maintain their code later.

We all do that. How many times have you looked at something, went "What asshole wrote this?" Only to find out from git that it was you?

Re:Clarity over brevity in variable and method names by crazygringo on Monday September 10, 2012 @03:44PM (#4501798)
Ha! Yeah... way more often than I'd like to admit.
Re:Clarity over brevity in variable and method names by j_baker on Monday September 10, 2012 @04:13PM (#4501971)
It sounds like what you're saying is that the strawmanning can go both directions. People who want longer variable names can be regarded as lacking intelligence and being inefficient. People who want shorter variable names can be regarded as not caring about readability or communication. The truth, as usual, is somewhere in the middle.