Re:Michael Vanier: LFM and LFSP
by jbooth on Friday October 23, 2009 @09:11PM
(#899954)
Smart != Wise.
I used to try to cram more stuff onto a line because I thought it was elegant. Now, depending on the circumstance, sometimes I'll deliberately split up something that I originally wrote as a 1-liner because, at second pass, it looks like it'll be hard to read for the next person.
Just having the intermediate variable name makes your code more self-documenting in some situations.
I used to try to cram more stuff onto a line because I thought it was elegant. Now, depending on the circumstance, sometimes I'll deliberately split up something that I originally wrote as a 1-liner because, at second pass, it looks like it'll be hard to read for the next person.
Just having the intermediate variable name makes your code more self-documenting in some situations.