News for hackers. Stuff that matters.
Re:Generate Comments from Code by sitzkrieg on Wednesday July 20, 2022 @03:33PM (#32170997)
if it can be generated from the code its of no value. should cover the why, not how
Re:Generate Comments from Code by ncmncm on Wednesday July 20, 2022 @03:49PM (#32171218)
It should be called an "automatic annoyance generator".

The comments generated are not just useless, they are harmful. They made it harder to recognize and act on actually meaningful comments.

Re:Generate Comments from Code by pan69 on Wednesday July 20, 2022 @03:49PM (#32171212)
That was my intial reaction as well but then I thought, if the AI can't make sense of it then a human probably wouldn't either. So, I guess a tool like this can serve to check if code is actually readable. I think variables names play a big role in this (i.e. communicate intent).
Re:Generate Comments from Code by alienspaces on Wednesday July 20, 2022 @03:41PM (#32171117)
Agreed! A useful comment would only be present to describe an edge case, a related business rule, a future change that might affect this code, virtually anything another engineer might need to be aware of, that is not the code they are looking at.
Re:Generate Comments from Code by ebalit on Friday July 22, 2022 @06:52AM (#32190598)
It might be very interesting to write the "no value" comments automatically. It can help us focus on and emphasize the part that we think is missing from the autogenerated ones.