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
-
androso8918yWhat if I clean the comments so they're not so bloody?
Haha sorry I had to.
But yeah, some people vomit all over code with comments :3 -
I point blank refuse to comment my code. You code should be readable to a developer. and naming should be good enough for a none developer to know what they looking at
-
I disagree. There are situations where a comment can be way more concise than having to explain something in a variable name or through your code. Like performing a seemingly useless operation which has to remain there for IE8 compatibility or the like.
-
androso8918y@saDammie-Jr
He was saying he hates comments that are used to cover up bad code.
Obviously in the case you mentioned a comment would be perfectly fine :). -
appmaker3958yI know couple of developers who work for Microsoft in the seattle area. They told me they were told to write comments for almost every line of code they write explaining what the line does and why.
-
Xmiq1078yI usually write comments to explain the logic. It helps get to the correct state of mind quicker.
-
don't write comments for other people. write the comments for yourself. don't assume you are a sponge.
Related Rants
-
jsjunkie33Everyone always says the previous developer was crap, sometimes you're right
-
erdlof16Pun of the day Boss: I heard your colleagues hate dealing with code you wrote. Why? Me: No comment
-
NiTr013"I wrote the code, I have to maintain the code, I wont need any comments" *some months later*
1 thing I hate more than bad code.
bloody comments. it's an excuse to write crappy code
undefined
bad code
comments