series 01 / software design
Design patterns,
in practice.
Learn to recognize the problem before reaching for the pattern. Three practical tutorials, from the first design decision to working code.
Start with StrategyBehavioral / 12 min
Strategy
Change the shipping rule. Keep the checkout.
Use the Strategy pattern to switch between standard shipping, express delivery, and pickup without changing checkout logic.
Behavioral / 14 min
Observer
One order. Several independent reactions.
Build a small order-event publisher, subscribe independent listeners, and learn how cleanup and failures affect the Observer pattern.
Structural / 15 min
Adapter
Two couriers. One tracking interface.
Wrap incompatible shipping-provider responses behind one interface, validate external data, and keep the tracking UI unchanged.
Patterns are tools, not a checklist.
Strategy separates a choice of behavior. Observer separates an event from its reactions. Adapter separates an integration from the interface you want. Each lesson also shows when a simpler solution is the better choice.