2k followers 0 articles/week
Custom config sections using static virtual members in interfaces

C# 11 introduced a new feature - static virtual members in interfaces. The primary motivation for this feature is to support generic math algorithms. The mention of math might make some ignore this feature, but it turns out it can be useful in other scenarios. For example, I was able to leverage this feature to clean up how I register and consume...

Thu Jul 18, 2024 20:53
.NET Aspire vs Docker.

This is a follow-up to my previous post where I compared .NET Aspire to NuGet. In that post, I promised I would follow up with a comparison of using .NET Aspire to add a service dependency to a project versus using Docker. And looky here, I’m following through for once! The goal of these examples is to look at how much “ceremony” there is to...

Wed Jul 17, 2024 05:59
Is .NET Aspire NuGet for Cloud Service Dependencies?

Recently I tweeted, It’s not a perfect analogy, but .Net Aspire is like NuGet for cloud services. We created NuGet to make it easy to pull in libraries. Before, it took a lot of steps. Nowadays, to use a service like Postgres or Rabbit MQ, takes a lot of steps. And I’m not just saying that because David Fowler, one of the creators of...

Thu Jun 27, 2024 19:15
Failure suuuuucks

When you fail, many people will tell you how failure is a great teacher. And they’re not wrong. But you know what else is a great teacher? Success! And success is a lot less expensive than failure. About a month ago, my co-founder and I decided to shut down our startup, A Serious Business, Inc., the makers of Abbot. He wrote some beautiful words...

Tue Nov 14, 2023 05:43
When Your DbContext Has The Wrong Scope

This is the final installment of the adventures of Bill Maack the Hapless Developer (any similarity to me is purely coincidental and a result of pure random chance in an infinite universe). Follow along as Bill continues to improve the reliability of his ASP.NET Core and Entity Framework Core code. If you haven’t read the previous installments, you...

Mon Sep 4, 2023 08:03
Calling internal ctors in your unit tests”

One of my pet peeves is when I’m using a .NET client library that uses internal constructors for its return type. For example, let’s take a look at the Azure.AI.OpenAI nuget package. Now, I don’t mean to single out this package, as this is a common practice. It just happens to be the one I’m using at the moment. It’s an otherwise lovely package. I’m...

Mon May 1, 2023 21:31

Build your own newsfeed

Ready to give it a go?
Start a 14-day trial, no credit card required.

Create account