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
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 expl