|
|
|
|
|
by ckdot2
1076 days ago
|
|
If code is wrong or out of date, the program will fail or stop doing that it's supposed to do.
If comments are wrong or out of date, it will mislead the developer or at least confuse them if the comment says something else than the code.
A wrong comment is worse than no comment - and usually developers don't care about comments as much as for the code.
Why comment some code anyway if the code is easy to read? The only reason is to explain -why- something has been developed, not -how-. |
|
Actually, speaking as someone's who's been generally critical of the "get AI to write our PRs!" thing, having an AI attempt a quick sanity check of comments near where your edits are could maybe work well