News for hackers. Stuff that matters.
Re:How I became a better programmer (2017) by scabarott on Tuesday March 24, 2020 @08:35PM (#22680717)
+1. Add:

- 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.

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.
Re:How I became a better programmer (2017) by mattchamb on Wednesday March 25, 2020 @05:50AM (#22683186)
I use variable, function and class names as a rough guide on whether I need to refactor. If I name it accurately and the name gets too long, its probably doing too much.