Posts from today
This page was built on March 23, 2026
sed Command in Linux: with Real Examples
A practical guide to the sed stream editor on Linux, covering substitution, in-place editing, line deletion, capture groups, and real-world examples sysadmins actually use.Continue reading......
Take me to this post.
March 23, 2026
How to Create Your First C# Source Generator (Step-by-Step)
How to Create Your First C# Source Generator (Step-by-Step)
If you have ever stared at a wall of repetitive boilerplate and thought "there has to be a better way" -- you are right. Understanding how to create a C# source generator is one of those skills that pays dividends across your entire codebase. Source generators are a Roslyn compiler feature that let you write code that writes code -- at compile time, with full type-system awareness, and at zero runtime cost.
Unlike T4 templates or reflec...
Take me to this post.
March 23, 2026
Build an AI CLI Developer Tool with GitHub Copilot SDK in C#
When you build an AI CLI developer tool with GitHub Copilot SDK in C#, you get the full SDK feature set in a single application. Unlike a simple hello-world example, an AI CLI developer tool requires you to wire up CopilotClient and CopilotSession lifecycle management, streaming responses for real-time output, AIFunctionFactory tools that give the AI access to your local files, and a session reset mechanism for multi-conversation workflows. In this article, I'll walk through every line of a work...
Take me to this post.
March 23, 2026
How to bypass SSL for PROJ reprojection
A friend was using GDAL’s ogr2ogr command to import some data to PostGIS recently, and as part of the import they were doing a reprojection of the data. They got the following error: PROJ: Cannot open https://cdn.proj.org/uk_os_OSTN15_NTv2_OSGBtoETRS.tif: schannel: the certificate or certificate chain is based on an untrusted root They’ve had various SSL errors on […]...
Take me to this post.
March 23, 2026
From error-handling to structured concurrency
How should we think about error-handling in concurrent programs?
In single-threaded programs, we’ve mostly converged on a standard pattern, with a diverse zoo of implementations and concrete patterns. When an error occurs, it is propagated up the stack until we find a stack frame which is prepared to handle it. As we do so, we unwind the stack frames in-order, giving each frame the opportunity to clean up or destroy resources as appropriate....
Take me to this post.
March 23, 2026
Building a Dual-Scene Fluid X-Ray Reveal Effect in Three.js
Learn how to use Three.js to blend two scenes with a fluid simulation, creating a smooth, dynamic reveal effect....
Take me to this post.
March 23, 2026
How can I make sure the anti-malware software doesn’t terminate my custom service?
You'll have to ask nicely.
The post How can I make sure the anti-malware software doesn’t terminate my custom service? appeared first on The Old New Thing....
Take me to this post.
March 23, 2026
Singleton vs Static Class in C#: Key Differences Explained
Singleton vs Static Class in C#: Key Differences Explained
Choosing between Singleton and static class in C# is a common design decision that affects testability, flexibility, and code organization. Understanding the differences between Singleton and static class helps you make informed architectural choices and select the right approach for your specific needs.
The Singleton pattern and static classes both provide ways to access functionality without creating instances, but they serve different...
Take me to this post.
March 23, 2026
CodeSOD: Completely Readable
It is eminitently reasonable for companies to have "readability standards" for their code. You're writing this code for humans to read, after all, at least in theory. You need to communicate to future inheritors of your code.
But that doesn't mean readability standards are good. Tony's company, for example, has rules about returning boolean values from functions, and those rules mean you are expected to write code like this:
public bool Completed ()
{
if (completed == true)
{
return tru...
Take me to this post.
March 23, 2026
Is There an ROI on Learning C#? - Dev Leader Weekly 132
TL; DR:
Foundations beat language-specific trivia every time
AI lets you build without knowing a language -- until you get stuck
Yes, learn C# -- but learn the why, not just the how
Sorry, no live stream! I will be busy on-call this week for work.
The ROI on Learning C# (It's Not What You Think)
I had a great question come in on one of my Code Commute videos: do I think there's an ROI on learning C#?
The short answer is yes. But the reason might surprise you -- because honestly, the reason ha...
Take me to this post.
March 23, 2026
Why don't multi-column indices help queries on the second column?
SQL databases support multi-column indices, where a single index can incorporate data from multiple columns. These are powerful, but the order of the columns matters, with differences observable in practice: there can be orders of magnitude between two similar & simple queries, depending on which uses a prefix of the index columns. Why does this limitation exist? Can we have a mental model for the indices that explains the behaviour?
Yes, we can: thinking about indices as a sorted table with mu...
Take me to this post.
March 23, 2026
Back to Home