Re:Ask HN: What do you consider as “bad” code?
by antoineMoPa on Tuesday January 25, 2022 @01:30PM
(#30075865)
entirely_too_long_variable_names -> I prefer very long variable names which are self-explaining and easy to grep. Abbreviations make code less consistent and less greppable. Also what's the point of making shorter variable names if you need a comment to explain what it's doing - or worse I need to email the author to find the answer. A variable name should be the minimal representation of the role of this variable, but without cryptic shortcuts or abbreviations.
[ Parent
| on HN ]
There are no comments on this comment yet.