Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
52cal4975yAs you get more experience creating new projects you’ll realize you shouldn’t have to write comments. If a piece of code is hard to read and you can’t make the code more declarative, that’s when your tests come in as a source of explanation.
-
"A comment is a failure to express yourself in code. If you fail, then write a comment; but try not to fail."
- Robert C. Martin -
But when someone else writes code and asks you if it's good or how they could make it better, the awkward time it takes to read and understand just what it's trying to do. The awkward time lasts longer with how bad the code is. That's when you want an understandable comment
Although, with code like that I doubt the comment would make sense either.
I never write comments but I probably should
joke/meme