Design Patterns Explained: A New Perspective on Object-Oriented Design

Book description

"...I would expect that readers with a basic understanding of object-oriented programming and design would find this book useful, before approaching design patterns completely. Design Patterns Explained complements the existing design patterns texts and may perform a very useful role, fitting between introductory texts such as UML Distilled and the more advanced patterns books."

--James Noble

Design Patterns Explained: A New Perspective on Object-Oriented Design draws together the principles of object-oriented programming with the power of design patterns to create an environment for robust and reliable software development. Packed with practical and applicable examples, this book teaches you to solve common programming problems with patterns--and explains the advantages of patterns for modern software design.

Beginning with a complete overview of the fundamentals of patterns, Design Patterns Explained stresses the importance of analysis and design. The authors clearly demonstrate how patterns can facilitate the overall development process. Throughout the book, key object-oriented design principles are explained, along with the concepts and benefits behind specific patterns. With illustrative examples in C++ and Java, the book demystifies the "whys," "why nots," and "hows" of patterns and explains pattern implementation.

Key topics covered include:

  • New perspectives on objects, encapsulation, and inheritance

  • The idea of design patterns, their origins, and how they apply in the discipline of software design

  • Pattern-based, object-oriented software development using the Unified Modeling Language (UML)

  • How to implement critical patterns--Strategy, Observer, Bridge, Decorator, and many more

  • Commonality/Variability Analysis and design patterns, and how they aid in understanding abstract classes

  • From analysis to implementation, Design Patterns Explained allows you to unleash the true potential of patterns and paves the path for improving your overall designs. This book provides newcomers with a genuinely accurate and helpful introduction to object-oriented design patterns.



    0201715945B06142001

    Table of contents

    1. Copyright
      1. Dedication
      2. Dedication
    2. Preface
      1. From Object Orientation to Patterns to True Object Orientation
      2. From Artificial Intelligence to Patterns to True Object Orientation
      3. A Note About Conventions Used in This Book
      4. Feedback
      5. Acknowledgments
    3. An Introduction to Object-Oriented Software Development
      1. The Object-Oriented Paradigm
        1. Overview
        2. Before The Object-Oriented Paradigm: Functional Decomposition
        3. The Problem of Requirements
        4. Dealing with Changes: Using Functional Decomposition
        5. Dealing with Changing Requirements
        6. The Object-Oriented Paradigm
        7. Object-Oriented Programming in Action
        8. Special Object Methods
        9. Summary
      2. The UML—The Unified Modeling Language
        1. Overview
        2. What Is the UML?
        3. Why Use the UML?
        4. The Class Diagram
        5. Interaction Diagrams
        6. Summary
    4. The Limitations of Traditional Object-Oriented Design
      1. A Problem That Cries Out for Flexible Code
        1. Overview
        2. Extracting Information from a CAD/CAM System
        3. Understand the Vocabulary
        4. Describe the Problem
        5. The Essential Challenges and Approaches
        6. Summary
      2. A Standard Object-Oriented Solution
        1. Overview
        2. Solving with Special Cases
        3. Summary
        4. Supplement: C++ Code Examples
    5. Design Patterns
      1. An Introduction to Design Patterns
        1. Overview
        2. Design Patterns Arose from Architecture and Anthropology
        3. Moving from Architectural to Software Design Patterns
        4. Why Study Design Patterns?
        5. Other Advantages to Studying Design Patterns
        6. Summary
      2. The Facade Pattern
        1. Overview
        2. Introducing the Facade Pattern
        3. Learning the Facade Pattern
        4. Field Notes: The Facade Pattern
        5. Relating the Facade Pattern to the CAD/CAM Problem
        6. Summary
      3. The Adapter Pattern
        1. Overview
        2. Introducing the Adapter Pattern
        3. Learning the Adapter Pattern
        4. Field Notes: The Adapter Pattern
        5. Relating the Adapter Pattern to the CAD/CAM Problem
        6. Summary
        7. Supplement: C++ Code Example
      4. Expanding Our Horizons
        1. Overview
        2. Objects: the Traditional View and the New View
        3. Encapsulation: the Traditional View and the New View
        4. Find What Is Varying and Encapsulate It
        5. Commonality/Variability and Abstract Classes
        6. Summary
      5. The Bridge Pattern
        1. Overview
        2. Introducing the Bridge Pattern
        3. Learning the Bridge Pattern: An Example
        4. An Observation About Using Design Patterns
        5. Learning the Bridge Pattern: Deriving It
        6. The Bridge Pattern in Retrospect
        7. Field Notes: Using the Bridge Pattern
        8. Summary
        9. Supplement: C++ Code Examples
      6. The Abstract Factory Pattern
        1. Overview
        2. Introducing the Abstract Factory Pattern
        3. Learning the Abstract Factory Pattern: An Example
        4. Learning the Abstract Factory Pattern: Implementing It
        5. Field Notes: The Abstract Factory Pattern
        6. Relating the Abstract Factory Pattern to the CAD/CAM Problem
        7. Summary
        8. Supplement: C++ Code Examples
    6. Putting It All Together: Thinking in Patterns
      1. >How Do Experts Design?
        1. Overview
        2. Building by Adding Distinctions
        3. Summary
      2. Solving the CAD/CAM Problem with Patterns
        1. Overview
        2. Review of the CAD/CAM Problem
        3. Thinking in Patterns
        4. Thinking in Patterns: Step 1
        5. Thinking in Patterns: Step 2a
        6. Thinking in Patterns: Step 2b
        7. Thinking in Patterns: Step 2c
        8. Thinking in Patterns: Step 2d (Facade)
        9. Thinking in Patterns: Step 2d (Adapter)
        10. Thinking in Patterns: Step 2d (Abstract Factory)
        11. Thinking in Patterns: Step 3
        12. Comparison with the Previous Solution
        13. Summary
      3. The Principles and Strategies of Design Patterns
        1. Overview
        2. The Open-Closed Principle
        3. The Principle of Designing from Context
        4. The Principle of Encapsulating Variation
        5. Summary
    7. Handling Variations with Design Patterns
      1. The Strategy Pattern
        1. Overview
        2. An Approach to Handling New Requirements
        3. Initial Requirements of the Case Study
        4. Handling New Requirements
        5. The Strategy Pattern
        6. Field Notes: Using the Strategy Pattern
        7. Summary
      2. The Decorator Pattern
        1. Overview
        2. A Little More Detail
        3. The Decorator Pattern
        4. Applying the Decorator Pattern to the Case Study
        5. Another Example: Input/Output
        6. Field Notes: Using the Decorator Pattern
        7. Summary
        8. Supplement: C++ Code Examples
      3. The Singleton Pattern and the Double-Checked Locking Pattern
        1. Overview
        2. Introducing the Singleton Pattern
        3. Applying the Singleton Pattern to the Case Study
        4. A Variant: The Double-Checked Locking Pattern
        5. Field Notes: Using the Singleton and Double-Checked Locking Patterns
        6. Summary
        7. Supplement: C++ Code Examples
      4. The Observer Pattern
        1. Overview
        2. Categories of Patterns
        3. More Requirements for the Case Study
        4. The Observer Pattern
        5. Applying the Observer to the Case Study
        6. Field Notes: Using the Observer Pattern
        7. Summary
        8. Supplement: C++ Code Example
      5. The Template Method Pattern
        1. Overview
        2. More Requirements for the Case Study
        3. The Template Method Pattern
        4. Applying the Template Method to the Case Study
        5. Field Notes: Using the Template Method Pattern
        6. Summary
      6. The Factory Method Pattern
        1. Overview
        2. More Requirements for the Case Study
        3. The Factory Method Pattern
        4. Field Notes: Using the Factory Method Pattern
        5. Summary
      7. The Analysis Matrix
        1. Overview
        2. In the Real World: Variations
        3. Case Study in Variation: An International E-Tail System
        4. Field Notes
        5. Summary
    8. Endings and Beginnings
      1. Design Patterns Reviewed from the New Perspective of Object-Oriented Design
        1. Overview
        2. A Summary of Object-Oriented Principles
        3. How Design Patterns Encapsulate Implementations
        4. Commonality/Variability Analysis and Design Patterns
        5. Decomposing a Problem Domain into Responsibilities
        6. Relationships Within a Pattern
        7. Patterns and Contextual Design
        8. Field Notes
        9. Summary
      2. Bibliography
        1. Design Patterns Explained: The Web Site Companion
        2. Recommended Reading on Design Patterns and Object Orientation
        3. Recommended Reading for Java Programmers
        4. Recommended Reading for C++ Programmers
        5. Recommended Reading for COBOL Programmers
        6. Recommended Reading on eXtreme Programming
        7. Recommended Reading on General Programming
        8. Personal Favorites

    Product information

    • Title: Design Patterns Explained: A New Perspective on Object-Oriented Design
    • Author(s): Alan Shalloway, James R. Trott
    • Release date: July 2001
    • Publisher(s): Addison-Wesley Professional
    • ISBN: 9780201715941