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
![](/static/devrant/img/pipeless-devrant-banner-white.png)
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
tass3748yCode is supposed to be self explanatory, if it needs comments something is probably wrong
-
ffafara188yOr write tests... One look at the test name/description and you should know what the code is supposed to do.
-
@tass - I usually let my code do the explaining unless I need to do some magic for a very specific scenario. Then I try to at least tell future me why I did it that way. 😬
-
youprat11598yWe stick to naming conventions that spell out what the variable is for, and what the method is upto. Strictly, no comments in code.
-
Or create exams... The expected behavior of the code should be immediately apparent from the test name and description.
Related Rants
Writes program.
Doesn't comment code.
*Yeah totally gonna remember everything* 🕶
*5 weeks later*
what the heck was I writing.? 🙄😥ðŸ˜
undefined
comments