OOP · PATTERNS
Battle-tested solutions — Singleton, Factory, Observer, Strategy, Decorator.
One instance, globally reachable — lazily created.
Let a factory decide which object to create.
One subject changes; every subscriber hears about it.
Swap the algorithm object at runtime.
Wrap objects in objects — stack behaviour like layers.