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
-
donuts236728ySo do I... IMO, It's better than causing a prod issued because you forgot about one tiny little bit critical detail/quirk...
-
iPlexor918yI like comments, but experience has thought me to keep them terse.
It's important to favour readable code.
Comments don't refactor! -
donuts236728y@Sneakback I don't know about OP, but here's an example I had to comment:
//This copies the values in a into b; logic depends on the actual implementation of A used
a.Copy(b);
Eventually I think I did rename the method to CopyTo but that took awhile... (I wasn't the one who wrote the original method) -
civel1138yYeah, not a fan of most comments. Would prefer to refactor the code to make more sense/be more readable.
Problem is that sometimes comments lie; code never lies tho. -
Well if you just comment what the code does its bullshit cus thats like repeating yourself..😅
Related Rants
I comment my code. Thats considered a bad practice between some coders
undefined
wk47