With Microsoft’s official release of .NET Core 3 today, I want to give you my perspective on .NET and tell you how the platform continues to innovate solutions to modern problems. I’ve been using .NET since beta 2 of the framework back in 2001 and have seen a lot of change over the […]
Ever wish you could act on different types of variables — effectively switching by object type and taking different action depending on which class is present? Discriminated Unions from functional programming languages offer an answer to this. In this article I explore the good and bad of Discriminated Unions in C# and […]
Yesterday I wrote on Feature Flags in a largely language-neutral overview article. Today I want to discuss my library of choice for Feature Flags in .NET applications: FeatureToggle by Jason Roberts. Feature Toggle is a very small and dedicated library dedicated to a variety of flexible feature toggle variations. In Feature […]
Ever needed a bunch of random data for testing, UI prototyping, or even as part of an application? I did, and I found a good option to generate it for .NET applications. Bogus is loosely based off of the Faker library for PHP and differs from testing libraries like AutoFixture by […]
This article will walk you through some simple steps in creating, running, and testing a new ASP .NET Core Web API. Prerequisites I will be using .NET Core 2.1 as it’s what I have installed on my machine, though today Release Candidate 1 of .NET Core 3 came out. To get started: Download […]
Five years ago I hit a plateau. My code hit a certain level of quality and flexibility and stopped improving. Here’s how I used aspects of functional programming to keep climbing. My code was pretty SOLID, but there was still a lot of very similar code, despite actively trying to […]
Null reference exceptions are one of the most frequent errors encountered in .NET applications. As powerful as the framework is, it’s built around a core assumption that reference types can point to null, so any code that works with a reference type needs to either know already that the object is […]
In my prior post I talked about using functional programming null handling features. While this is a valid approach, it is also one that requires a lot of code changes to achieve. If you don’t want to make that drastic of a level of changes, there are a few other […]
This is a short and sweet article showing how the Option class can bring functional programming concepts to C# codebases and prevent null reference exceptions.
This is a comparison of C# and F# implementations of programming a simple neural network library. A neural net is essentially a calculator that takes one or more numerical inputs and computes one or more numerical outputs.