3 ms·
Ask HN: What do you wish more programmers knew about?
Mainly curious about things that annoy you when your coworkers do them, stuff that makes code hard to understand/reason about.
- FroshKiller 4y agoI wish more of my colleagues used early returns. I regularly find myself four or five levels of indentation deep because of nested if statements when we could've bailed 30 lines ago and saved the cognitive load.
- cloogshicer 4y agoYup, it's a shame that they're sometimes taught to be an anti-pattern.
- chiefalchemist 4y agoMaintainability matters. Sooner or later someone else - perhaps under duress - will have to do something with you code. Assuming everything is obvious is a bad assumption to make.
- legrande 4y agoKludgy code. Cargo culting. Lack of commenting & docs.