Book description
The professional developer's essential guide to building robust, maintainable, and flexible web apps by leveraging C# 10 and .NET 6 features and component- and application-scale design patterns
Key Features
- Apply the SOLID architectural principles and software design patterns effectively with a focus on dependency injection
- Discover modern application architectures such as vertical slice, clean architecture, and event-driven microservices
- Explore full-stack ASP.NET Core with an overview of Blazor
Book Description
An Atypical ASP.NET Core 6 Design Patterns Guide, Second Edition approaches programming like playing with LEGO®: snapping small pieces together to create something beautiful. Thoroughly updated for ASP.NET Core 6, with further coverage of microservices patterns, data contracts, and event-driven architecture, this book gives you the tools to build and glue reliable components together to improve your programmatic masterpieces.
The chapters are organized based on scale and topic, allowing you to start small and build on a strong base, the same way that you would develop a program. You will begin by exploring basic design patterns, SOLID architectural principles, dependency injection, and other ASP.NET Core 6 mechanisms. You will explore component-scale patterns, and then move to higher level application-scale patterns and techniques to better structure your applications. Finally, you'll advance to the client side to connect the dots with tools like Blazor and make ASP.NET Core a viable full-stack web development framework.
You will supplement your learning with practical use cases and best practices, exploring a range of significant Gang of Four (GoF) design patterns along the way. By the end of the book, you will be comfortable combining and implementing patterns in different ways, and crafting software solutions of any scale.
What you will learn
- Apply the SOLID principles for building flexible and maintainable software
- Get to grasp .NET dependency Injection
- Work with GoF design patterns such as strategy, decorator, façade, and composite
- Explore the MVC patterns for designing web APIs and web applications using Razor
- Discover layering techniques and tenets of clean architecture
- Become familiar with CQRS and vertical slice architecture as an alternate to layering
- Understand microservices and when they can benefit your applications
- Build an ASP.NET user interfaces from server-side to client-side Blazor
Who this book is for
The book is intended for intermediate software and web developers with an understanding of .NET who want to write flexible, maintainable, and robust code for building scalable web applications. Knowledge of C# programming and an understanding of web concepts like HTTP is necessary.
Table of contents
- Preface
- Section 1: Principles and Methodologies
- Introduction
- Automated Testing
- Architectural Principles
- Section 2: Designing for ASP.NET Core
- The MVC Pattern Using Razor
- The MVC Pattern for Web APIs
- Understanding the Strategy, Abstract Factory, and Singleton Design Patterns
- Deep Dive into Dependency Injection
- Options and Logging Patterns
- Section 3: Designing at Component Scale
- Structural Patterns
- Behavioral Patterns
- Understanding the Operation Result Design Pattern
- Section 4: Designing at Application Scale
- Understanding Layering
- Getting Started with Object Mappers
- Mediator and CQRS Design Patterns
- Getting Started with Vertical Slice Architecture
- Introduction to Microservices Architecture
- Section 5: Designing the Client Side
- ASP.NET Core User Interfaces
- A Brief Look into Blazor
- Appendices
-
Appendix A
-
Older C# features
- The null-coalescing operator (C# 2.0)
- Expression-bodied member (C# 6-7)
- Throw expressions (C# 7.0)
- Tuples (C# 7.0+)
- Default literal expressions (C# 7.1)
- Switch expressions (C# 8)
- Discards (C# 7)
- Async main (C# 7.1)
- User-defined conversion operators (C# 1)
- Local functions (C# 7) and a static local function (C# 8)
- What’s new in .NET 5 and C# 9?
- What’s new in .NET 6 and C# 10?
-
Older C# features
- Appendix B
- Assessment Answers
- Acronyms Lexicon
- Other Books You May Enjoy
- Index
Product information
- Title: An Atypical ASP.NET Core 6 Design Patterns Guide - Second Edition
- Author(s):
- Release date: March 2022
- Publisher(s): Packt Publishing
- ISBN: 9781803249841
You might also like
video
Design Patterns Using C# and .NET Core
Design patterns are reusable solutions to common programming problems. They speed up the development process by …
book
ASP.NET Core in Action, Third Edition
Build professional-grade full-stack web applications using C# and ASP.NET Core. In ASP.NET Core in Action, Third …
book
Architecting ASP.NET Core Applications - Third Edition
Backend design like you've never seen it before – a guide to building SOLID ASP.NET Core …
video
ASP.NET Core - SOLID and Clean Architecture (.NET 5 and Up)
Creating a modular, testable, and maintainable application in .NET Core requires a solid foundation. Setting up …