ShtukbaseStandard
package file→ .shtukbase/packages/code-deep-modules/judges/complexity-down.md

judges/complexity-down.md

15 lines, 683 B.

  1. # Judge: complexity goes down
  2. 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.
  3. **Who judges.** The reviewer of the change.
  4. **When.** On a change that adds parameters, flags or settings to an interface.
  5. **What the judge looks at.**
  6. 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.
  7. 2. Whether the same preparatory code is repeated at all callers.
  8. 3. Whether there is a reasonable default.
  9. **Result.** "holds" or "violated: which parameter to move inside and with which value".