
- 678 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
An Atypical ASP.NET Core 6 Design Patterns Guide
About this book
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 patternsKey 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 BlazorBook DescriptionAn 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 BlazorWho this book is forThe 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.
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
Section 1: Principles and Methodologies
- Chapter 1, Introduction
- Chapter 2, Automated Testing
- Chapter 3, Architectural Principles
1
Introduction
- We will explore basic patterns, unit testing, architectural principles, and some crucial ASP.NET Core mechanisms.
- Then, we will move up to the component scale, exploring patterns oriented toward small chunks of software and individual units.
- After that, we will move to application-scale patterns and techniques, where we explore higher-level patterns and how to structure an application as a whole.
- Afterward, we will tackle the client side to connect the dots and make ASP.NET a viable full stack alternative.
- The chapters are organized to start with small-scale patterns and then progress to higher-level ones, making the learning curve easier.
- Instead of giving you a recipe, the book focuses on the thinking behind things and shows the evolution of some techniques to help you understand why the evolution happened.
- Many use cases combine more than one design pattern to illustrate alternate usage, so that you can understand the patterns and use them efficiently. This also shows that design patterns are not beasts to tame but tools to use, manipulate, and bend to your will.
- As in real life, no textbook solution can solve all our problems, and real problems are always more complicated than whatâs explained in textbooks. In this book, my goal is to show you how to mix and match patterns to think âarchitecture,â instead of giving you step-by-step instructions to reproduce.
- What is a design pattern?
- Anti-patterns and code smells
- Understanding the web â request/response
- Getting started with .NET
What is a design pattern?
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
- Appendix B
- Assessment Answers
- Acronyms Lexicon
- Other Books You May Enjoy
- Index