I am a self-taught developer from Argentina currently living in Spain. I am passionate about improving my technical skills and helping others do the same.
I do agree with you, maybe the rule should be then, only write comments to provide intent? unfortunately, this reason is not the main reason people use comments, at least not in experience. People tend to use comments to restate code or explain bad implementations, intention comments are just a small part of that.
I feel like it is another exception, and not something big enough to change a rule.
I do agree with you, maybe the rule should be then, only write comments to provide intent? unfortunately, this reason is not the main reason people use comments, at least not in experience. People tend to use comments to restate code or explain bad implementations, intention comments are just a small part of that.
I feel like it is another exception, and not something big enough to change a rule.
That's when we enforce intent comment.
People abuse lambdas, but I don't hear any calls to eschew them from code.
To Comment Or Not To Comment?
Jason C. McDonald ・ Jan 20 '19 ・ 12 min read