5 ms·
> It’s really hard to keep comments up to date as code is moved and refactored. Hard disagree with this. If your comment is so volatile then that really sound
by Oddskar 4y ago
> It’s really hard to keep comments up to date as code is moved and refactored.
Hard disagree with this.
If your comment is so volatile then that really sounds like there's something architecturally wrong with the code.
Most of the time these kind of "comments" can be turned into either a test, or a extensive description that goes into version control.
Because commit messages are just that: a comment for a specific moment in time. There are lots of options to inline comments.
- acka 4y agoWhich is why I find looking at `git blame` (or one's favorite IDE's/SCM's equivalent) output so very useful in case of undercommented code.