Comments
Comments are necessary for explaining complex logic, but excessive comments can be a sign of code that is not self-explanatory. Good code should be self-documenting through clear naming.
Code :
![](img/comments-before.png)
Treatment:
Refactor the code so that the intent is clear without needing comments.
![](img/comments-after.png)