Understand the problem.
Start with a working example. Add a requirement and see why the original design becomes harder to change.
Appearance
INTERACTIVE DESIGN PATTERN LESSONS
Small problems. Moving parts. Real understanding.
Explore design patterns through interactive visuals and TypeScript and Kotlin examples.
New display? Change the weather station.
Direct calls to named displays
function publish(reading: number) {
phone.update(reading)
history.update(reading)
alerts.update(reading)
}The station calls each display by name. Adding or removing a display means changing the station’s code.
LESS MEMORIZING. MORE MAKING SENSE.
Explore the structure, understand the problem, and apply the pattern yourself.
Start with a working example. Add a requirement and see why the original design becomes harder to change.
Explore interactive diagrams and follow the calls between objects. See what changes, what stays stable, and why.
Connect the explanation to TypeScript or Kotlin examples. Apply the pattern to a different scenario with guided challenges and feedback.
Already familiar? Jump straight to practice or revisit the quick reference.
THE PATTERN CATALOG
You don’t need to learn them all at once. Pick the kind of problem you’re working on, then explore one pattern.
BEHAVIORAL PATTERNS
4 behavioral lessons available
One request. Execute now, revisit later?
Package a request as an object so controls and receivers can evolve independently.
Try it with an undoable text editor
Same command. Different state. What happens?
Let an object’s current state decide how it responds to commands.
Try it with an order lifecycle
Same job. A different way to do it?
Swap the algorithm without rewriting the code that uses it.
Try it with a sorting tool
One change. Who needs to know?
Let listeners join, react, and leave without rewriting the publisher.
Try it with a weather station