Re:How I became a better programmer (2017)
by chrismcb on Wednesday March 25, 2020 @04:54AM
(#22682975)
Variable names sound be succinct . They don't need to be short, but they also shouldn't be essays. I had one coworker who would essentially write everything the function did. Variable names would be 100+ chars. It was impossible. Variable names should be as long as needed , but no longer.
- Use long expressive variable/function/class names that tell me exactly what this variable/function/class does
I have to constantly fight the urge to have code fit in the littlest amount of space possible.