CSharpFunctionalExtensions
MoreLINQ
CSharpFunctionalExtensions | MoreLINQ | |
---|---|---|
13 | 21 | |
2,245 | 3,597 | |
- | 0.6% | |
6.4 | 7.7 | |
6 days ago | 2 days ago | |
C# | C# | |
MIT License | Apache License 2.0 |
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 :)
MoreLINQ
- What your hidden nuget gems ?
-
Do you know about the DistinctBy method?
You can grab MoreLinq off of Nuget for pre-.NET6 and it has a DistinctBy implementation that you might be able to use: https://github.com/morelinq/MoreLINQ
-
Three words.,, => C# Functional Programming is awesome!!! Do you seasoned developers have any war-stories or nightmare stories regarding Functional Programming?
Install "morelinq" 3.3.2 from Nuget: https://www.nuget.org/packages/morelinq You know you got the right one if it has about 37.2 million downloads.
-
Is there a reason why a WithIndex() extension method isn't apart of the standard library?
If you don't already know about it, I highly recommend checking out the MoreLINQ open source project which adds a bunch of these less common but still occasionally useful extensions to LINQ. They also include an Index method which does exactly what your WithIndex method does, yielding out KeyValuePair entries for each iteration.
- How to remove duplicates from a list, I've tried multiple approaches but with no luck. Can You help me out or point me in the right direction, please. My attempts are in the post
-
Just had a Senior Technical Interview that was so bad and such a waste of time that I burnt that bridge and burnt it hard. If this is how your company interviews people please stop.
yield return is a significant core piece of the framework. It's the basis of which most deferred execution and LINQ is built upon and any extension one would want to add to LINQ. (for example)
-
it feels as though the LINQ queries are inferior to simply using the Enumerable extensions, is there something i'm missing?
For a time, I'd say the Query Syntax was comparatively as popular as the Method Syntax. But over the years as LINQ became ubiquitous for working with non-database queries (LINQ-to-Objects) and more users extended them (for example, MoreLinq) the Method Syntax became more popular. I'd say nowadays the Query Syntax is relatively rare to see and perhaps mostly limited to direct database queries or these scenarios like "join" that are easier.
-
Full outer join in LINQ
I suggest morelinq https://github.com/morelinq/MoreLINQ
-
Things I don't like or confused me in C#
If you don't already know about it, take a gander at the MoreLINQ extensions. I don't think it solves this particular problem, but it's a great example of extending LINQ.
-
-🎄- 2021 Day 1 Solutions -🎄-
It's part of the MoreLinq library. The Window() function code is here.
What are some alternatives?
language-ext - C# functional language extensions - a base class library for functional programming
docs - User documentation for Knative components.
NetFabric.Hyperlinq - High performance LINQ implementation with minimal heap allocations. Supports enumerables, async enumerables, arrays and Span<T>.
docs - This repository contains .NET Documentation.
Extensions-And-Utilities-For-Unity - A collection of Extension methods and Utility classes for the System, UnityEngine, and UnityEditor namespaces.
github-docs - The open-source repo for docs.github.com
JFlepp.Maybe - A Maybe type for C#, aimed as an idiomatic port of the option type in F# to C#
FluentResults - A generalised Result object implementation for .NET/C#
Curryfy - Provides strongly typed extensions methods for C# delegates to take advantages of functional programming techniques, like currying and partial application.
ASP.NET Core - ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
Optional - A robust option type for C#