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
-
jerodev5617yI'm the only one at work who writes comments in code. And my colleagues keep telling me not to... 😑
-
Actually comments can be bad smells. If you apply good modular understandability you shouldn't have to use them. (not gonna lie I like a good comment myself but recently learned about modular concepts)
-
b3b340657yI'm only commenting stuff like "// need to do this better later" or "// needs optimization" :)
But sometimes when I write a line of code, have a look at it, and am just like "wtf is this" I comment in a few words what the line does so I don't kill myself. I end up having about 3 comments in 100 lines of code -
@jerodev That's probably because your comments are unnecessary. Code should tell its own story in variable and function names that tell what the code does.
-
kenpeter9057yWrite own code no comments. Read other people's code, write large amount of comments
Related Rants
Some of us have co-worker who never wrote comment in their code.
undefined
lazy devs
bad code
comment