0%

Book Description

Get hands-on experience implementing 26 of the most common design patterns using Java and Eclipse. In addition to Gang of Four (GoF) design patterns, you will also learn about alternative design patterns, and understand the criticisms of design patterns with an overview of anti-patterns. For each pattern you will see at least one real-world scenario, a computer-world example, and a complete implementation including output.

This book has three parts. The first part covers 23 Gang of Four (GoF) design patterns. The second part includes three alternative design patterns. The third part presents criticisms of design patterns with an overview of anti-patterns. You will work through easy-to-follow examples to understand the concepts in depth and you will have a collection of programs to port over to your own projects.

A Q&A session is included in each chapter and covers the pros and cons of each pattern. The last chapter presents FAQs about the design patterns. The step-by-step approach of the book helps you apply your skills to learn other patterns on your own, and to be familiar with the latest version of Java and Eclipse.


What You'll Learn 

  • Work with each of the design patterns
  • Implement design patterns in real-world applications
  • Choose from alternative design patterns by comparing their pros and cons
  • Use the Eclipse IDE to write code and generate output
  • Read the in-depth Q&A session in each chapter with pros and cons for each design pattern

Who This Book Is For 

Software developers, architects, and programmers

Table of Contents

  1. Cover
  2. Front Matter
  3. Part I. Gang of Four Patterns
    1. 1. Singleton Pattern
    2. 2. Prototype Pattern
    3. 3. Builder Pattern
    4. 4. Factory Method Pattern
    5. 5. Abstract Factory Pattern
    6. 6. Proxy Pattern
    7. 7. Decorator Pattern
    8. 8. Adapter Pattern
    9. 9. Facade Pattern
    10. 10. Flyweight Pattern
    11. 11. Composite Pattern
    12. 12. Bridge Pattern
    13. 13. Visitor Pattern
    14. 14. Observer Pattern
    15. 15. Strategy (Policy) Pattern
    16. 16. Template Method Pattern
    17. 17. Command Pattern
    18. 18. Iterator Pattern
    19. 19. Memento Pattern
    20. 20. State Pattern
    21. 21. Mediator Pattern
    22. 22. Chain-of-Responsibility Pattern
    23. 23. Interpreter Pattern
  4. Part II. Additional Design Patterns
    1. 24. Simple Factory Pattern
    2. 25. Null Object Pattern
    3. 26. MVC Pattern
  5. Part III. Final Discussions on Design Patterns
    1. 27. Criticisms of Design Patterns
    2. 28. AntiPatterns: Avoid the Common Mistakes
    3. 29. FAQs
  6. Back Matter
18.118.144.248