How to Implement the Result Pattern with the ErrorOr Library

  Рет қаралды 2,491

Spyros Katsios

Spyros Katsios

Күн бұрын

Пікірлер: 14
@unhandledexception1948
@unhandledexception1948 4 ай бұрын
Thank you Spiro, excellent video on this important pattern... great supplement to the docs of the library
@spyroskatsios
@spyroskatsios 4 ай бұрын
Thank you very much!
@jaymartinez311
@jaymartinez311 10 ай бұрын
Thanks a million. Exactly what I was looking for with no fluff and straight to the point. Following the channel for sure!
@spyroskatsios
@spyroskatsios 10 ай бұрын
Thanks a lot man!!!
@masaftic
@masaftic Ай бұрын
i was wondering how to do that with a void method. Didn't know you can do an ErrorOr Thanks for the tutorial
@spyroskatsios
@spyroskatsios Ай бұрын
Glad I could help!
@ahmadalmasri4416
@ahmadalmasri4416 8 ай бұрын
that's simple and clean thank you
@spyroskatsios
@spyroskatsios 8 ай бұрын
You're very welcome!
@projkbsta
@projkbsta Жыл бұрын
thanks for the ErrorOr tutorial
@spyroskatsios
@spyroskatsios Жыл бұрын
You are very welcome!
@fresh0bm
@fresh0bm 3 ай бұрын
How to user ErrorOr with void methods? Let's say I would like to validate errors on caller side but don't wanna return anything as result from the method.
@spyroskatsios
@spyroskatsios 3 ай бұрын
I don't get exactly what you want to achieve, but the erroror as every result pattern library have the usage of returning some kind of union (one or the other), so if you are using a method that returns void, you are not using the library
@fresh0bm
@fresh0bm 3 ай бұрын
So in void method we can't have error or what?
@spyroskatsios
@spyroskatsios 3 ай бұрын
You can use ErrorOr so you can return Success if not failed and the error otherwise.
Introduction to IAsyncEnumerable
8:36
Spyros Katsios
Рет қаралды 280
Implementing the Result Pattern In ASP.NET API
16:50
Codewrinkles
Рет қаралды 6 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
The Right Way To Return API Errors in .NET
10:40
Nick Chapsas
Рет қаралды 70 М.
Get Rid of Exceptions in Your Code With the Result Pattern
13:06
Milan Jovanović
Рет қаралды 58 М.
How to Become a Highly Employable C# Developer in 2025
20:10
Gavin Lon
Рет қаралды 4,1 М.
Zig For the Uninitiated: Zig Interfaces
11:56
Tyler Calder
Рет қаралды 4 М.
The symptoms of bad code - Robert C. Martin (Uncle Bob)
5:42
Dev Tools Made Simple
Рет қаралды 33 М.
The New Option and Result Types of C#
15:05
Nick Chapsas
Рет қаралды 85 М.
Don’t Use UUIDs/GUIDs in Databases. Use this Instead
10:36
Nick Chapsas
Рет қаралды 51 М.
5 deadly Rust anti-patterns to avoid
13:25
Let's Get Rusty
Рет қаралды 39 М.
Handling Concurrency Conflicts with Entity Framework
9:52
Spyros Katsios
Рет қаралды 215