GoF Design Patterns Cheat Sheet ๐Ÿ‘บ | Mnemonics + Images

GOFDesign PatternCreational PatternStructural PatternBehavioral PatternSoftware EngineeringProgramming
Read in about 1 min read
Published: 2025-07-09
Last modified: 2025-07-21
View count: 221

Summary

This guide provides an easy way to memorize the Gang of Four (GoF) design patterns, complete with mnemonics and links to detailed explanations. It covers Creational, Structural, and Behavioral patterns.

This post provides memorization tips for design patterns and links to detailed explanations for each.

  • The best way to memorize is to use a method you are comfortable with, ideally related to a topic you find interesting.
  • The mnemonics below are for reference.
  • The method I use combines acronyms and images.
  • It's not enough to just know the names of the design patterns. Be sure to click the links to understand what each pattern does.

Creational Patterns

Mnemonic: SingFacBuilPAb

Singleton, Factory, Builder, Prototype, Abstract Factory

Mnemonic for Creational Patterns
Creational Patterns Mnemonic: SingFacBuilPAb
  • Sing: Singleton Pattern
  • Fac: Factory Method Pattern
  • Buil: Builder Pattern
  • P: Prototype Pattern
  • Ab: Abstract Factory Pattern

Creational Patterns Explained (Links)

Structural Patterns

Mnemonic: ADPFBFC

Adapter, Decorator, Proxy, Facade, Bridge, Flyweight, Composite

Mnemonic for Structural Patterns
Structural Patterns Mnemonic: ADPFBFC
  • A: Adapter Pattern
  • D: Decorator Pattern
  • P: Proxy Pattern
  • F: Facade Pattern
  • B: Bridge Pattern
  • F: Flyweight Pattern
  • C: Composite Pattern

Structural Patterns Explained (Links)

  1. Adapter, Decorator, Proxy, Facade Explained + Exam Questions
  2. Bridge, Flyweight, Composite Explained + Exam Questions

Behavioral Patterns

Mnemonic: SO MVI SMC CT

Strategy, Observer, Mediator, Visitor, Iterator, State, Memento, Command, Chain of Responsibility, Template Method

Mnemonic for Behavioral Patterns
Behavioral Patterns Mnemonic: SO MVI SMC CT
  • S: Strategy Pattern
  • O: Observer Pattern
  • M: Mediator Pattern
  • V: Visitor Pattern
  • I: Iterator Pattern
  • S: State Pattern
  • M: Memento Pattern
  • C: Command Pattern
  • C: Chain of Responsibility Pattern
  • T: Template Method Pattern

Behavioral Patterns Explained (Links)

  1. Strategy, Observer Explained + Exam Questions
  2. Mediator, Visitor Explained + Exam Questions
  3. Iterator, State Explained + Exam Questions
  4. Chain of Responsibility, Memento Explained + Exam Questions
  5. Command, Template Method Explained + Exam Questions