2 pages tagged.
Sealed hierarchies make invalid states unrepresentable: encoding aggregate invariants in Kotlin's type system.
A cluster of objects treated as one unit for data changes, guarded by a root that protects its invariants.