23.07.2012 Views

Design Patterns Explained

Design Patterns Explained

Design Patterns Explained

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 21-1 The relationships between commonality/variability<br />

analysis, perspectives, and abstract classes.<br />

Field Notes<br />

Chapter 21 • <strong>Design</strong> <strong>Patterns</strong> Reviewed 311<br />

As you learn patterns, it is useful to look for the following forces<br />

and concepts:<br />

• What implementations does this pattern hide? Thereby allow<br />

ing me to change them.<br />

• What commonalities are present in this pattern? This helps me<br />

identify them.<br />

• What are the responsibilities of the objects in this pattern? As it<br />

may be easier to do my decomposition by responsibility.<br />

• What are the relationships between these objects? This will give<br />

me information about the forces present with these objects.<br />

• How may the pattern itself be a microcosmic example of design<br />

ing by context? This affords me a better understanding of why<br />

the pattern is good design.<br />

Summary<br />

In this chapter I summarized our new perspective on object-oriented<br />

design. I described how design patterns manifest this. I suggested<br />

that it is useful to look at patterns by seeing<br />

Approaches to take<br />

In this chapter

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!