Chapter 3. Design Patterns

Interlude I3.1 Patterns.

Following is a list of design patterns described in Gamma's Design Patterns. What refactorings might you use to evolve to some of these patterns?

Creational patterns

  • ___ Abstract Factory

  • ___ Builder

  • ___ Factory Method

  • ___ Prototype

  • ___ Singleton

Structural Patterns

  • ___ Adapter

  • ___ Bridge

  • ___ Composite

  • ___ Decorator

  • ___ Façade

  • ___ Flyweight

  • ___ Proxy

Behavioral Patterns

  • ___ Chain of Responsibility

  • ___ Command

  • ___ Interpreter

  • ___ Iterator

  • ___ Mediator

  • ___ Memento

  • ___ Observer

  • ___ State

  • ___ Strategy

  • ___ Template Method

  • ___ Visitor

▪ See Appendix A for solutions.

Get Refactoring Workbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.