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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.