No Redundant Comments

Remove code comments that just restate the code, and keep the ones that explain why. Use this WHENEVER you write or edit code in any language. Comments like "// increment i", "// loop over the items", "// constructor", "// return the result", and a docstring that repeats the function name in English are noise that signals machine-generated code and rots as the code changes. Keep comments that explain intent, a non-obvious reason, a tradeoff, a caveat, or a link to context the code cannot show. Delete the narration.

TheArmagan cdb1306 2.8 KB Updated

File contents

TheArmagan/skills/tree/main/no-redundant-comments commit cdb13064d4

Frequently asked questions

npx skillmds@latest add thearmagan/no-redundant-comments