Ask HN: What do you wish more programmers knew about? 3 points by cloogshicer 3y ago ↗ HN Mainly curious about things that annoy you when your coworkers do them, stuff that makes code hard to understand/reason about.
[–] FroshKiller 3y ago ↗ I 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 3y ago ↗ Yup, it's a shame that they're sometimes taught to be an anti-pattern.
[–] chiefalchemist 3y ago ↗ Maintainability 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.
4 comments
[ 0.33 ms ] story [ 15.8 ms ] threadSooner 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.