Blog Posts

Latest articles and insights

Use .NET 11 preview features to make invalid states explicit and exhaustively handled.

Model Finite State Machines with C# Unions and Closed Classes

Răzvan Mareș7 min read

A surprising amount of application complexity comes from pretending that a finite set of states is open-ended. Consider an order workflow. An order may be `Draft`, `Submitted`, `Paid`, `Cancelled`, o...

.NETcsharp
Use task shape, blast radius, and verification cost—not prestige—to select a coding model.

Route Coding Tasks by Risk: A Claude Agent Playbook for Sonnet 5 and Opus 4.8

Răzvan Mareș8 min read

A coding agent is not a single tool. It is a worker with a particular attention span, cost profile, and appetite for ambiguity. Treating every task as a reason to reach for the largest available model...

PostgreSQLGitHub Actionscsharp+2
Turn a local model server into a reliable, observable private platform for real applications.

Local Models as a Service: Operating Private AI Beyond the Demo

Răzvan Mareș9 min read

Running a local language model is easy. Operating one as a dependable service is where the interesting work begins. The first successful prompt feels almost magical: download a model, start a runtime...

PostgreSQLlinuxrabbitmq+3
Turn repository knowledge, delivery signals, and guardrails into better AI-assisted development.

Enhancing Claude with a Living Engineering Memory Layer

Răzvan Mareș8 min read

Claude becomes substantially more useful when it is treated as part of an engineering system rather than as a sophisticated autocomplete window. The model can reason over a feature, explain a failure,...

PostgreSQLGitHub Actions.NET+2
A practical method for finding hidden allocations, stalled async flows, and expensive abstractions.

The .NET Hot Path Audit: 7 Techniques for Leaner Backend Code

Răzvan Mareș8 min read

Most .NET performance work should not begin with a rewrite, a new architecture, or a hunt for the fastest collection type. It should begin with a question: > Which code runs often enough that small c...

.NETef-corecsharp+1
Use Claude Opus 4.8 to prioritize review attention without replacing engineering judgment.

Turn Pull Requests into Risk Maps with Claude Opus 4.8

Răzvan Mareș8 min read

Most pull requests are not equally dangerous. A one-line configuration change can expose an internal service. A 400-line refactor can be mechanically safe. A harmless-looking default value can alter ...

GitHub Actionsci-cdTypeScript+2