Skip to content

Design Patterns — From Zero to Hero

A standalone, beginner→advanced course on software design patterns. Start with the principles (SOLID, composition over inheritance), then work through all 23 Gang-of-Four patterns — each with a UML diagram and the same example in TypeScript, Python, Go, and Rust.

Intro & Principles

What patterns are, SOLID, composition over inheritance, and reading UML. Start →

Creational Patterns

Singleton, Factory Method, Abstract Factory, Builder, Prototype. Create →

Structural Patterns

Adapter, Bridge, Composite, Decorator, Facade, Flyweight, Proxy. Compose →

Behavioral Patterns I

Strategy, Observer, Command, State, Template Method, Iterator. Coordinate →

Behavioral Patterns II

Chain of Responsibility, Mediator, Memento, Visitor, Interpreter. Go deeper →

Four languages, side by side

Every pattern’s example appears in TypeScript, Python, Go, and Rust — synced tabs, so pick your language once and it follows you.

UML you can read

Each pattern has a Mermaid class diagram of its structure — theme-aware and explained as you go.

Intent, not just code

Each pattern covers intent, the problem it solves, trade-offs, and related patterns — so you know when (and when not) to use it.

Bilingual + read mode

English and ไทย, quizzes with saved progress, and a distraction-free read mode.