Chapter 11. Ten More Design Patterns

<feature> <title>In This Chapter</title> <objective>

The Abstract Factory pattern

</objective>
<objective>

The Prototype pattern

</objective>
<objective>

The Bridge pattern

</objective>
<objective>

The Interpreter pattern

</objective>
<objective>

The Memento pattern

</objective>
<objective>

The Visitor pattern

</objective>
<objective>

The Circular Buffer pattern

</objective>
<objective>

The Double Buffer pattern

</objective>
<objective>

The Recycle Bin pattern

</objective>
<objective>

The Model/View/Controller pattern

</objective>
</feature>

“Okay,” say the programmers at GlobalHugeCo, the computer manufacturer, “we’ve got the patterns you’ve suggested so far implemented and running. What’s next?”

“Bad news,” you say. “We’re coming to the end of the book.”

“Oh no!”

“But we’re going out with a bang,” you say. “This chapter contains not one, not two, but ten additional patterns.”

“Woo hoo!” the programmers cry.

So far, you’ve seen most of the Gang of Four (GoF) patterns, but there are six more left in the original set of 23. You see those six in this chapter. They’re all good patterns, but some aren’t used often these days. And some are just plain hard to implement, like the Interpreter pattern, which says, “Given a language, define a representation for its grammar along with an interpreter that uses the representation to interpret sentences in the language.” That sounds like a good afternoon’s work.

Besides getting the remaining Gang of Four patterns, you also get a glimpse ...

Get Design Patterns For Dummies® 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.