News for hackers. Stuff that matters.
Re:Don't trust comments by spicybright on Wednesday February 02, 2022 @04:53PM (#30184586)
I kind of wish there was a verifier for function/statement comments to flag inaccurate comments (besides interface descriptions + general comment at the top of a function.)

Sort of a combination of a reverse github auto-pilot metric and checking how old a comment is based on it's surrounding code.

You could even syntax highlight based on how accurate it thinks it is like how down voted HN comments fade out.

Re:Don't trust comments by Natsu on Wednesday February 02, 2022 @07:45PM (#30186746)
You could flag how many revisions it has been since the comments were updated in a function as compared to the code, but if that became a metric, someone would probably start optimizing for it by making trivial comment changes without doing real review.
Re:Don't trust comments by xwdv on Wednesday February 02, 2022 @04:54PM (#30184605)
People don’t care about accurate comments, they care about comments they agree with.
Re:Don't trust comments by tomcam on Wednesday February 02, 2022 @05:46PM (#30185216)
OK well you just rewrote my worldview. That observation can goes deep as one wishes go go with it...
Re:Don't trust comments by xwdv on Wednesday February 02, 2022 @07:09PM (#30186329)
It becomes obvious this is the way the world works the more you start to generate unique comments rather than simply agree or upvote other people’s comments.