Coding Militia

Mapping ASP.NET Core minimal API endpoints with C# source generators

I’m pretty late to the C# source generator party, but hey, better late than never 😅. In this post, let’s take a look at how we can automagically map minimal API endpoints using C# source generators

January 31, 2023 · 8 min · 1624 words · João Antunes

The “insert specific tech here” developer: yay or nay?

The boxes developers put themselves into is something I’ve given some thought over time. Probably not something folks think about much, but figured I’d write a post about it anyway.

January 19, 2023 · 9 min · 1790 words · João Antunes

On résumé-driven development, FOMO and dismissing it

I’ve had some of thoughts not exactly résumé-driven development, but more importantly, how engineers, can remain up to date and relevant in the job market, and a recent discussion on LinkedIn reminded me about it.

November 7, 2022 · 3 min · 544 words · João Antunes

Beware of records, with expressions and calculated properties

I’ve been using C# records a lot since the feature was introduced. However, when using them, we really need to understand how they work, otherwise we might face unexpected surprises.

September 1, 2022 · 6 min · 1226 words · João Antunes

[Video] Outbox meets change data capture - hooking into the Write-Ahead Log (feat. .NET, PostgreSQL & Kafka)

Another video on using change data capture (often referred to as CDC), to hook up into the database transaction log, forwarding incoming entries to the outbox table.

July 27, 2022 · 1 min · 136 words · João Antunes

[Video] What's the point of async/await in an ASP.NET Core application?

I’ve been noticing in recent chats that folks have difficulty explaining why do we use async/await, tasks and related, when building ASP.NET Core applications.

May 30, 2022 · 1 min · 93 words · João Antunes

[Video] Quick shout-out to DevToys

Wanted to very briefly share a tool I’ve come across a couple of months ago: DevToys.

May 3, 2022 · 1 min · 106 words · João Antunes

[Video] Polymorphic JSON Serialization (feat. .NET & System.Text.Json)

Time for one more video on messing with System.Text.Json, this time to get polymorphic (de)serialization going.

April 13, 2022 · 1 min · 68 words · João Antunes

OpenAPI extensions and Swashbuckle

Let’s take a quick look at OpenAPI extensions (which I discovered were a thing last week 😛) and how to add them to our API description using ASP.NET Core and Swashbuckle.

February 21, 2022 · 5 min · 861 words · João Antunes

Array or object JSON deserialization (feat. .NET & System.Text.Json)

Ah, the joys of integrating with third-party APIs… We always end up having to hammer something to get things working 🤣. This is a post about one of such situations, resorting to some JSON deserialization trickery (via JsonConverter) to be able to get things working.

January 31, 2022 · 4 min · 689 words · João Antunes