Software Engineering Principles and Practices

Software engineering is the practice that turns code into systems people can rely on. The distinction matters because typing code has never been easier — AI assistants produce syntactically valid output in seconds — yet the rate at which production systems fail, leak data, or quietly accumulate maintenance debt has not improved. The discipline lives in the gap between code that compiles and code that survives contact with reality.

The articles in this collection treat software engineering as a profession, not a productivity exercise. The recurring theme is the feedback loop: write code, watch it fail, understand why, refine thinking. That loop cannot be automated because closing it requires learning from production failures and applying that knowledge to prevent the next one. Prompt engineering optimizes for speed; engineering optimizes for survival under conditions the original author did not anticipate.

Topics range from defensive programming with ArgumentNullException.ThrowIfNull and guard-clause patterns, through structured logging that does not lie about what happened, to multi-framework targeting decisions that look harmless and quietly break the build on the third project that consumes the library. Clean Code is treated as a starting point rather than a creed — most teams that quote SOLID rarely apply it consistently, and the articles examine what actually works in production versus what looks defensible in code review.

A second cluster of articles addresses the economic reality. Technical debt compounds like financial debt, and small shortcuts become the dominant cost driver three years in. Retiring legacy projects, illuminating debt with analyzers, and recognizing when a refactor is cheaper than another feature release are covered with the trade-offs named explicitly.

The voice across these articles is opinionated and grounded in specific failures. Generic advice rarely changes behavior. Specific failure modes, named clearly, do.

Six Ways ILogger Silently Fails in Production

Six Ways ILogger Silently Fails in Production

I lost half a day because BeginScope silently did nothing in production: no error, no warning, just a flat stream of undifferentiated log entries. ILogger is a façade over a pipeline full of opt-in behaviour that looks enabled by default. Scopes, structured properties, minimum levels, exception chains, timestamps: all have failure modes that compile cleanly and fail quietly.
The Code You Write Today Is Someone's Problem Tomorrow

The Code You Write Today Is Someone's Problem Tomorrow

The code you create is a valuable legacy — my author bio. Not marketing copy. It’s the most expensive lesson from nearly two decades in production systems. This article explains what it actually means when you’ve lived with the consequences.
Stop Pretending TimeProvider Doesn't Exist

Stop Pretending TimeProvider Doesn't Exist

DateTime.UtcNow looks harmless. It is not. It is a hidden dependency you cannot control in tests, cannot reproduce in staging, and cannot freeze to catch the bugs that only surface at midnight or on the last day of the month. .NET 8 shipped TimeProvider to fix this. Two years on, most codebases still ignore it. Some planned to adopt it later. Later has not arrived.
AI Code Review Is a Sycophant: Why It Always Approves

AI Code Review Is a Sycophant

AI code review tools are genuinely useful for catching syntax errors, obvious bugs, and common anti-patterns. They are also systematically unable to tell you that the feature you built was the wrong call, that the abstraction is off, that the naming reveals confused thinking, or that the correct review comment is “delete this.” Here is what AI reviews find, what they miss, and why human judgment still has no substitute.
Source Generators: The Build Performance Killer

Source Generator Costs

Source generators are powerful. They are also running on every single build, blocking IntelliSense, breaking Hot Reload, and multiplying their cost across every target framework you support. Nobody mentions this in the getting started guides. Here is how to measure the damage, find the culprits, and decide when source generators are actually worth it.