Behavioral

Interpreter

Feature-flag rules hard-coded in if chains mean a deploy for every change. Learn how Interpreter turns a small grammar into classes and a sentence into a tree, and where it stops being a good idea.

November 27, 20269 minutes

Memento

A platform game needs checkpoints. Learn how Memento lets the game snapshot its own private state, why the save slots must never read it, and when snapshots beat commands.

November 27, 202610 minutes

Iterator

A playlist changes how it stores songs and twelve loops break. Learn how an iterator hides a collection's insides, how to remove safely while looping, how to page an API, and when streams fit better.

November 26, 20269 minutes

Mediator

A signup button's enable rule lives in four widgets, and one of them forgot the checkbox. Learn how a Mediator turns twenty links between five widgets into five, and how to keep the hub from becoming a god object.

November 26, 202611 minutes

Visitor

A page editor's three block classes keep gaining operations. Learn how double dispatch lets one accept method serve any number of visitors, what it costs, and when a sealed interface and a pattern switch is the better answer.

November 26, 202611 minutes

Observer Pattern

A delayed flight, a bookshop sign-up sheet and a dark-mode toggle. Learn how the Observer pattern lets one object announce changes without knowing who listens, with diagrams, Java code and a narrated video.

November 25, 202611 minutes

Chain of Responsibility Pattern

Who signs a 3,000 expense? Learn how the Chain of Responsibility pattern lets a request find its own handler, with diagrams, Java code, servlet filters, and a narrated video.

November 24, 202614 minutes

Command Pattern

How does Ctrl+Z know what to undo? Learn how the Command pattern turns a call into an object you can store, queue, combine and reverse, with diagrams, Java code, and a narrated video.

November 24, 202612 minutes

State Pattern

One object, one button, different behavior. Learn how the State pattern groups code by state instead of by event, with diagrams, Java examples, and a narrated video.

November 24, 202612 minutes

Strategy Pattern

One trip, three routes. Learn how the Strategy pattern keeps the what in one place and lets the client swap the how, with diagrams, Java code, lambdas, and a narrated video.

November 24, 202612 minutes