News for hackers. Stuff that matters.
Re:Fred P. Brooks has passed away by Oddskar on Friday November 18, 2022 @06:59AM (#33653416)
> 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.

Re:Fred P. Brooks has passed away by acka on Friday November 18, 2022 @07:49AM (#33653835)
Which 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.