package file→ .shtukbase/packages/code-deep-modules/judges/complexity-down.md
judges/complexity-down.md
15 lines, 683 B.
- # Judge: complexity goes down
- Norm DM-R05. A module takes complexity on itself: the interface has reasonable defaults, and callers do not need to know settings that the module can decide on its own.
- **Who judges.** The reviewer of the change.
- **When.** On a change that adds parameters, flags or settings to an interface.
- **What the judge looks at.**
- 1. A new parameter or flag: does the caller know better than the module how to choose it? If not, the decision should stay inside.
- 2. Whether the same preparatory code is repeated at all callers.
- 3. Whether there is a reasonable default.
- **Result.** "holds" or "violated: which parameter to move inside and with which value".