A problem with comments is that they clutter the code and slow down reading time and are often forgotten about when updating code. Comments that lie are the last thing you want.
I'm not saying comments shouldn't be used, but they should be used sparingly and only for providing clarification or the intent of some code. It should not just rephrase what the code already says.
And obviously, there are useful tools that use comments i.e. docs, TODOs, etc
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.
There's a quote, something like:
if
statements can be cleaned up and made readable by simply using a function in the condition part and in the body.Example:
A problem with comments is that they clutter the code and slow down reading time and are often forgotten about when updating code. Comments that lie are the last thing you want.
I'm not saying comments shouldn't be used, but they should be used sparingly and only for providing clarification or the intent of some code. It should not just rephrase what the code already says.
And obviously, there are useful tools that use comments i.e. docs, TODOs, etc