Earlier quoted context omitted.
Comments are often a code smell indicating that the code was written in a hard to understand way. On a top notch code base - the kind that almost nobody works on - they probably should be sparse and mostly unnecessary. Moreover, when a lot of people are asked to comment they write stuff like "this function does x to y" when the function is named "x_to_y". No shit sherlock comments I call them. I'd always prefer to ha…
Check out the CPython code base sometime, as an example of a top notch code base. Are the comments sparse?
https://github.com/python/cpython/blob/master/PC/python_uwp....
I'd say that redis is probably a better example of gold standard clean C code, though, and they follow the rule of "don't comment unless it's decidedly non-obvious" pretty assiduously:
https://github.com/antirez/redis/blob/unstable/src/ae_epoll....