3 ms·
Hmm, One interesting thing is that out-of-date comments may tell you that whoever last modified the code didn't know what they were doing.
by joe_the_user 16y ago
Hmm,
One interesting thing is that out-of-date comments may tell you that whoever last modified the code didn't know what they were doing.
- ajuc 16y agoI find it easier to remember to add meaningful comment to commit (we have commit hook that prevents you from commiting without comment), than to remember to change every comment in source code that I touch (especially if it is far from the lines of code I changed - eg in the class header, or in the header of the base class when I only change some method in derived class). Commit messages tells me on each line, why it is here (we have policy of adding JIRA task number to the commit message).