DEV Community

Discussion on: Bad Programming Habits

Collapse
 
uniquexor profile image
Algirdas

For the sake of no. 19, what drives me insane is people not writing comments :D Try debugging anything a bit more complex or code you see for the first time and you start appreciating comments quickly. Remember, what's self explanatory to you, might not be for someone else. Or for yourself in a year, for that matter... And I agree with Gary, not talking about arbitrary comments.

Collapse
 
evilprince2009 profile image
Ibne Nahian

That's why I said codes should be self explanatory.

Thread Thread
 
uniquexor profile image
Algirdas

And that's why I said "what's self explanatory to you, might not be for someone else" :D

Thread Thread
 
koekiewollie profile image
Koekiewollie

Think about this, comments are often not maintained well and can be misleading.
Better to have no comments, than misleading ones.
If the code is clear enough, comments are almost never needed.

Collapse
 
eunovo profile image
Oghenovo Usiwoma

Clean code should be self explanatory. It should rarely require comments