Book description
Explore the world of .NET design patterns and bring the benefits that the right patterns can offer to your toolkit today
Key Features
- [] Dive into the powerful fundamentals of .NET framework for software development
- [] The code is explained piece by piece and the application of the pattern is also showcased.
- [] This fast-paced guide shows you how to implement the patterns into your existing applications
Book Description
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.
Who this book is for
This book is for those with familiarity with .NET development who would like to take their skills to the next level and be in the driver’s seat when it comes to modern development techniques. Basic object-oriented C# programming experience and an elementary familiarity with the .NET framework library is required.
Table of contents
-
.NET Design Patterns
- .NET Design Patterns
- Credits
- Foreword
- About the Authors
- About the Reviewers
- www.PacktPub.com
- Customer Feedback
- Preface
- 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
- Requirements for the expressions library and app
- Solutions approach
- The graph plotter application
- The observer pattern for UI events
- The expression evaluator and interpreter pattern
- The abstract syntax tree (AST)
- The grammar of expressions
- Lexical analysis
- The parser module
- The builder, facade, and expression APIs
- Summary
-
7. Patterns in the .NET Base Class Library
- Adapter pattern in the .NET BCL
- Strategy pattern in the .NET BCL
- Builder pattern in the .NET BCL
- Decorator pattern in the .NET BCL
- Chain of responsibility pattern in ASP.net
- Bridge pattern in the .NET RCW
- Factory pattern in the .NET BCL
- Observer pattern in the WPF
- Composite pattern in the .NET Framework
- Facade pattern in the .NET BCL
- Iterator pattern in the .NET BCL
- Summary
- 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
Product information
- Title: .NET Design Patterns
- Author(s):
- Release date: January 2017
- Publisher(s): Packt Publishing
- ISBN: 9781786466150
You might also like
book
Design Patterns in .NET: Reusable Approaches in C# and F# for Object-Oriented Software Design
Implement design patterns in .NET using the latest versions of the C# and F# languages. This …
book
Design Patterns in .NET Core 3: Reusable Approaches in C# and F# for Object-Oriented Software Design
Implement design patterns in .NET Core 3 using the latest versions of the C# and F# …
book
Design Patterns in C#: A Hands-on Guide with Real-World Examples
Get hands-on experience with each Gang of Four design pattern using C#. For each of the …
book
Design Patterns in C#: A Hands-on Guide with Real-world Examples
Get hands-on experience with each Gang of Four (GoF) design pattern using C#. For each of …