by layer8 · 4y ago · 0 comments
For example: http://web.archive.org/web/20100415205750/http://blog.weapon...
But there is also information that you can't just describe into the code. There are the examples I already gave above. Another one could be what I did this afternoon: I had 2 options to solve a problem, I chose the more complicated one but the one that works in every case. I added a 4 lines comment describing the second option and why I didn't use it. There is no other way to add this information that would be useful for me or another developer in the future other than a comment.
At least once I forgot to add a comment in such a case and luckily I got the question of "why not just..." in the code review.
They are pretty clear about "useful comments" - by what they wrote, it sounds like they already understand what you wrote.
No-comment self-documenting code is largely a backlash to this style, which is how introductory coding courses teach (taught?) was the right way to do comments. For a lot of programmers who first started in in one of these courses it tended to stick because they were never taught another way.