News for hackers. Stuff that matters.
Re:How to Write Unmaintainable Code (2017) by maze-le on Friday August 17, 2018 @08:31AM (#17782263)
Yes, single letter variables do have their place. But this place is very limited. Consider these lines in ruby

    data.reject{|e| e.value.nil?}

    data.reject{|element| element.value.nil?}
I would always prefer the first one. My general rule of thumb is: If a variable has the scope of exactly one line, or if it is an incremental counter, use one letter.
Re:How to Write Unmaintainable Code (2017) by nailer on Friday August 17, 2018 @09:41AM (#17782746)
I just read it and thought 'e' was an error.