A map app with 100,000 pins crashes because every pin carries its own copy of an icon. Learn how Flyweight splits shared state from per-object state, and when it isn't worth it.
November 27, 20269 minutes
Three kinds of notification and three channels make nine classes, and Slack makes twelve. Learn how Bridge turns that into three plus three, and how it differs from Adapter and Strategy.
November 26, 20269 minutes
Splitting one task into a sub-phase silently drops sixteen hours from an estimate. Learn how the Composite pattern makes a group just another item, how the recursion works, and where Swing and file trees use it.
November 26, 20269 minutes
A playlist of two hundred songs stays blank for twenty seconds. Learn how a Proxy that looks exactly like the real object decides when, whether and where a call gets through, and how it differs from Decorator and Adapter.
November 26, 20269 minutes
Twelve call sites print receipts, and the new printer only speaks bytes. Learn how one Adapter class lets your code keep its own interface, and how it differs from Decorator, Proxy and Facade.
November 25, 20268 minutes
Seven classes for three features, or three small wrappers? Learn how the Decorator pattern adds one job at a time through the same interface, with plug-in adapters, java.io streams, diagrams, Java code and a narrated video.
November 25, 202610 minutes
Publishing a podcast episode takes six calls to five classes, and three clients repeat them. Learn how a Facade gives the common task one front door while the back doors stay open.
November 25, 20268 minutes