News for hackers. Stuff that matters.
Re:Best practices for writing code comments by u801e on Friday December 24, 2021 @09:56AM (#29674080)
> make sure the comments are updated while you're in the code. You can also look at them in a code review.

People will invariably forget to update comments and unless the comments show up in context lines of the diff associated with a change, it's likely that reviewers will overlook the need to change them.

Re:Best practices for writing code comments by Gibbon1 on Friday December 24, 2021 @04:39PM (#29678000)
You comment is a standard explanation for not having comments. Always makes me wonder why stale comments aren't flagged during code review? Seriously failure to update comments should eventually lead to constructive dismissal.
Re:Best practices for writing code comments by sokoloff on Friday December 24, 2021 @07:48PM (#29679247)
I don't think "constructive dismissal" is the phrase is you want there. (That's normally associated with employer wrongdoing or, at a minimum, mischaracterizing the terms of an employee's departure..)