Lexicon

Name Constant

Kind: technique

Layer: Structural Core

Record: lexicon:name-constant

Canonical: Lexicon

A technique for replacing an unexplained literal with a named constant that states its meaning.

Listed in Lexicon terms, after Name the Concept and before Replace Boolean with Enum.

Category

  • Core Vocabulary

Refactors

  • Magic Value

Linked from

  • Anti-patterns