Exposed Internals

Kind: anti-pattern

Layer: Structural Core

Aliases: Anemic Encapsulation

Record: lexicon:exposed-internals

Canonical: Lexicon

Making a module's internal fields and workings reachable from outside, whether public outright or through trivial getters and setters, so callers depend on details that should be hidden and its invariants go unprotected.

Listed in Lexicon terms, after Deep Inheritance Hierarchy and before Implementation-Specific Contracts.

Category

Violates

Negated by

Linked from