TL;DR; - Here's the Nuget link
A few years back I've decided to create a Result
and Result
classes to handle a situation in my code - I've had a couple of classes that contained methods with expected points of failures, but couldn't inject a logger into these classes (well, technically I could, but it was prohibited by the architect in charge).
The solution I came up with was to use a couple of classes to enhance the return value of these methods - the Result
and Result
classes which I've blogged about in 2021
So this project was collecting dust as a GitHub repository for a while, before I found out that this is an actual known pattern adopted into C# from functional programming - and that pattern actually has quite a few implementations - like Amichai Mantinband's ErrorOr which is a great implementation that offers a very rich API.
Lately I've needed to use the result pattern again, and as I was searching for an implementation that was accurate for my needs, I came to realize that my old ResultOf
project was just what I needed - nothing less, nothing more. I mean, I could go with ErrorOr
or any other implementation, but they all seemed to be a bit of an overkill for my specific need.
So I did what any other reasonable developer did and tried to upload my existing project to Nuget - however, it turned out the package id ResultOf was already in use (with another implementation that wasn't exactly what I wanted) so I named it Result.Simplified.
One thing led to another and 16 days later I'm at version 2.1.0, with a 100% test coverage, a newly created repository, and almost 700 downloads.
If you've made it so far I would love to get some feedback on it, if that's not too much to ask :-)