0%

Book Description

Get hands-on experience with each Gang of Four (GoF) design pattern using C#. For each of the patterns, you will see at least one real-world scenario, a coding example, and a complete implementation including output. In addition to GoF patterns, you will learn additional design patterns which are common and equally important.

In this second edition, you will go through the design patterns and their implementation in Visual Studio 2019 and C# 8. Common patterns in asynchronous programming are covered, including the TAP pattern and APM pattern. You will learn via easy-to-follow examples and understand the concepts in depth. With these updated patterns, you will have a collection of programs to port over to your own projects.

The book begins with the 23 GoF design patterns, and then moves onto alternative design patterns, including the Simple Factory, Null Object, and MVC patterns plus various patterns in asynchronous programming. The book concludes with a discussion of the criticisms of design patterns and chapters on anti-patterns.

Each chapter includes a Q&A session that clears up any doubts and covers the pros and cons of each pattern. FAQs will help you consolidate your knowledge. 


What You Will Learn
  • Work with each of the design patterns
  • Implement the design patterns in real-world applications
  • Select an alternative to these patterns by comparing their pros and cons
  • Use Visual Studio Community Edition 2019 to write code and generate output

Who This Book Is For

Software developers, testers, and architects

Table of Contents

  1. Cover
  2. Front Matter
  3. Part I. Gang of Four Design 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 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
    4. 27. Patterns in Asynchronous Programming
  5. Part III. Final Thoughts on Design Patterns
    1. 28. Criticisms of Design Patterns
    2. 29. AntiPatterns
    3. 30. FAQ
  6. Back Matter
18.224.73.125