Atjaunināt sīkdatņu piekrišanu

Design Patterns in C#: A Hands-on Guide with Real-World Examples 1st ed. [Mīkstie vāki]

  • Formāts: Paperback / softback, 455 pages, height x width: 254x178 mm, weight: 9076 g, 154 Illustrations, black and white; XXX, 455 p. 154 illus., 1 Paperback / softback
  • Izdošanas datums: 22-Jun-2018
  • Izdevniecība: APress
  • ISBN-10: 1484236394
  • ISBN-13: 9781484236390
  • Mīkstie vāki
  • Cena: 61,64 €*
  • * Šī grāmata vairs netiek publicēta. Jums tiks paziņota lietotas grāmatas cena
  • Šī grāmata vairs netiek publicēta. Jums tiks paziņota lietotas grāmatas cena.
  • Daudzums:
  • Ielikt grozā
  • Pievienot vēlmju sarakstam
  • Formāts: Paperback / softback, 455 pages, height x width: 254x178 mm, weight: 9076 g, 154 Illustrations, black and white; XXX, 455 p. 154 illus., 1 Paperback / softback
  • Izdošanas datums: 22-Jun-2018
  • Izdevniecība: APress
  • ISBN-10: 1484236394
  • ISBN-13: 9781484236390
Get hands-on experience with each Gang of Four design pattern using the latest version of C# (Visual Studio Community 2017). For each of the patterns, you’ll see at least one real-world scenario, a coding example, and a complete implementation including output.

In the first part of Design Patterns in C#, you will cover the 23 Gang of Four (GoF) design patterns, before moving onto some alternative design patterns, including the Simple Factory Pattern, the Null Object Pattern, and the MVC Pattern. The final part winds up with a conclusion and criticisms of design patterns with chapters on anti-patterns and memory leaks. By working through easy-to-follow examples, you will understand the concepts in depth and have a collection of programs to port over to your own projects.

Along the way, the author discusses the different creational, structural, and behavioral patterns and why such classifications are useful. In each of these chapters, there is a Q&A session that clears up any doubts and covers the pros and cons of each of these patterns.He finishes the book with FAQs that will help you consolidate your knowledge. This book presents the topic of design patterns in C# in such a way that anyone can grasp the idea. 

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 2017 to write code and generate output
Who This Book Is For

Software developers, software testers, and software architects. 

About the Author xix
About the Technical Reviewers xxi
Acknowledgments xxiii
Foreword xxv
Preface xxvii
Guidelines for Using This Book xxix
Part I Gang of Four Design Patterns
1(2)
I.A Creational Patterns
3(66)
Chapter 1 Singleton Pattern
5(12)
GoF Definition
5(1)
Concept
5(1)
Real-Life Example
5(1)
Computer World Example
5(1)
Illustration
6(5)
Class Diagram
6(1)
Solution Explorer View
7(1)
Discussion
7(1)
Implementation
8(1)
Output
9(1)
Challenges
10(1)
Q&A Session
11(6)
Chapter 2 Prototype Pattern
17(14)
GoF Definition
17(1)
Concept
17(1)
Real-Life Example
17(1)
Computer World Example
17(1)
Illustration
18(7)
Class Diagram
18(2)
Directed Graph Document
20(1)
Solution Explorer View
20(2)
Implementation
22(2)
Output
24(1)
Q&A Session
25(6)
Demonstration
27(2)
Output
29(2)
Chapter 3 Builder Pattern
31(12)
GoF Definition
31(1)
Concept
31(1)
Real-Life Example
32(1)
Computer World Example
32(1)
Illustration
32(7)
Class Diagram
33(1)
Solution Explorer View
33(1)
Implementation
34(5)
Output
39(1)
Q&A Session
39(4)
Chapter 4 Factory Method Pattern
43(12)
GoF Definition
43(1)
Concept
43(1)
Real-Life Example
43(1)
Computer World Example
44(1)
Illustration
44(7)
Class Diagram
44(1)
Directed Graph Document
45(1)
Solution Explorer View
45(1)
Implementation
46(3)
Output
49(1)
Modified Implementation
49(2)
Modified Output
51(1)
Analysis
51(1)
Q&A Session
51(4)
Chapter 5 Abstract Factory Pattern
55(14)
GoF Definition
55(1)
Concept
55(1)
Real-Life Example
56(1)
Computer World Example
56(1)
Illustration
56(8)
Class Diagram
58(1)
Solution Explorer View
58(2)
Implementation
60(3)
Output
63(1)
Q&A Session
64(5)
Conclusion
67(2)
I.B Structural Patterns
69(96)
Chapter 6 Proxy Pattern
71(12)
GoF Definition
71(1)
Concept
71(1)
Real-Life Example
71(1)
Computer World Example
71(1)
Illustration
72(4)
Class Diagram
72(1)
Directed Graph Document
73(1)
Solution Explorer View
73(1)
Implementation
74(2)
Output
76(1)
Q&A Session
76(7)
Modified Implementation
79(3)
Modified Output
82(1)
Chapter 7 Decorator Pattern
83(14)
GoF Definition
83(1)
Concept
83(1)
Real-Life Example
83(2)
Computer World Example
85(1)
Illustration
85(6)
Class Diagram
86(1)
Solution Explorer View
87(1)
Implementation
88(2)
Output
90(1)
Q&A Session
91(6)
Chapter 8 Adapter Pattern
97(16)
GoF Definition
97(1)
Concept
97(1)
Real-Life Example
97(1)
Computer World Example
98(1)
Illustration
99(11)
Class Diagram
99(1)
Directed Graph Document
100(1)
Solution Explorer View
100(2)
Implementation
102(1)
Output
103(1)
Modified Illustration
103(1)
Key Characteristics of the Modified Implementation
104(1)
Modified Solution Explorer View
105(1)
Modified Implementation
106(3)
Modified Output
109(1)
Types of Adapters
109(1)
Q&A Session
110(3)
Chapter 9 Facade Pattern
113(10)
GoF Definition
113(1)
Concept
113(1)
Real-Life Example
113(1)
Computer World Example
113(1)
Illustration
114(7)
Class Diagram
114(1)
Directed Graph Document
115(1)
Solution Explorer View
115(1)
Implementation
116(4)
Output
120(1)
Q&A Session
121(2)
Chapter 10 Flyweight Pattern
123(20)
GoF Definition
123(1)
Concept
123(1)
Real-Life Example
124(1)
Computer World Example
124(1)
Illustration
124(1)
Class Diagram
125(1)
Directed Graph Document
126(1)
Solution Explorer View
127(1)
Implementation
127(3)
Output
130(1)
Improvements to the Program
131(1)
Modified Class Diagram
132(1)
Modified Solution Explorer View
133(1)
Modified Implementation
133(4)
Modified Output
137(1)
Q&A Session
138(5)
Chapter 11 Composite Pattern
143(12)
GoF Definition
143(1)
Concept
143(1)
Real-Life Example
144(1)
Computer World Example
144(1)
Illustration
144(8)
Class Diagram
146(1)
Solution Explorer View
147(1)
Implementation
148(3)
Output
151(1)
Q&A Session
152(3)
Chapter 12 Bridge Pattern
155(10)
GoF Definition
155(1)
Concept
155(1)
Real-Life Example
155(1)
Computer World Example
156(1)
Illustration
156(7)
Class Diagram
158(1)
Solution Explorer View
159(1)
Implementation
159(4)
Output
163(1)
Q&A Session
163(2)
I.C Behavioral Patterns
165(162)
Chapter 13 Visitor Pattern
167(18)
GoF Definition
167(1)
Concept
167(1)
Real-Life Example
167(1)
Computer World Example
168(1)
Illustration
168(16)
Class Diagram
169(1)
Solution Explorer View
170(1)
Implementation
170(2)
Output
172(1)
Modified Illustration
172(4)
Modified Solution Explorer View
176(1)
Modified Implementation
177(6)
Modified Output
183(1)
Q&A Session
184(1)
Chapter 14 Observer Pattern
185(14)
GoF Definition
185(1)
Concept
185(3)
Real-Life Example
188(1)
Computer World Example
188(1)
Illustration
189(6)
Class Diagram
189(1)
Solution Explorer View
190(1)
Implementation
191(3)
Output
194(1)
Analysis of the Output
194(1)
Q&A Session
195(4)
Chapter 15 Strategy (Policy) Pattern
199(12)
GoF Definition
199(1)
Concept
199(1)
Real-Life Example
199(1)
Computer World Example
199(1)
Illustration
200(6)
Class Diagram
200(1)
Directed Graph Document
201(1)
Solution Explorer View
202(1)
Implementation
203(2)
Output
205(1)
Q&A Session
206(5)
Chapter 16 Template Method Pattern
211(12)
GoF Definition
211(1)
Concept
211(1)
Real-Life Example
211(1)
Computer World Example
212(1)
Illustration
212(5)
Class Diagram
213(1)
Solution Explorer View
214(1)
Implementation
214(3)
Output
217(1)
Q&A Session
217(6)
Modified Implementation
218(3)
Modified Output
221(2)
Chapter 17 Command Pattern
223(20)
GoF Definition
223(1)
Concept
223(1)
Real-Life Example
223(1)
Computer World Example
224(1)
Illustration
224(7)
Class Diagram
225(1)
Directed Graph Document
226(1)
Solution Explorer View
227(1)
Implementation
228(3)
Output
231(1)
Q&A Session
231(12)
Modified Class Diagram
232(1)
Modified Solution Explorer View
233(1)
Modified Implementation
234(6)
Modified Output
240(3)
Chapter 18 Iterator Pattern
243(14)
GoF Definition
243(1)
Concept
243(1)
Real-Life Example
244(1)
Computer World Example
244(1)
Illustration
244(1)
Class Diagram
245(1)
Directed Graph Document
246(1)
Solution Explorer View
247(1)
Implementation
248(5)
Output
253(1)
Q&A Session
253(4)
Chapter 19 Memento Pattern
257(12)
GoF Definition
257(1)
Concept
257(1)
Real-Life Example
257(1)
Computer World Example
257(1)
Illustration
258(6)
Class Diagram
258(1)
Directed Graph Document
259(1)
Solution Explorer View
260(1)
Implementation
260(4)
Output
264(1)
Q&A Session
264(5)
Modified Implementation
264(2)
Modified Output
266(3)
Chapter 20 State Pattern
269(14)
GoF Definition
269(1)
Concept
269(1)
Real-Life Example
269(1)
Computer World Example
270(1)
Illustration
270(9)
Class Diagram
271(1)
Directed Graph Document
272(1)
Solution Explorer View
272(2)
Implementation
274(5)
Output
279(1)
Q&A Session
279(4)
Chapter 21 Mediator Pattern
283(20)
GoF Definition
283(1)
Concept
283(1)
Real-Life Example
283(1)
Computer World Example
284(1)
Illustration
284(9)
Class Diagram
286(1)
Solution Explorer View
286(2)
Implementation
288(4)
Output
292(1)
Analysis
292(1)
Q&A Session
293(10)
Modified Illustration
294(1)
Modified Implementation
294(5)
Modified Output
299(4)
Chapter 22 Chain of Responsibility Pattern
303(12)
GoF Definition
303(1)
Concept
303(1)
Real-Life Example
304(1)
Computer World Example
304(1)
Illustration
305(7)
Class Diagram
306(1)
Directed Graph Document
307(1)
Solution Explorer View
307(1)
Implementation
308(4)
Output
312(1)
Q&A Session
312(3)
Chapter 23 Interpreter Pattern
315(12)
GoF Definition
315(1)
Concept
315(1)
Real-Life Example
315(1)
Computer World Example
315(1)
Illustration
316(10)
Class Diagram
316(2)
Solution Explorer View
318(1)
Implementation
318(7)
Output
325(1)
Q&A Session
326(1)
Part II Additional Design Patterns
327(56)
Chapter 24 Simple Factory Pattern
329(12)
Definition
329(1)
Concept
329(1)
Real-Life Example
329(1)
Computer World Example
330(1)
Illustration
330(7)
Class Diagram
331(1)
Directed Graph Document
332(1)
Solution Explorer View
332(1)
Implementation
333(3)
Output
336(1)
Q&A Session
337(4)
Chapter 25 Null Object Pattern
341(14)
Definition
341(1)
Concept
341(5)
A Faulty Program
342(2)
Output with Valid Inputs
344(1)
Analysis with Unwanted Input
344(1)
Encountered Exception
345(1)
Immediate Remedy
345(1)
Analysis
345(1)
Real-Life Example
346(1)
Computer World Example
346(1)
Illustration
346(7)
Class Diagram
347(1)
Solution Explorer View
348(1)
Implementation
349(3)
Output
352(1)
Q&A Session
353(2)
Chapter 26 MVC Pattern
355(28)
Definition
355(1)
Concept
355(4)
Key Points to Remember
356(1)
Variation 1
357(1)
Variation 2
358(1)
Variation 3
358(1)
Real-Life Example
359(1)
Computer World Example
359(1)
Illustration
360(17)
Class Diagram
362(1)
Solution Explorer View
362(1)
Implementation
363(10)
Output
373(4)
Q&A Session
377(6)
Part III Final Thoughts on Design Patterns
383(56)
Chapter 27 Criticisms of Design Patterns
385(6)
Q&A Session
387(4)
Chapter 28 Anti-patterns
391(6)
What Is an Anti-pattern?
391(1)
Q&A Session
392(5)
Chapter 29 Sealing the Leaks in Your Applications
397(36)
How Garbage Collection Works
398(2)
Demonstration 1
400(5)
Output
403(1)
Analysis
404(1)
Q&A Session 1
405(14)
Quiz
413(2)
Quiz
415(2)
Quiz
417(1)
Quiz
418(1)
Understanding Memory Leaks
419(1)
Demonstration 2
420(10)
Snapshots
422(1)
Analysis
423(1)
Modified Code
424(3)
Snapshots
427(1)
Analysis
428(2)
Q&A Session 2
430(3)
Chapter 30 FAQ
433(6)
Appendix A Brief Overview of GoF Design Patterns
439(6)
Key Points
440(3)
Q&A Session
443(2)
Appendix B Some Useful Resources
445(2)
Appendix C The Road Ahead
447(2)
Index 449
Vaskaran Sarcar (ME (Software Engineering), MCA, B Sc. (Math)) is a Senior Software Engineer and Team Lead at HP India PPS R&D Hub Bangalore. He is the author of the books- Java Design Patterns, Interactive Object Oriented Programming in Java, Design Patterns in C#, Operating System: Computer Science Interview Series and C# Basics. He has more than 10 years of teaching and industry experience. He is also a national Gate scholar (2005-2007).