FluentResults
Result
Our great sponsors
FluentResults | Result | |
---|---|---|
10 | 4 | |
1,643 | 746 | |
- | - | |
0.0 | 7.3 | |
5 months ago | 15 days ago | |
C# | C# | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
FluentResults
-
The Monad Invasion - Part 1: What's a Monad?
FluentResults
-
FluentResults: Simplificando el Manejo de Resultados y Errores en Aplicaciones .NET
altmann/FluentResults: A generalised Result object implementation for .NET/C# (github.com)
-
TypeScript Is Surprisingly OK for Compilers
Or maybe just start using Results as return type and get ValueOrDefault :) But when it comes to handling exceptions, I think it explodes there with ifs and processing IENumerables: https://github.com/altmann/FluentResults
But then again, simpler Results wrapper may be used perhaps. But it is a different way of coding and takes some mental shift on how to think about errors and distinguish between error results and true exceptions.
https://github.com/altmann/FluentResults
-
Exception handling between controller and service
Yep, it's called result pattern, aforementioned above. There was two highlighted implementations - OneOf, FluentResults.
-
Communication - library for Results
What does this library do better or differently than something like Fluent Results?
-
Why is using Exceptions is controversial in low level languages (like C++) but not in C#?
For C# particular - this project https://github.com/altmann/FluentResults
-
Knowledge of generics: isn't it pretty common?
For example https://github.com/altmann/FluentResults is excellent if you want generic results
-
The Operation Result Pattern
It's worth noting that there's also a library called FluentResults as an alternative to this one.
-
Introducing Cranks.Result
Interesting... I just found out that your first intention was to improve FluentResults but your PR got rejected which is a pity. PR: https://github.com/altmann/FluentResults/pull/80. I guess I will have a look at your library in hopes of removing some boilerplate code. Thanks!
Result
-
Advantages and disadvantages of FastEndpoints
Using the Nuget Package Ardalis.Result for mapping result objects to HTTP Response Codes and associated objects; FastEndpoint has its own way of approaching this problem, which seems to be to hang everything off an "Endpoint" and optionally using Swagger to redundantly describe the route's behavior; this seems like a step backwards from more advanced Web frameworks in other languages. The advantage of Ardalis.Result should be clear - each closed form of Ardalis.Result can have its own knowledge of what it does, and therefore automatically describe the abstract transformations it does on a request. In functional programming, this "abstract transformation" is typically called a monad transformer or Arrow. Once you have a type that describes the abstract transformation, plugging that into Swagger should be straight-forward.
-
Why doesn't eager loading work with EF?
You could also use the Ardalis Guard Clause, Ardalis Result and Fluent Validation
-
The Operation Result Pattern
I use this generic package. https://github.com/ardalis/Result
-
Best practices for return values to handle success and failure conditions of business rules, exceptions, and returning a result?
For you're Result.cs , look at [Result pattern]https://github.com/ardalis/Result) as an example.
What are some alternatives?
Cranks.Result - A simple, strongly typed and boilerplate poor implementation of the Result pattern.
clean-minimal-api - A project showcasing how you can build a clean Minimal API using FastEndpoints
tweetinvi - Tweetinvi, an intuitive Twitter C# library for the REST and Stream API. It supports .NET, .NETCore, UAP (Xamarin)...
SmartEnum - A base class for quickly and easily creating strongly typed enum replacements in C#.
sendgrid-csharp - The Official Twilio SendGrid C#, .NetStandard, .NetCore API Library
Specification - Base class with tests for adding specifications to a DDD model
excepticon-dotnet - Excepticon SDK for .NET
Swashbuckle.AspNetCore - Swagger tools for documenting API's built on ASP.NET Core
CSharpFunctionalExtensions - Functional extensions for C#
software-design-patterns - C# Design Patterns Tutorial Sample Code
spectre.console - A .NET library that makes it easier to create beautiful console applications.
safe-routing - A C# source generator for ASP.NET Core razor pages and MVC controllers which produces strongly-typed identifiers for routes.