Flow Control | ASP.NET 6 REST API Following CLEAN ARCHITECTURE & DDD Tutorial | Part 5

Amichai Mantinband
Amichai Mantinband
58.8 هزار بار بازدید - 2 سال پیش - Link to the full playlist:
Link to the full playlist: ASP.NET 6 REST API Following CLEAN AR...

Become a Patreon & get the source code: Patreon: amantinband

Follow me on 'em socials:
Twitter: Twitter: amantinband
LinkedIn: LinkedIn: amantinband
GitHub: https://github.com/amantinband

Follow Milan on 'em socials:
LinkedIn: LinkedIn: milan-jovanovic
GitHub: https://github.com/m-jovanovic
Twitter: Twitter: m_jovanovic_

What is this series?
We'll build a REST API following Clean Architecture & Domain-Driven Design principles completely from scratch.
We will use .NET 6, EF Core, and common patterns such as CQRS, unit of work, repository, mediator, and more 💪🏽
We'll also use some awesome open-source libraries such as MediatR, FluentValidation, ErrorOr, Throw, Mapster, and more.
The developing environment will be visual studio code & dotnet CLI only. We will use awesome vscode plugins for everything from sending HTTP requests to connecting to our SQL database, debugging, and peeking at JWT tokens.
We will code and refactor multiple times to tackle the many concepts I want to teach. When the series will be over, you'll have a good understanding and intuition on how to use these patterns & libraries in your industry-level applications.

How often will a new part come out?
Once or twice a week.

Today We'll ask the hard questions:
Why are we throwing exceptions?
Should we be using exceptions for flow control?
What is the alternative?

We'll dive into Flow Control using the following approaches:
1. Throwing Exceptions
2. Using a discriminated union of an error or a result.

The libraries we will look at for the second approach are:
1. OneOf
2. FluentResults
3. ErrorOr

By the end of this video, you'll have a deep understanding of the various approaches and will have a better idea of what to use in your application.

Give 'em libraries a ⭐:
https://github.com/amantinband/error-or
https://github.com/altmann/FluentResults
https://github.com/mcintyre321/OneOf

#dotnet

00:00. Overview
00:33. Special Anouncement
01:38. via Exceptions
05:35. The case against exceptions
09:55. via OneOf
15:30. via FluentResults
18:55. via ErrorOr
2 سال پیش در تاریخ 1401/04/12 منتشر شده است.
58,835 بـار بازدید شده
... بیشتر