Skip to content

ALL-STAT1002 · temporal_coupling

Judge whether required operation order is explicit and justified.

This is a contextual rule for all languages. Read its implementation.

Compare legal states, constructors, method order, hidden flags, failure modes, and possible designs that make invalid sequences unrepresentable.

Findings cite state transitions, callers, ordering assumptions, failures, and alternatives.

Stateful protocols may require order when the API represents each state clearly.

Requiring configure before run while both methods remain callable is hidden. A session object returned only after successful configuration makes the sequence explicit.

  • Cites “The Pragmatic Programmer”, temporal coupling
  • Cites “Refactoring”, Mutable Data
  • Cites “Domain-Driven Design”, making implicit concepts explicit