🦜 Khalid Abuhakmeh
@khalidabuhakmeh.com@rss-parrot.net
I'm an automated parrot! I relay a website's RSS feed to the Fediverse. Every time a new post appears in the feed, I toot about it. Follow me to get all new posts in your Mastodon timeline!
Brought to you by the RSS Parrot.
---
Khalid is a product designer, traveler, respected community member, and open source contributor.
Your feed and you don't want it here? Just
e-mail the birb.
Checked and Unchecked Arithmetic Operations in .NET
https://khalidabuhakmeh.com/checked-and-unchecked-arithmetic-operations-in-dotnet
Published: August 27, 2024 00:00
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 of the code you’ll…
Confirmation Dialogs with Htmx and SweetAlert
https://khalidabuhakmeh.com/confirmation-dialogs-with-htmx-and-sweetalert
Published: August 20, 2024 00:00
When building web experiences, there are safe operations and destructive ones. In the case of dangerous actions, it’s widespread to ask the user if they’d like to continue with the action before ultimately executing it.
In this post, we’ll explore a…
How To Pick The Right Constructor When Using ActivatorUtilities In .NET
https://khalidabuhakmeh.com/how-to-pick-the-right-constructor-when-using-activatorutilities-in-dotnet
Published: August 13, 2024 00:00
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…
Add a Property to the Top-level Statements Program class
https://khalidabuhakmeh.com/add-a-property-to-the-top-level-statements-program-class
Published: August 6, 2024 00:00
The evolution of the C# language has introduced us to many new features and probably made a lot of folks re-evaluate how they write their apps. In the latest versions of .NET, nothing has been marked such a stylistic shift as the introduction of top-level…
Fix .NET MAUI MissingEntitlement and Provisioning Profiles Issues
https://khalidabuhakmeh.com/fix-dotnet-maui-missingentitlement-and-provisioning-profiles-issues
Published: July 30, 2024 00:00
There are times on this blog when I write posts for the reader’s benefit and times when I need to memorialize my own
pain and suffering to find a solution to a seemingly simple issue. This post is the latter.
In this post, we’ll see what it takes to fix…
Health Checks for ASP.NET Core and Entity Framework Core
https://khalidabuhakmeh.com/health-checks-for-aspnet-core-and-entity-framework-core
Published: July 23, 2024 00:00
I’ve recently been reading up on .NET Aspire and have found a lot of cool .NET tech underpinning the offering. One of
the tools that has gotten a glow-up since I last looked at it has been Microsoft.Extensions.Diagnostics.HealthChecks
package provides you…
How To Fix .NET Nullability Warnings For Guarded Members
https://khalidabuhakmeh.com/how-to-fix-dotnet-nullability-warnings-for-guarded-members
Published: July 16, 2024 00:00
Nullability provides developers with development-time warnings that can help reduce dereferencing issues. These errors
can be costly, but with the power of a few additional checks in code, developers can easily avoid them, putting them in
control of their…
HTML Datalist for ASP.NET Core Inputs
https://khalidabuhakmeh.com/html-datalist-for-aspnet-core-inputs
Published: July 9, 2024 00:00
In my last blog post, I discussed range inputs. This time, we’ll examine a tag helper that adds support for the HTML element of datalist.
In this short post, I’ll explain what a datalist is and why you may want to consider using it in your ASP.NET Core…
HTML Range Inputs with ASP.NET Core TagHelpers
https://khalidabuhakmeh.com/html-range-inputs-with-aspnet-core-taghelpers
Published: July 2, 2024 00:00
I’ve recently been rediscovering all the input fields that HTML offers and how they can help developers build more straightforward user experiences. The library of native HTML controls is impressive, with 22 HTML input types as of this post.
Looking…
HTML5 Validation for ASP.NET Core Models and Razor Views
https://khalidabuhakmeh.com/html5-validation-for-aspnet-core-models-and-razor-views
Published: June 25, 2024 00:00
I was recently working on an HTMX and ASP.NET Core demo and wanted to limit client-to-server requests to valid requests. This is a built-in feature for HTMX, as long as you utilize HTML5 validators on your forms and inputs. As many ASP.NET Core…