Part VIOther Values of Patterns

Part Overview

This part extends the notion of patterns containing variation by illustrating different types of variation that can occur besides functionality.

Chapter

Discusses These Topics

18

The Observer Pattern

How to contain variation in both which object wants to be notified and under what circumstances.

19

The Template Method

How to both eliminate redundancy and encapsulate a procedure to be followed. Alternatively, how to have variations in the implementations of the steps you must take.

Get Design Patterns Explained: A New Perspective on Object-Oriented Design, Second Edition 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.