Description
There's a pattern here, and here's how to use it!
Find out how the 23 leading design patterns can save you time and trouble
Ever feel as if you've solved this programming problem before? You — or someone — probably did, and that's why there's a design pattern to help this time around. This book shows you how (and when) to use the famous patterns developed by the "Gang of Four," plus some new ones, all designed to make your programming life easier.
Discover how to:
- Simplify the programming process with design patterns
- Make the most of the Decorator, Factory, and Adapter patterns
- Identify which pattern applies
- Reduce the amount of code needed for a task
- Create your own patterns
Table of contents
Introduction.
Part I: Getting to Know Patterns.
Chapter 1: Congratulations, Your Problem Has Already Been Solved.
Chapter 2: Putting Plans into Action with the Strategy Pattern.
Chapter 3: Creating and Extending Objects with the Decorator and Factory Patterns.
Chapter 4: Watch What’s Going On with the Observer and Chain of Responsibility Patterns.
Chapter 5: From One to Many: The Singleton and Flyweight Patterns.
Part II: Becoming an OOP Master.
Chapter 6: Fitting Round Pegs into Square Holes with the Adapter and Facade Patterns.
Chapter 7: Mass Producing Objects with the Template Method and Builder Patterns.
Chapter 8: Handling Collections with the Iterator and Composite Patterns.
Chapter 9: Getting Control of Your Objects with the State and Proxy Patterns.
Chapter 10: Coordinating Your Objects with the Command and Mediator Patterns.
Part III: The Part of Tens.
Chapter 11: Ten More Design Patterns.
Chapter 12: Ten Easy Steps to Create Your Own Patterns.
Index.