Skip to content

The catalog of design patterns ​

Grouped by intent. Lessons unlock as Python tutorials ship in the repo.

Creational ​

Object creation mechanisms that increase flexibility and reuse.

  • Factory MethodFactory MethodSoon
  • BuilderBuilderSoon
  • SingletonSingletonSoon
  • Abstract FactorySoon
  • PrototypeSoon

Structural ​

Assemble objects and classes into larger structures that stay flexible.

  • AdapterAdapterSoon
  • DecoratorDecoratorSoon
  • FacadeFacadeSoon
  • BridgeSoon
  • CompositeSoon
  • FlyweightSoon
  • ProxySoon

Behavioral ​

Algorithms and assignment of responsibilities between objects.

  • ObserverObserverSoon
  • StrategyStrategySoon
  • CommandCommandSoon
  • Chain of ResponsibilitySoon
  • IteratorSoon
  • MediatorSoon
  • MementoSoon
  • StateSoon
  • Template MethodSoon
  • VisitorSoon

Meanwhile ​

Principles are live now — SRP, OCP, LSP, ISP, DIP.