In a Nutshell
Major writing is to say what has been seen, so that it need never be said again.
We write a lot of comments. That’s because we write a lot of code. Learning to write the right sort of comment is important, or our code may keel over under the weight of inappropriate and outdated commenting.
Comments are no more important than the code they annotate—you can’t make bad code good using comments. Your aim should be self-documenting code that requires no comments at all.
|
Good programmers . . . |
Bad programmers . . . |
|---|---|
|
|
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access