CSharpFunctionalExtensions
OneOf
CSharpFunctionalExtensions | OneOf | |
---|---|---|
13 | 25 | |
2,245 | 3,225 | |
- | - | |
6.4 | 2.9 | |
6 days ago | 3 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.
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 :)
OneOf
-
The Monad Invasion - Part 1: What's a Monad?
OneOf
-
Discriminated Unions: Essa feature faz falta no CSharp
Inclusive, para suportar esse tipo de funcionalidade, foi criada a biblioteca OneOf: mcintyre321/OneOf: Easy to use F#-like ~discriminated~ unions for C# with exhaustive compile time matching (github.com)
- Easy to use F#-like ~discriminated~ unions for C# with big compile time matching
-
Rolled my own Result<T,E> type that seems to work better than others.
Then I found discussion of the OneOf package, and then found some simpler Result code. I tried using that code but I found the use of Match and lambdas meant I couldn't simply break out of the loop in my example.
-
What's new in C# 12: overview
Until that feature lands there's this https://github.com/mcintyre321/OneOf which is pretty nice.
- The combined power of F# and C#
-
Exception handling between controller and service
Yep, it's called result pattern, aforementioned above. There was two highlighted implementations - OneOf, FluentResults.
-
Have you heard of AnyOf .NET Lib?
No he didn't. He made a video of the OneOf library. Not this one.
-
Have you heard of AnyOf C# Library?
We already have OneOf https://github.com/mcintyre321/OneOf I've used it in Production multiple times and it's an awesome way to keep everything strongly typed and eliminate null reference exceptions.
- What your hidden nuget gems ?
What are some alternatives?
language-ext - C# functional language extensions - a base class library for functional programming
docs - User documentation for Knative components.
csharp-monad - Library of monads for C#
docs - This repository contains .NET Documentation.
ValueOf - Deal with Primitive Obsession - define ValueObjects in a single line (of C#).
github-docs - The open-source repo for docs.github.com
csharplang - The official repo for the design of the C# programming language
FluentResults - A generalised Result object implementation for .NET/C#
Rop.OneOfExtensionGenerator - OneOf Helper Extensions Source Generator
ASP.NET Core - ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
TensorFlowSharp - TensorFlow API for .NET languages