@nixCraft Yep, I usually ignore the comments if I try to understand what some code does.
If the code somehow doesn't seem to make sense, or something isn't obvious, I glance through the comments for a hint.
@nixCraft Yes, absolutely. But people who fundamentally believe code doesn't need comments are still wrong:
Summarising sections of code with comments is extremely valuable, so you can quickly skim over sections and find the one which is important for your task.
Even more so however, code can't explain design decision, non-obvious limitations, assumptions (that can't be represented in an assert-call) or any other rationales. Comments are crucial for that.
So, don't be one of those people who fundamentally disallow comments in a project because "code is documentation".
Programmers: The code does what the code says! *vigorous finger-jabbing* Also programmers: Naming things is the hardest problem in computer science 😭 *dramatic hair flip, exit scene*
@nixCraft Not only do comments lie, but the documentation often does.
Why is it that we hear about code reviews but seldom if ever, hear about documentation reviews?
As somebody who has maintained a personal wiki for over 20 years, and now can't live without it, I can tell you, even my own documentation is often WRONG!