code comments are often seen as a necessary evil, a way to document what the code is doing or why it was written in a certain way. However, comments can also be a double-edged sword that can make code harder to read, maintain, and debug. In this arti...

Markdown supported · ⌘↵ to post
Crhistian
I’m a webdev that loves learning about new technologies
A good rule of thumb to follow is that a comment should explain why not how. Very often I see well intentioned developers litter a codebase with line by line comments that add no value.