Lexicon

Global Mutable State

Kind: anti-pattern

Layer: Design Patterns Core

Record: lexicon:global-mutable-state

Canonical: Lexicon

Exposing global variables that any code can mutate, creating hidden coupling and nondeterminism.

Listed in Lexicon terms, after Concrete Constructor Coupling and before Mixed Product Families.

Category

  • Creational Patterns

Negated by

  • Singleton Pattern

Violates

  • Singleton Pattern
  • State Isolation

Linked from

  • Creational Patterns
  • Transactions / State / Concurrency