Author: Praseed Pai, Shine Xavier
Pub Date: 2017
ISBN: 978-1786466150
Pages: 298
Language: English
Format: EPUB/MOBI/AZW3/PDF (conv)
Size: 10 Mb
Explore the world of .NET design patterns and bring the benefits that the right patterns can offer to your toolkit today
Knowing about design patterns enables developers to improve their code base, promoting code reuse and making their design more robust.
This book focuses on the practical aspects of programming in .NET. You will learn about some of the relevant design patterns (and their application) that are most widely used. We start with classic object-oriented programming (OOP) techniques, evaluate parallel programming and concurrency models, enhance implementations by mixing OOP and functional programming, and finally to the reactive programming model where functional programming and OOP are used in synergy to write better code.
Throughout this book, we’ll show you how to deal with architecture/design techniques, GoF patterns, relevant patterns from other catalogs, functional programming, and reactive programming techniques.
After reading this book, you will be able to convincingly leverage these design patterns (factory pattern, builder pattern, prototype pattern, adapter pattern, facade pattern, decorator pattern, observer pattern and so on) for your programs. You will also be able to write fluid functional code in .NET that would leverage concurrency and parallelism!
What you will learn
Put patterns and pattern catalogs into the right perspective
Apply patterns for software development under C#/.NET
Use GoF and other patterns in real-life development scenarios
Be able to enrich your design vocabulary and well articulate your design thoughts
Leverage object/functional programming by mixing OOP and FP
Understand the reactive programming model using Rx and RxJs
Writing compositional code using C# LINQ constructs
Be able to implement concurrent/parallel programming techniques using idioms under .NET
Avoiding pitfalls when creating compositional, readable, and maintainable code using imperative, functional, and reactive code.
Table of Contents
1. An Introduction to Patterns and Pattern Catalogs
2. Why We Need Design Patterns?
3. A Logging Library
4. Targeting Multiple Databases
5. Producing Tabular Reports
6. Plotting Mathematical Expressions
7. Patterns in the .NET Base Class Library
8. Concurrent and Parallel Programming under .NET
9. Functional Programming Techniques for Better State Management
10. Pattern Implementation Using Object/Functional Programming
11. What is Reactive Programming?
12. Reactive Programming Using .NET Rx Extensions
13. Reactive Programming Using RxJS
14. A Road Ahead