Library / Computational Thinking DPF
Jump to passage
In this reading

Link to current text

Published source confirmed at last check

Source changed 2026-10-03 02:22:15 UTC · snapshot created 2026-10-03 03:38:22 UTC · last check 2026-10-03 03:45:20 UTC

CMP.13:8 - Common Anti-Patterns and How to Avoid Them

Tempting moveFailureUseful repair
Treat every abstract path as executableDifferent steps can use incompatible representatives of one class.Reconstruct the consecutive original states.
Return a growing partial result as all reachable statesUnprocessed transitions can add states.Establish closure or report the limited exploration performed.
Strengthen independent ranges to recover a correlationThe relation is absent from the representation.Retain a relational property or separate cases.
Widen at every combinationExtrapolation discards useful information where a finite join would suffice.Locate the cyclic dependencies and choose a terminating update strategy there.
Keep an invariant after changing the transitionThe invariant may exclude new executions.Recalculate the affected operation and closure.