3 ms·
When I find myself writing a comment, 9 out of 10 times I pause and think. I can usually clean up the code so I don't need a comment. Comments in a codebase of
by brianwawok 10y ago
When I find myself writing a comment, 9 out of 10 times I pause and think. I can usually clean up the code so I don't need a comment.
Comments in a codebase often lie. Someone makes a statement then code changes, making it a lie. A comment that is a lie adds negative value.
I think more than 1 comment per 100 lines of code means you should think more and refactor more and comment less.