23.07.2012 Views

Design Patterns Explained

Design Patterns Explained

Design Patterns Explained

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 13<br />

The Principles and<br />

Strategies of <strong>Design</strong> <strong>Patterns</strong><br />

Overview<br />

Previously, I described how design patterns can be used at both the<br />

local and global levels. At local levels, patterns tell us how to solve<br />

particular problems within the context of the patterns. At global<br />

levels, patterns create a map of how the components of the application<br />

interrelate with one another. One way to study design patterns is<br />

to learn how to use them more effectively at both the local and<br />

global levels. They will give you tools to get a better handle on your<br />

problem.<br />

Another way to study design patterns is learn their mechanisms<br />

and the principles and strategies that underlie them. Learning these<br />

will improve your abilities as an analyst and designer. You will<br />

know what to do even in situations when a design pattern has not<br />

yet been developed, because you will already have the building<br />

blocks needed to solve the problem.<br />

In this chapter,<br />

• I describe the open-closed principle, which underlies many<br />

design patterns.<br />

• I discuss the principle of designing from context, which was an<br />

initial objective of Alexander's patterns.<br />

• I discuss the principle of containing variation.<br />

In this chapter<br />

217

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

Saved successfully!

Ooh no, something went wrong!