Digests » 396

sponsor

Retool is the fast way to build internal tools

Retool is the fast way to build internal tools. Visually design apps that interface with any database or API. Switch to code nearly anywhere to customize how your apps look and work. With Retool, you ship more apps and move your business forward—all in less time.

this week's favorite

Looking back at C#

They say the holidays should be a time where one looks back at the past year, or period of time in their life and reflects upon decisions and events in their lifetime. One is supposed ponder their successes and failures in a hope to gleam some insight into the highs and lows of times past in an effort to either duplicate or avoid such events. Both from a personal and societal standpoint, the location of where we stand today sometimes feels but just a few feet from the beginning, but in reality it maybe a great distance from where we started.

Using DateOnly and TimeOnly in .NET 6 to simplify your code

.NET 6 introduced two new types that many developers have been eagerly awaiting; DateOnly and TimeOnly. Both represent Date and Time separately; instead of relying on the DateTime object, they’re also Structs. This is great because sometimes, we, as developers, don’t care about one of these types. Some object we’ve created might only care about the date and have no use for time, which could be significant as DateOnly can now match the SQL Server date type. Wouldn’t it be great not to have to parse that the time out?

Stay safe with your units: Advanced units of measure in .NET

This mini-article shows a concept of advanced units of measure, fully type safe, with automatic unit conversion, without runtime dispatch, powered by generic math!

Accessing arrays and class fields with .NET profiling APIs

After getting basic and strings parameters, it is time to look at arrays and reference types.

HTMX and ASP.NET Core swapping techniques

I’ve recently been on an HTMX journey, trying to learn more about the library and slowly combining it with my expert-level knowledge of ASP.NET Core. What I’ve found along the way is that using HTMX is a powerful tool that can fully take advantage of all the strengths that ASP.NET Core’s Razor view engine can offer. But, like most tools in tech, it often feels like there are a million ways to solve any problem.