Magic Value

Kind: anti-pattern

Layer: Enforcement Core

Aliases: Magic Number

Record: architecture:magic-value

Severity: discouraged

Scope: domain_boundary

Formed by: Encode policy, thresholds, status, timing, permissions, or domain rules as unexplained literals.

Canonical: Ontology

A defect in which policy, thresholds or states are written as unexplained literals.

Listed in Architecture principles, after Long Parameter List and before Speculative Generality.

Refactored by

Severity

Category

Force

Negated by

Linked from