|
|
|
|
|
by robertfw
262 days ago
|
|
I don't know, I tend to agree. I feel like the number of times I've been thrown off by an out of date comment for code that could have probably been refactored to be clearer, outweigh the times a comment has helped. Docstring comments are even worse, because it's so easy for someone to update the function and not the docstring, and it's very easy to miss in PR review |
|
Good and up to date comments are good and up to date. Bad and outdated comments are bad and outdated. If you let your codebase rot then it rots. If you don't then it doesn't. It's not the comment's fault you didnt update it. It's yours.