Design Patterns in C#
A Hands-on Guide with Real-world Examples
Samenvatting
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
Specificaties
Inhoudsopgave
No of pages: 8-10+ (Rough estimate)
Chapter 2: Prototype Pattern Chapter Goal: To discuss about the Prototype Pattern with the GoF Definition and the core concept behind that with a real life example and a computer world example. The chapter ends with a concrete implementation and its corresponding output. Author has used visual studio community 2017 for this purpose. This is free and latest in this field.
No of pages 8-10+(Rough estimate)
Chapter 3: Builder Pattern Chapter Goal: To discuss about the Builder Pattern with the GoF Definition and the core concept behind that with a real life example and a computer world example. The chapter ends with a concrete implementation and its corresponding output. Author has used visual studio community 2017 for this purpose. This is free and latest in this field.
No of pages 8-10+(Rough estimate)
Chapter 4: Factory Method Pattern Chapter Goal: To discuss about the Factory Method Pattern with the GoF Definition and the core concept behind that with a real life example and a computer world example. The chapter ends with a concrete implementation and its corresponding output. Author has used visual studio community 2017 for this purpose. This is free and latest in this field.
No of pages 8-10+(Rough estimate)
Chapter 5: Abstract Factory Pattern Chapter Goal: To discuss about the Abstract Factory Pattern with the GoF Definition and the core concept behind that with a real life example and a computer world example. The chapter ends with a concrete implementation and its corresponding output. Author has used visual studio community 2017 for this purpose. This is free and latest in this field.
No of pages: 8-10+ (Rough estimate)
1.B: Structural Patterns Chapter 6: Proxy Pattern Chapter Goal: To discuss about the Proxy Pattern with the GoF Definition and the core concept behind that with a real life example and a computer world example. The chapter ends with a concrete implementation and its corresponding output. Author has used visual studio community 2017 for this purpose. This is free and latest in this field.
No of pages 8-10+(Rough estimate)
Chapter 7: Decorator Pattern Chapter Goal: To discuss about the Decorator Pattern with the GoF Definition and the core concept behind that with a real life example and a computer world example. The chapter ends with a concrete implementation and its corresponding output. Author has used visual studio community 2017 for this purpose. This is free and latest in this field.
No of pages 8-10+(Rough estimate)
Chapter 8: Adapter Pattern Chapter Goal: To discuss about the Adapter Pattern with the GoF Definition and the core concept behind that with a real life example and a computer world example. The chapter ends with a concrete implementation and its corresponding output. Author has used visual studio community 2017 for this purpose. This is free and latest in this field.
No of pages: 8-10+ (Rough estimate)
Chapter 9: Facade Pattern Chapter Goal: To discuss about the Facade Pattern with the GoF Definition and the core concept behind that with a real life example and a computer world example. The chapter ends with a concrete implementation and its corresponding output. Author has used visual studio community 2017 for this purpose. This is free and latest in this field.
No of pages: 8-10+ (Rough estimate)
Chapter 10: Flyweight Pattern Chapter Goal: To discuss about the Flyweight Pattern with the GoF Definition and the core concept behind that with a real life example and a computer world example. The chapter ends with a concrete implementation and its corresponding output. Author has used visual studio community 2017 for this purpose. This is free and latest in this field.
No of pages: 8-10+ (Rough estimate)
Chapter 11: Composite Pattern Chapter Goal: To discuss about the Composite Pattern with the GoF Definition and the core concept behind that with a real life example and a computer world example. The chapter ends with a concrete implementation and its corresponding output. Author has used visual studio community 2017 for this purpose. This is free and latest in this field.
No of pages: 8-10+ (Rough estimate)
Chapter 12: Bridge Pattern
Chapter Goal: To discuss about the Bridge Pattern with the GoF Definition and the core concept behind that with a real life example and a computer world example. The chapter ends with a concrete implementation and its corresponding output. Author has used visual studio community 2017 for this purpose. This is free and latest in this field.
No of pages: 8-10+ (Rough estimate)
1.C: Behavioral Patterns Chapter 13: Visitor Pattern Chapter Goal: To discuss about the Visitor Pattern with the GoF Definition and the core concept behind that with a real life example and a computer world example. The chapter ends with a concrete implementation and its corresponding output. Author has used visual studio community 2017 for this purpose. This is free and latest in this field.
No of pages: 8-10+ (Rough estimate)
Chapter 14: Observer Pattern
Chapter Goal: To discuss about the Observer Pattern with the GoF Definition and the core concept behind that with a real life example and a computer world example. The chapter ends with a concrete implementation and its corresponding output. Author has used visual studio community 2017 for this purpose. This is free and latest in this field.
No of pages 8-10+(Rough estimate)
Chapter 15: Strategy Pattern Chapter Goal: To discuss about the Strategy Pattern with the GoF Definition and the core concept behind that with a real life example and a computer world example. The chapter ends with a concrete implementation and its corresponding output. Author has used visual studio community 2017 for this purpose. This is free and latest in this field.
No of pages: 8-10+ (Rough estimate)
Chapter 16: Template Method Pattern Chapter Goal: To discuss about the Template Method Pattern with the GoF Definition and the core concept behind that with a real life example and a computer world example. The chapter ends with a concrete implementation and its corresponding output. Author has used visual studio community 2017 for this purpose. This is free and latest in this field.
No of pages: 8-10+ (Rough estimate)
Chapter 17: Command Pattern Chapter Goal: To discuss about the Command Pattern with the GoF Definition and the core concept behind that with a real life example and a computer world example. The chapter ends with a concrete implementation and its corresponding output. Author has used visual studio community 2017 for this purpose. This is free and latest in this field.
No of pages: 8-10+ (Rough estimate)
Chapter 18: Iterator Pattern
Chapter Goal: To discuss about the Iterator Pattern with the GoF Definition and the core concept behind that with a real life example and a computer world example. The chapter ends with a concrete implementation and its corresponding output. Author has used visual studio community 2017 for this purpose. This is free and latest in this field.
No of pages 8-10+(Rough estimate)
Chapter 19: Memento Pattern
Chapter Goal: To discuss about the Memento Pattern with the GoF Definition and the core concept behind that with a real life example and a computer world example. The chapter ends with a concrete implementation and its corresponding output. Author has used visual studio community 2017 for this purpose. This is free and latest in this field.
No of pages 8-10+(Rough estimate)
Chapter 20: State Pattern Chapter Goal: To discuss about the State Pattern with the GoF Definition and the core concept behind that with a real life example and a computer world example. The chapter ends with a concrete implementation and its corresponding output. Author has used visual studio community 2017 for this purpose. This is free and latest in this field.
No of pages: 8-10+ (Rough estimate)
Chapter 21: Mediator Pattern Chapter Goal: To discuss about the Mediator Pattern with the GoF Definition and the core concept behind that with a real life example and a computer world example. The chapter ends with a concrete implementation and its corresponding output. Author has used visual studio community 2017 for this purpose. This is free and latest in this field.
No of pages: 8-10+ (Rough estimate)
Chapter 22: Chain of Responsibility Pattern Chapter Goal: To discuss about the Chain of Responsibility Pattern with the GoF Definition and the core concept behind that with a real life example and a computer world example. The chapter ends with a concrete implementation and its corresponding output. Author has used visual studio community 2017 for this purpose. This is free and latest in this field.
No of pages: 8-10+ (Rough estimate)
Chapter 23: Interpreter Pattern Chapter Goal: To discuss about the Interpreter Pattern with the GoF Definition and the core concept behind that with a real life example and a computer world example. The chapter ends with a concrete implementation and its corresponding output. Author has used visual studio community 2017 for this purpose. This is free and latest in this field.
No of pages: 8-10+ (Rough estimate)
Part-II: Additional Design Patterns Chapter 24: Simple Factory Pattern
Chapter Goal: To discuss about the Simple Factory Pattern with the GoF Definition and the core concept behind that with a real life example and a computer world example. The chapter ends with a concrete implementation and its corresponding output. Author has used visual studio community 2017 for this purpose. This is free and latest in this field.
No of pages: 8-10+ (Rough estimate)
Chapter 25: Null Object Pattern Chapter Goal: To discuss about the Null Object Pattern with the GoF Definition and the core concept behind that with a real life example and a computer world example. The chapter ends with a concrete implementation and its corresponding output. Author has used visual studio community 2017 for this purpose. This is free and latest in this field.
No of pages: 8-10+ (Rough estimate)
Chapter 26: MVC Pattern Chapter Goal: To discuss about the MVC Pattern with the GoF Definition and the core concept behind that with a real life example and a computer world example. The chapter ends with a concrete implementation and its corresponding output. Author has used visual studio community 2017 for this purpose. This is free and latest in this field.
No of pages: 8-10+ (Rough estimate)
Part-III: Final talks on Design Patterns Chapter 27: Criticism to Design Patterns Chapter Goal: To discuss about the criticism to design patterns
No of pages: 5 (Rough estimate)
Chapter 28: Avoid the Traps of Anti-Patterns
Chapter Goal: To discuss about the anti-patterns
No of pages: 5 (Rough estimate)
Chapter 29: Seal the leaks in your Application Chapter Goal: To discuss about memory leaks and garbage collections to build a steady and healthy system.
No of pages: 15 (Rough estimate)
Chapter 30: Asynchronous Programming
Chapter Goal: To discuss new patterns in Task-based Asynchronous Pattern and IAsync Pattern
Chapter 31: FAQ Chapter Goal: This chapter will consist of the frequently asked questions to help readers for a quick revision. This chapter will also clear the doubts that may arise among similar patterns.
No of pages: 7-10+ (Rough estimate)