Posts from today
This page was built on April 01, 2026
Middleware in Microsoft Agent Framework: Logging, Caching, and Custom Pipelines
When you start building AI agents that handle real user traffic, raw model calls are rarely enough. You need logging to understand what's happening inside each turn. You need caching to cut API costs on repeated queries. You need rate limiting to protect your infrastructure from runaway requests. This is exactly where microsoft agent framework middleware csharp pipelines come in -- and the middleware in Microsoft Agent Framework (MAF) gives you a composable, extensible way to layer these concern...
Take me to this post.
April 01, 2026
Real-World C# Source Generator Examples: ToString, Mapping, and Serialization
Real-World C# Source Generator Examples: ToString, Mapping, and Serialization
If you have spent any time writing .NET code, you know the drill. You write a class, then you write the boilerplate -- the ToString() override, the mapping method, the serialization configuration. Multiply that across dozens of types and it quietly becomes a maintenance liability. C# source generator examples are the antidote: compile-time code generation that produces zero-reflection, AOT-safe, always-in-sync boilerpl...
Take me to this post.
April 01, 2026
The cover of C++: The Programming Language raises questions not answered by the cover
What are we reading about here?
The post The cover of C++: The Programming Language raises questions not answered by the cover appeared first on The Old New Thing....
Take me to this post.
April 01, 2026
pytest "import file mismatch"
Make sure your test files in a pytest tested project sit in directories with a __init__.py...
Take me to this post.
April 01, 2026
Observer Pattern Best Practices in C#: Code Organization and Maintainability
Observer Pattern Best Practices in C#: Code Organization and Maintainability
You can implement the observer pattern in a weekend. Keeping it maintainable for a year? That's where the real challenge lives. Subscriptions leak memory. Event handlers fire on the wrong thread. One failing observer crashes the entire notification chain. The observer pattern best practices in C# that separate a clean event-driven architecture from an unmaintainable tangle of subscriptions require deliberate attention t...
Take me to this post.
April 01, 2026
Configuring contextual options with Microsoft.Extensions.Options.Contextual
In this post I take a brief look at the Microsoft.Extensions.Options.Contextual package to understand what it's for, how to use it, and whether to use it or not...
Take me to this post.
April 01, 2026
Animating 160,000 Cubes in Three.js to Visualize Dithering
A step-by-step breakdown of how I built a Three.js visual explainer on dithering by animating 160,000 cubes with custom shaders....
Take me to this post.
April 01, 2026
Corporate Language Compliance Generator
You've already read the longer version. You need a quick phrase of corpo-speak to distract and confuse your rivals. Here's the generator for doing that:
Generate
Now, admittedly, this generator may use a grammar for generating phrases, but it's not an English grammar, and the result is that sometimes it has problems with verb agreement and other prosaic English rules. I say, lean into it. Let someone challenge your bad grammar, and then look down your nose at t...
Take me to this post.
April 01, 2026
The Irrational Decision—A Book Review
It’s the 5th annual April Cools! Here are my previous April Cools articles This year it’s a book review of Ben Recht’s book, The Irrational Decision: How We Gave Computers the Power to Choose For us, released Mar 10, 2026.
The publishing industry has a stupid name for the subcategory of non-fiction book where a domain expert weaves factual evidence together into a story to try to convince you of their thesis: a “big idea” book....
Take me to this post.
April 01, 2026
Corporate Language Compliance
As we all know, there are two basic kinds of scientific studies. The first is a ground-breaking paper that changes the way we view the world, and forces us to confront our presuppositions and biases about how we think the world works, and change our perspective. The other tells us what we already know to be true, and makes us feel good. The second kind, of course, is what we'd call "good science".
Or, if you want to skip past this straight to the generator at the bottom.
For example, what if I t...
Take me to this post.
April 01, 2026
Summary of reading: January - March 2026
"Intellectuals and Society" by Thomas Sowell - a collection of essays in which
Sowell criticizes "intellectuals", by which he mostly means left-leaning
thinkers and opinions. Interesting, though certainly very biased. This book
is from 2009 and focuses mostly on early and mid 20th century; yes, history
certainly rhymes.
"The Hacker and …...
Take me to this post.
April 01, 2026
Back to Home