I disagree. Comment itself is not a "code smell", its misuse is.
There are situations where leaving a comment is a necessity.
Comments are not meant to describe things, but to clarify certain statements and leave notes, regarding use of certain constructions and tools.
For example :
// typeof null is 'object'functiongetType(value){if(value===null)return'null';returntypeofvalue;}// Limit degrees to [0,360), 360 degrees is 0constdegrees=userInput&360;// Due to a bug in 3rd party module we need to perform this check// [link]constresult=thirdPartyModule.exec(validateValue(value));
Please forgive me if I misinterpreted your article.
It seemed to me, that your article main idea was "don't use comments unless you're absolutely sure", opposite to "use comments code wisely".
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I disagree. Comment itself is not a "code smell", its misuse is.
There are situations where leaving a comment is a necessity.
Comments are not meant to describe things, but to clarify certain statements and leave notes, regarding use of certain constructions and tools.
For example :
I'm pretty sure that this is exactly what I described in the article.
Please forgive me if I misinterpreted your article.
It seemed to me, that your article main idea was "don't use comments unless you're absolutely sure", opposite to "use
commentscode wisely".