دسترسی نامحدود
برای کاربرانی که ثبت نام کرده اند
برای ارتباط با ما می توانید از طریق شماره موبایل زیر از طریق تماس و پیامک با ما در ارتباط باشید
در صورت عدم پاسخ گویی از طریق پیامک با پشتیبان در ارتباط باشید
برای کاربرانی که ثبت نام کرده اند
درصورت عدم همخوانی توضیحات با کتاب
از ساعت 7 صبح تا 10 شب
ویرایش: 1
نویسندگان: Carl-Hugo Marcotte
سری:
ISBN (شابک) : 9781789346091
ناشر: Packt
سال نشر: 2020
تعداد صفحات: 762
زبان: English
فرمت فایل : PDF (درصورت درخواست کاربر به PDF، EPUB یا AZW3 تبدیل می شود)
حجم فایل: 50 مگابایت
در صورت تبدیل فایل کتاب An Atypical ASP.NET Core 5 Design Patterns Guide به فرمت های PDF، EPUB، AZW3، MOBI و یا DJVU می توانید به پشتیبان اطلاع دهید تا فایل مورد نظر را تبدیل نمایند.
توجه داشته باشید کتاب راهنمای الگوهای طراحی غیر معمول ASP.NET Core 5 نسخه زبان اصلی می باشد و کتاب ترجمه شده به فارسی نمی باشد. وبسایت اینترنشنال لایبرری ارائه دهنده کتاب های زبان اصلی می باشد و هیچ گونه کتاب ترجمه شده یا نوشته شده به فارسی را ارائه نمی دهد.
در مورد این کتاب الگوهای طراحی مجموعه ای از راه حل ها برای بسیاری از مشکلات رایج در توسعه نرم افزار هستند. دانش این الگوهای طراحی به توسعه دهندگان و متخصصان کمک می کند تا راه حل های نرم افزاری را در هر مقیاسی ایجاد کنند. الگوهای طراحی ASP.NET Core 5 با بررسی الگوهای طراحی اولیه، اصول معماری، تزریق وابستگی و سایر مکانیسم های هسته ASP.NET شروع می شود. با کشف الگوهایی که به بخشهای کوچک نرمافزار گرایش دارند، مقیاس مؤلفه را بررسی میکنید و سپس به سراغ الگوها و تکنیکهای مقیاس برنامه میروید تا الگوهای سطح بالاتر و چگونگی ساختار برنامه را بهعنوان یک کل درک کنید. این کتاب طیف وسیعی از الگوهای طراحی GoF (باندهای چهار نفر) مانند استراتژی، تکتنه، دکوراتور، نما و کامپوزیت را پوشش میدهد. فصلها بر اساس مقیاس و موضوعات سازماندهی شدهاند، به شما این امکان را میدهند که از کوچک شروع کنید و بر پایهی قوی بسازید، همانطور که یک برنامه را توسعه میدهید. با کمک موارد استفاده، این کتاب به شما نشان می دهد که چگونه الگوهای طراحی را ترکیب کنید تا کاربرد متناوب را نشان دهید و به شما کمک می کند کار با انواع الگوهای طراحی احساس راحتی کنید. در نهایت، شما به سمت مشتری پیش می روید تا نقاط را به هم متصل کنید و ASP.NET Core را به یک جایگزین فول استک مناسب تبدیل کنید. در پایان کتاب، میتوانید الگوهای طراحی را با هم ترکیب کنید و یاد بگیرید که چگونه به معماری و نحوه کارکرد آن فکر کنید.
About this book Design patterns are a set of solutions to many of the common problems occurring in software development. Knowledge of these design patterns helps developers and professionals to craft software solutions of any scale. ASP.NET Core 5 Design Patterns starts by exploring basic design patterns, architectural principles, dependency injection, and other ASP.NET Core mechanisms. You’ll explore the component scale as you discover patterns oriented toward small chunks of the software, and then move to application-scale patterns and techniques to understand higher-level patterns and how to structure the application as a whole. The book covers a range of significant GoF (Gangs of Four) design patterns such as strategy, singleton, decorator, facade, and composite. The chapters are organized based on scale and topics, allowing you to start small and build on a strong base, the same way that you would develop a program. With the help of use cases, the book will show you how to combine design patterns to display alternate usage and help you feel comfortable working with a variety of design patterns. Finally, you’ll advance to the client side to connect the dots and make ASP.NET Core a viable full-stack alternative. By the end of the book, you’ll be able to mix and match design patterns and have learned how to think about architecture and how it works.
Cover Title Page Copyright and Credits Dedicated About Packt Foreword Contributors Table of Contents Preface Section 1: Principles and Methodologies Chapter 1: Introduction to .NET What is a design pattern? Anti-patterns and code smells Anti-patterns Code smells Understanding the web – Request/Response Getting started with .NET .NET SDK versus runtime .NET 5 versus .NET Standard Visual Studio Code versus Visual Studio versus the command-line interface (CLI) Technical requirements Summary Questions Further reading Chapter 2: Testing Your ASP.NET Core Application Overview of automated testing and how it applies to ASP.NET Core Test-driven development (TDD) Testing made easy through ASP.NET Core How do you create an xUnit test project? Basic features of xUnit How to organize your tests How is it easier? Summary Questions Further reading Chapter 3: Architectural Principles The SOLID principles Single responsibility principle (SRP) Open/Closed principle (OCP) Liskov substitution principle (LSP) Interface segregation principle (ISP) Dependency inversion principle (DIP) Other important principles Separation of concerns Don\'t repeat yourself (DRY) Summary Questions Section 2: Designing for ASP.NET Core Chapter 4: The MVC Pattern using Razor The Model View Controller design pattern MVC using Razor Directory structure Structure of a controller Default routing Project: MVC Conclusion View Model design pattern Goal Design Project: View models (a list of students) Project: View models (a student form) Conclusion Summary Questions Further reading Chapter 5: The MVC Pattern for Web APIs An overview of REST Request HTTP methods Response status code Anatomy of a web API Setting up a web API Attribute routing Returning values C# features Class conversion operators (C#) Local functions (C# 7) and a static local function (C# 8) The Data Transfer Object design pattern Goal Design Project – DTO API contracts Analyzing the DTO sample Project – OpenAPI Project – API contracts Idea – Creating a typed client library One last observation Summary Questions Further reading Chapter 6: Understanding the Strategy, Abstract Factory, and Singleton Design Patterns The Strategy design pattern Goal Design Project: Strategy Conclusion A brief look at a few C# features Default literal expressions (C# 7.1) Switch expressions (C# 8) Discards (C# 7) The Abstract Factory design pattern Goal Design Project: AbstractVehicleFactory Project: MiddleEndVehicleFactory Conclusion The Singleton design pattern Goal Design An alternate (better) way Code smell: Ambient Context Conclusion Summary Questions Chapter 7: Deep Dive into Dependency Injection What is Dependency Injection? The composition root Extending IServiceCollection Object lifetime Code smell: Control Freak Using external IoC containers Revisiting the Strategy pattern Constructor injection Property injection Method injection Project: Strategy Revisiting the Singleton pattern The application state Project: Wishlist Tuples (C# 7+) Understanding the Service Locator pattern Project: ServiceLocator Project: ServiceLocatorFixed Conclusion Revisiting the Factory pattern Factory mixed with method injection HomeViewModelFactory Summary Questions Further reading Chapter 8: Options and Logging Patterns An overview of the Options pattern Getting started Project – CommonScenarios Project – OptionsConfiguration Project – OptionsValidation Injecting options directly Conclusion Getting familiar with .NET logging abstractions About logging Writing logs Log levels Logging providers Configuring logging Conclusion Summary Questions Further reading Section 3: Designing at Component Scale Chapter 9: Structural Patterns Implementing the Decorator design pattern Goal Design Project: Adding behaviors Project: Decorator using Scrutor Conclusion Implementing the Composite design pattern Goal Design Project: BookStore Conclusion Implementing the Adapter design pattern Goal Design Project: Greeter Conclusion Implementing the Façade design pattern Goal Design Project: The façades Conclusion Summary Questions Further reading Chapter 10: Behavioral Patterns Implementing the Template Method pattern Goal Design Project – Building a search machine Conclusion Implementing the Chain of Responsibility pattern Goal Project – Message interpreter Project – Improved message interpreter Project – A final, finer-grained design Conclusion Summary Questions Chapter 11: Understanding the Operation Result Design Pattern Goal Design Project – Implementing different Operation Result patterns The consumer Its simplest form A single error message Adding a return value Multiple error messages Adding message severity Sub-classes and factories Advantages and disadvantages Advantages Disadvantages Summary Questions Further reading Section 4: Designing at Application Scale Chapter 12: Understanding Layering Introduction to layering Splitting the layers Layers versus tiers versus assemblies To be or not to be a purist? Sharing the model The reality of small- to medium-sized enterprises Responsibilities of the common layers Presentation Domain Data Abstract data layer Shared rich model Clean Architecture Summary Questions Further reading Chapter 13: Getting Started with Object Mappers Overview of object mapping Goal Design Project: Mapper Code smell: Too many dependencies Pattern – Aggregate Services Pattern – Mapping Façade Project – Mapping service Project – AutoMapper Summary Questions Further reading Chapter 14: Mediator and CQRS Design Patterns A high-level overview of Vertical Slice Architecture Implementing the Mediator pattern Goal Design Project – Mediator (IMediator) Project – Mediator (IChatRoom) Conclusion Implementing the CQRS pattern Goal Design Project: CQRS Code smell – marker interfaces Conclusion Using MediatR as a mediator Project – Clean Architecture with MediatR Conclusion Summary Questions Further reading Chapter 15: Getting Started with Vertical Slice Architecture Vertical Slice Architecture What are the advantages and disadvantages? Anti-pattern: Big Ball of Mud Project: Vertical Slice Architecture Continuing your journey Summary Questions Further reading Chapter 16: Introduction to Microservices Architecture What are microservices? Cohesive unit of business Own its data Independence Getting started with message queues Conclusion An overview of events Domain events Integration events Implementing the Publish-Subscribe pattern Message brokers The event sourcing pattern Example Conclusion Introducing Gateway patterns Gateway Routing pattern Gateway Aggregation pattern Backends for Frontends pattern Mixing and matching gateways Conclusion Revisiting the CQRS pattern Conclusion An overview of containers Docker Docker Compose Orchestration Scaling Conclusion Summary Questions Further reading Section 5: Designing the Client Side Chapter 17: ASP.NET Core User Interfaces Getting familiar with Razor Pages Design Routing Conclusion Organizing the user interface Partial views Tag Helpers View components C# 9 features Top-level statements (C# 9) Target-typed new expressions (C# 9) Init-only properties (C# 9) Record classes (C# 9) Conclusion Display and Editor Templates Display Templates Editor Templates Project : Composite BookStore revisited Conclusion Summary Questions Further reading Chapter 18: A Brief Look into Blazor An overview of Blazor Server Overview of Blazor WebAssembly Getting familiar with Razor components Creating Razor components CSS isolation Component life cycle Event handling The Model-View-Update pattern Goal Design Project: Counter Conclusion A medley of Blazor features Summary Questions Further reading An end is simply a new beginning Assessment Answers Acronyms Lexicon Other Books You May Enjoy Index