2 ms·
I disagree. I think about comments after many years working with diverse and distributed teams mainly this way: comments can be ignored. What do I mean by that
by _the_inflator 4y ago
I disagree. I think about comments after many years working with diverse and distributed teams mainly this way: comments can be ignored.
What do I mean by that? Write as many comments as possible. You do not need to read them. However, if you could help at least some people finding the why of some code, you helped them a lot.
Also never underestimate how much the human brain forgets in a couple of months. Many devs are blind to the fact, that for every part of code they are working at, a lot more don't.
John Woods has it: "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. Code for readability." Comments help a lot.
Do your teams as well as your future self a favor. ;)