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
-
pajaja17337yI had a manager that used comments for version control. For every change he would have a comment containing date and explanation coupled with a obsolete piece of code.
-
robbt447yThe fun part is running into someone else's code that they have abandoned and trying to figure out what they were thinking when they wrote that code. This is where a degree in anthropology could come in handy.
-
When rewriting code I sometimes wrap the old stuff in a function, which is way easier to read than comments. Then delete it later on.
Related Rants
Keeping old and unused code blocks commented out and not deleting them immediately is the equivalent of leaving that bottle of soy sauce in the fridge even though you know very well that you won't use them ever again.
undefined
old code
code
ide
comments