Skip to content

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 Strategy
01

Behavioral / 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.

Open tutorial
02

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.

Open tutorial
03

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.

Open tutorial

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.