FluentResults
CSharpFunctionalExtensions
Our great sponsors
FluentResults | CSharpFunctionalExtensions | |
---|---|---|
10 | 13 | |
1,643 | 2,227 | |
- | - | |
0.0 | 6.1 | |
5 months ago | 2 months 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!
CSharpFunctionalExtensions
-
Result pattern: language-ext vs FunctionalExtensions?
Hey, I am considering adopting the Result pattern in my codebase. Wanted to get some opinions from someone who has experience with it: should I start with language-ext or FunctionalExtensions?
-
Exception handling between controller and service
I like both of those libraries but my favorite is CSharpFunctionalExtensions.
-
Do you add the “Async” suffix to async method names?
This very popular library CSharpFunctionalExtensions does not add the “Async” suffix because:
- Is it better to return null or a new object?
-
Communication - library for Results
Something that also has types to handle such cases is https://github.com/vkhorikov/CSharpFunctionalExtensions
-
Three words.,, => C# Functional Programming is awesome!!! Do you seasoned developers have any war-stories or nightmare stories regarding Functional Programming?
CSharpFunctionalExtensions Really great, this is all you need
-
MVC: How do you return Failures from Services? (Separation of Concern)
https://github.com/vkhorikov/CSharpFunctionalExtensions is a small library that has a really nice Result type included, which allows implicit converisons.
-
Kentico Xperience Design Patterns: Handling Failures - The Result Monad
If you think your Kentico Xperience site might benefit from returning failures and using the Result monad, checkout the CSharpFunctionalExtensions library and my library-in-progress XperienceCommunity.CQRS. It codifies these patterns for data retrieval and integrates cross-cutting concerns like logging and caching.
- What's a pattern similar to Rust's Option<Option<T>>?
-
Only continue with functions if variable is true
https://github.com/vkhorikov/CSharpFunctionalExtensions - a package with ready types and functions :)
What are some alternatives?
Result - A result abstraction that can be mapped to HTTP response codes if needed.
language-ext - C# functional language extensions - a base class library for functional programming
Cranks.Result - A simple, strongly typed and boilerplate poor implementation of the Result pattern.
docs - User documentation for Knative components.
tweetinvi - Tweetinvi, an intuitive Twitter C# library for the REST and Stream API. It supports .NET, .NETCore, UAP (Xamarin)...
docs - This repository contains .NET Documentation.
sendgrid-csharp - The Official Twilio SendGrid C#, .NetStandard, .NetCore API Library
github-docs - The open-source repo for docs.github.com
excepticon-dotnet - Excepticon SDK for .NET
ASP.NET Core - ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
spectre.console - A .NET library that makes it easier to create beautiful console applications.
CoreFX - This repo is used for servicing PR's for .NET Core 2.1 and 3.1. Please visit us at https://github.com/dotnet/runtime