News for hackers. Stuff that matters.
Re:I’m a productive programmer with a memory of a fruit fly by ParetoOptimal on Monday September 19, 2022 @10:21PM (#32906904)
> If I am in a rush to implement something and then am sidetracked because of a stupid small bug, then I just fix that small bug in the code.

What if the small bug that side-tracked you eould have been prevented by a comment?

Re:I’m a productive programmer with a memory of a fruit fly by hutzlibu on Tuesday September 20, 2022 @05:01AM (#32909336)
What if the small bug got introduced because of lack of time to cater all the verbose comments?

But seriously, in the cases I remember - not really. Most bugs are a cause of lack of higher level understanding of a certain module. Some clear comments can help with that, but better is proper higher level documentation and the time to read and maintain them.

Re:I’m a productive programmer with a memory of a fruit fly by ParetoOptimal on Tuesday September 20, 2022 @09:46AM (#32911593)
> Most bugs are a cause of lack of higher level understanding of a certain module. Some clear comments can help with that, but better is proper higher level documentation

Agreed. However I've found that the farther away the documentation is, the less people will use it.

If it's external, it's very hard to get people to use it.