Book description
Build robust applications in C# easily using effective and popular design patterns and best practices
Key Features
- Recognize solutions to common problems in software design with C#
- Explore real-world applications of design patterns that can be used in your everyday work
- Get to grips with 14 patterns and their design implementations
Book Description
As a software developer, you need to learn new languages and simultaneously get familiarized with the programming paradigms and methods of leveraging patterns, as both a communications tool and an advantage when designing well-written, easy-to-maintain code. Design patterns, being a collection of best practices, provide the necessary wisdom to help you overcome common sets of challenges in object-oriented design and programming.
This practical guide to design patterns helps C# developers put their programming knowledge to work. The book takes a hands-on approach to introducing patterns and anti-patterns, elaborating on 14 patterns along with their real-world implementations. Throughout the book, you'll understand the implementation of each pattern, as well as find out how to successfully implement those patterns in C# code within the context of a real-world project.
By the end of this design patterns book, you’ll be able to recognize situations that tempt you to reinvent the wheel, and quickly avoid the time and cost associated with solving common and well-understood problems with battle-tested design patterns.
What you will learn
- Get to grips with patterns, and discover how to conceive and document them
- Explore common patterns that may come up in your everyday work
- Recognize common anti-patterns early in the process
- Use creational patterns to create flexible and robust object structures
- Enhance class designs with structural patterns
- Simplify object interaction and behavior with behavioral patterns
Who this book is for
This book is for beginner and mid-level software developers who are looking to take their object-oriented programs or software designing skills to the next level by learning to leverage common patterns. A firm grasp of programming fundamentals and classical object-oriented programming (OOP) using languages like C#, C++, Objective-C, or Java is expected.
Table of contents
- Real-World Implementation of C# Design Patterns
- Foreword
- Contributors
- Preface
- Part 1: Introduction to Patterns (Pasta) and Antipatterns (Antipasta)
- Chapter 1: There’s a Big Ball of Mud on Your Plate of Spaghetti
- Chapter 2: Prepping for Practical Real-World Applications of Patterns in C#
- Part 2: Patterns You Need in the Real World
- Chapter 3: Getting Creative with Creational Patterns
- Chapter 4: Fortify Your Code With Structural Patterns
- Chapter 5: Wrangling Problem Code by Applying Behavioral Patterns
- Part 3: Designing New Projects Using Patterns
-
Chapter 6: Step Away from the IDE! Designing with Patterns Before You Code
- Technical requirements
- A bad day at the agency
- Bumble Bikes factory – Dallas, Texas
- A physical rehabilitation clinic – Dallas, Texas
- Designing with patterns
- The first pass
- Adding patterns
- The first design meeting
- The second pass
- The Builder pattern
- The Singleton pattern
- The Composite pattern
- The Bridge pattern
- The Command pattern
- Summary
- Questions
- Further reading
- Chapter 7: Nothing Left but the Typing – Implementing the Wheelchair Project
- Chapter 8: Now You Know Some Patterns, What Next?
- Appendix 1: A Brief Review of OOP Principles in C#
- Appendix 2: A Primer on the Unified Modeling Language (UML)
- Index
- Other Books You May Enjoy
Product information
- Title: Real-World Implementation of C# Design Patterns
- Author(s):
- Release date: October 2022
- Publisher(s): Packt Publishing
- ISBN: 9781803242736
You might also like
book
API Design Patterns
A collection of best practices and design standards for web and internal APIs. In API Design …
book
Design Patterns: Elements of Reusable Object-Oriented Software
Capturing a wealth of experience about the design of object-oriented software, four top-notch designers present a …
book
Refactoring: Improving the Design of Existing Code
Fully Revised and Updated–Includes New Refactorings and Code Examples “Any fool can write code that a …
video
Design Patterns in the Real World, an Analysis-Based Approach
Alan Holub takes coders deep into the reality of Gang-of-Four design patterns, those reusable guides to …