Skip to content
Design Patterns Academy
  • Home
  • Patterns
    • Creational
    • Structural
    • Behavioral
  • Roadmap
  • Favorites
  • About
DPA
  • Home
  • Patterns
  • Categories
    • Creational
    • Structural
    • Behavioral
  • Roadmap
  • Favorites
  • About
23 GoF Patterns

Master Design Patterns

Learn all 23 Gang of Four design patterns with clear examples, diagrams, and real-world code.

Explore Patterns View on GitHub
23 Patterns
3 Categories
5 Code Languages
2 UI Languages

Browse by Category

Creational

Object creation mechanisms for flexible, reusable code.

5 patterns
Structural

Compose objects into larger, flexible structures.

7 patterns
Behavioral

Efficient communication and responsibility between objects.

11 patterns

Popular Patterns

The most widely used GoF patterns

View all 23 →
Behavioral

Observer

Lets any number of objects subscribe to and get notified about another object's changes.

Complexity
Creational

Singleton

Guarantees a class has exactly one instance and gives the whole program one way to reach it.

Complexity
Behavioral

Strategy

Packages interchangeable algorithms into their own classes so they can be swapped at runtime.

Complexity
Structural

Decorator

Adds new behavior to a single object by wrapping it in layers that share its interface.

Complexity
Creational

Factory Method

Delegates object creation to a method subclasses can override, hiding the exact type being built.

Complexity
Structural

Facade

Hides a tangle of interacting classes behind one simple entry point.

Complexity

Source Available

Design Patterns Academy is developed in public. Contributions, feedback, and pull requests are welcome for non-commercial use.

Contribute on GitHub About the Project
Design Patterns Academy

A premium source-available educational platform for learning the 23 Gang of Four Design Patterns.

Patterns

  • Creational
  • Structural
  • Behavioral
  • All 23 Patterns

Resources

  • About
  • Contributing
  • Changelog

© 2026 Design Patterns Academy. Non-commercial source license.

GitHub