PDesign Patterns · step by step
Home22 patternsFoundationsLearning pathVI

Foundations

Read these 4 first, or come back to them later.

They answer "what on earth is a pattern, why learn it, and why does it exist at all" — so the 22 lessons that follow don't turn into a list to memorize.

Foundations

What a design pattern is (and isn't)

One definition, three common misconceptions, and how to use patterns without turning your code into a museum.

6 min·4 sections
Foundations

Why learn patterns

Three real reasons, and none of them is "to pass the interview".

5 min·4 sections
Foundations

Classification: Creational · Structural · Behavioral

22 patterns grouped by purpose — the fastest way to look one up when you hit a problem.

5 min·4 sections
Foundations

SOLID: the reasons behind the patterns

Five principles, each tied to the patterns it gave rise to — plus counterexamples so it doesn't turn into dogma.

8 min·6 sections

Ready? → Go to the catalog of 22 patterns

Design Patterns · step by step — 22 classic patterns, explained in TypeScript, with code that runs on Bun.Original reference: refactoring.guru/design-patterns · All explanations and examples here are rewritten, not copied.