clean-code-comments

Installation
SKILL.md

Comments

A well-placed comment can be very helpful. A sloppy or stale one can do real harm, because code changes and comments don't move with it. Every comment is, in a sense, an admission that the code couldn't speak for itself. Sometimes that's unavoidable, but try the code first.

Core principle

Comments don't make up for bad code. When you feel the urge to explain a confusing passage, clean the passage instead. Clear code with few comments beats complex code with many.

Explain yourself in code. Often a well-named function or variable replaces the comment entirely:

Installs
1
First Seen
1 day ago