Mail Archives: djgpp/1995/06/06/23:38:38
> My experience is that those of my colleagues that write good comments
> write such organized code that the comments are hardly necessary.
> Those who write code that functions correctly but is harder to read,
> usually have their minds so much into the program that anything they
> write wouldn't make much sense to the un-initiated anyway.
One exception.
When a programmer is *required* to write obfuscated code in order to
make the function work correctly, it is a good idea to include a
comment that says "hey, I meant to do that. Here's why...".
Comments should answer the question "why", not "how".
- Raw text -