Notes from a .NET developer who keeps drifting towards functional programming
I write about C#, .NET and the architecture of systems built by small teams: things I had to figure out the hard way, written down so I stop re-figuring them out.
Posts
-
Serving a static site with nginx: the minimal config I keep reusing
A short, generic nginx server block for a static site with directory-style URLs, hashed assets, a custom 404 and sane caching.
-
Scheduling background work on Windows: Task Scheduler vs. hosted services
Two ways to run recurring jobs on a Windows box, what each one is good at, and the mistakes I made before I stopped mixing them up.
-
Monolith first: architecture notes for a team of five
Why a modular monolith is the default I recommend to small teams, and how to keep module boundaries honest in .NET without a service mesh.
-
A Result type for C#: handling expected failures without exceptions
A minimal Result type with Map, Bind and Match, and the rule I use to decide between an exception and a returned error.
-
File-based .NET apps: one .cs file and a #:package directive
How .NET 10 file-based apps and the #:package directive changed the way I write small tools, and where I still reach for a full project.