4 ms·
I tend to put comments around VERY tricky pieces of code, but the rest belongs to the commit log. I feel code comments tend to rot because they are not as immu
by deanmoriarty 7y ago
I tend to put comments around VERY tricky pieces of code, but the rest belongs to the commit log.
I feel code comments tend to rot because they are not as immutably bound to the code they describe as a commit message is, and for the most part my commit messages are too verbose to end up in code comments, it would create too much clutter.
I have a good integration with my editor that shows inline blame annotations for the current line (and full message is a keystroke away).