Re:Signs You're a Crappy Programmer (and don't know it)
by akkartik on Tuesday November 27, 2007 @12:19PM
(#83960)
Oh, good point. I am tolerant of globals :). Also of assignment instead of equality in conditionals (with an extra layer of parens to flag their unconventional nature). I've also used class methods where the implicit variable is in this.
I was trying to point out that the idiom becomes while(line=readline()) which I'd rather avoid since = and == often get confused in a conditional.
It would normally be silly to get into this level of detail but I use this so often.