Robert C. Martin's Clean Code book has a great section on comments: - The proper use of comments is to compensate for our failure to express ourself in code. Comments are always failures. We must have them because we cannot always figure out how to express ourselves without them, but their use is not a cause for celebration. So when you find yourself in a position where you need to write a comment, think it through a…
> Programmers can’t realistically maintain them. Why not? The effort involved is not very high. If you mean that they won't maintain them, well, I agree. Sometimes I fail to do so myself - but that's my laziness, not because keeping a comment up to date is actually difficult. The fact that programmers can be lazy is why we put processes in place to catch ourselves - code reviews, code style enforcement, and so on.
Because, realistically developers will be lazy. For example:
"Sometimes I fail to do so myself - but that's my laziness"
> code reviews
So, here is the thing, "programmers can be lazy." Programmers can also miss things. Code reviews don't catch everything.
So, when someone says "programmers can’t realistically maintain them", they are being realistic. Really. It's great to be hopeful, but the simple fact is, you can't trust that comments are maintained.