DEV Community

Discussion on: 5 clean code techniques you can start doing today

Collapse
 
patferraggi profile image
Patricio Ferraggi • Edited

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.

Collapse
 
codemouse92 profile image
Jason C. McDonald • Edited

That's when we enforce intent comment.

People abuse lambdas, but I don't hear any calls to eschew them from code.