3 ms·
Speaking only from personal experience on personal projects, I have screwed myself up far more often by not writing comments, or deleting comments prematurely i
by krapp 7y ago
Speaking only from personal experience on personal projects, I have screwed myself up far more often by not writing comments, or deleting comments prematurely in order to "clean up" the codebase, than I have by writing too many comments.
I disagree that code should never have comments. There's no such thing as perfectly self-documenting code of more than trivial complexity, the intended means of documentation for code is comments. That's what they're there for, they're a tool, use them.
Beyond that, it's entirely a matter of style and personal preference.