Khalid Abuhakmeh

Khalid Abuhakmeh's Blog
  • Resumé
  • About
  • 🔍 Search

Tag - "dotnet"

A collection of 243 posts

April 22, 2025

Server-Sent Events in ASP.NET Core and .NET 10

Server-Sent Events in ASP.NET Core and .NET 10

Like many .NET developers, I’m starting to look at the features coming in .NET 10, C# 14, and specifically ASP.NET Core. To my surprise, ASP.NET Core Minimal APIs now support Server-Sent Events (SSE). For folks who don’t know what Server-Sent...

Continue Reading

dotnet aspnet

March 4, 2025

Generic C# Methods with Enum Constraints for .NET

Generic C# Methods with Enum Constraints for .NET

Every couple of years, I tend to write the same variation of an enum helper that reads metadata from an enumeration using reflection. Almost any .NET developer with a few years of experience has done the same. The implementation uses...

Continue Reading

dotnet csharp

February 18, 2025

The Curious Case of .NET ConcurrentDictionary and Closures

The Curious Case of .NET ConcurrentDictionary and Closures

I was recently looking at the Duende Software codebase, and I kept seeing the same suggestion offered by the IDE tooling whenever I encountered a ConcurrentDictionary: “Closure can be eliminated: method has overload to avoid closure creation.”

Continue Reading

dotnet csharp

January 7, 2025

Writing a String Numeric Comparer with .NET 9

Writing a String Numeric Comparer with .NET 9

I recently saw that .NET 10 adds a numeric comparer, allowing you to sort string elements that may contain numeric values at the end of a string. Think movie sequels or number versions of an operating system. To my surprise,...

Continue Reading

dotnet

December 31, 2024

Great .NET Documentation with Astro, Starlight, and MarkdownSnippets

Great .NET Documentation with Astro, Starlight, and MarkdownSnippets

The hallmark of every great project is equally great documentation, but it can be increasingly difficult for developers to keep both in sync. Luckily, I’ve been experimenting again with a combination of Starlight and MarkdownSnippets to make maintaining code samples...

Continue Reading

astro javascript dotnet

October 22, 2024

Update HTML Elements with Htmx Triggers and ASP.NET Core

Update HTML Elements with Htmx Triggers and ASP.NET Core

Let me start by saying that I love the combination of Htmx and ASP.NET Core, and it is a pairing that any .NET developer should consider, whether maintaining an existing application or building a new one. It’s very cool. I...

Continue Reading

htmx aspnet dotnet

October 8, 2024

Add EF Core Migrations to .NET Aspire Solutions

Add EF Core Migrations to .NET Aspire Solutions

Folks working with EF Core are likely very fond of the library’s migration features, one of the most vital selling points for adopting an ORM. If you’re building a .NET solution, your database schema will evolve, and adding, removing, and...

Continue Reading

aspire dotnet

September 10, 2024

Intersperse Values for Enumerable Collections

Intersperse Values for Enumerable Collections

JavaScript, for better or worse, has a much smaller standard library than what .NET developers are used to with the base class library (BCL). The JavaScript community has made many attempts to build a standard library, and I’m sure some...

Continue Reading

dotnet csharp

August 27, 2024

Checked and Unchecked Arithmetic Operations in .NET

Checked and Unchecked Arithmetic Operations in .NET

The other day, I played around with the Fibonacci sequence and overflowed my int variables in surprisingly low iterations. Did you know you’ll overflow an integer in **48 ** iterations? Don’t believe me? Let’s take a look at the result...

Continue Reading

dotnet csharp

August 13, 2024

How To Pick The Right Constructor When Using ActivatorUtilities In .NET

How To Pick The Right Constructor When Using ActivatorUtilities In .NET

If you’ve ever worked with reflection in .NET, you’re likely familiar with Activator. In .NET 6, ActivatorUtilities was introduced to make it easier to create classes with dependencies. Constructor dependency injection is common in the .NET space, and you’re likely...

Continue Reading

dotnet

Page 1 of 25 Older Posts

mastodon logo Mastodon GitHub RSS Feed

Khalid Abuhakmeh © 2025 .
Powered by Jekyll.

Back to top

Explore Site

  • Resumé
  • About
  • 🔍 Search

About Khalid Abuhakmeh

Khalid is a product designer, traveler, respected community member, and open source contributor.

Recent Articles

  • April 22, 2025
    Server-Sent Events in ASP.NET Core and .NET 10
    Server-Sent Events in ASP.NET Core and .NET 10
  • March 4, 2025
    Generic C# Methods with Enum Constraints for .NET
    Generic C# Methods with Enum Constraints for .NET
  • February 25, 2025
    Strongly-Typed Markdown for ASP.NET Core Content Apps
    Strongly-Typed Markdown for ASP.NET Core Content Apps

Tags

11ty Blazor HTML JavaScript MAUI OpenAPI TypeScript aspire aspnet aspnetcore astro avalonia azure beginners blazor blog console csharp css database development docker dotnet efcore entity-framework fsharp general github html htmx http javascript jekyll jetbrains json kotlin macOS machine-learning markdown maui mobile mvc nuget oss playwright question razor regex ruby rust search security sql static style terminal tips twitter typescript vite wasm web xamarin xunit