#design-patterns
-
The Trouble with new — Factories, Builder, and Singleton
The creational patterns are really one question: who is allowed to run new, and how much do they have to know to do it? Factories, Builder, and the honest story of Singleton in the dependency-injection era.
-
Everything Looks Like a Wrapper — Decorator, Chain of Responsibility, Adapter, Facade, Proxy
Five patterns that are all "an object standing in front of another object" — and the one question that tells them apart: what does the wrapper change?
-
Patterns Are Intents, Not Shapes — Strategy, State, Command, Observer, Visitor
The behavioral design patterns industry actually runs on — starting with why nearly every GoF pattern is mechanically the same thing, and what actually distinguishes them.