package file→ .shtukbase/packages/code-deep-modules/judges/comments-why.md
judges/comments-why.md
15 lines, 729 B.
- # Judge: a comment says what the code does not
- Norm DM-R06. Comments on interfaces and on non-obvious places explain what and why, which cannot be seen from the code; a comment does not retell the line below it.
- **Who judges.** The reviewer of the change.
- **When.** On a change that adds public functions, types or modules.
- **What the judge looks at.**
- 1. A new public entry point has a description: what it does, what the parameters and the result mean, what its conditions are.
- 2. Comments do not retell the code on the line below.
- 3. A non-obvious decision (why this way and not a simpler one) is written next to it.
- **Result.** "holds" or "violated: which entry point has no description, which comment is superfluous".