C# Performance EF Core and Testing
Coverage includes interceptor-based duck typing, stack initialization, EF Core query diagnosis, FsCheck, Redis migration, and API contracts.
Jasen's top three picks
- 1 If It Quacks - Part 2
steven-giesel.com
A proof of concept becomes a library, making C# interceptor-based duck typing easier to explore in real code.
- 2 The Tiny C# Attribute That Stops Your Stack Being Zeroed
jordansrowles.medium.com
A focused look at SkipLocalsInit and why avoiding unnecessary stack zeroing can matter in performance-sensitive methods.
- 3 What .NET Code Protection Actually Does (And Why Decompilers Make It Necessary)
medium.com
A useful primer on why CIL is readily decompiled and where code protection fits into a .NET delivery strategy.
Editor's note
I pulled together a deliberately varied mix, from low-level runtime details to architecture and frontend comparisons. The IfItQuacks library is worth a look for its practical take on interceptor-based duck typing. I also included the Azure Managed Redis migration story because real operational pressure often teaches more than a benchmark does.
Today's articles
If It Quacks - Part 2
steven-giesel.com
Some days ago I wrote about duck-typing in C# with interceptors . Back then it was a proof-of-concept with a lot of rough edges. Now it is a real library: IfItQuacks .
Topics: C#
Read articleThe Tiny C# Attribute That Stops Your Stack Being Zeroed
jordansrowles.medium.com
There is a one-line C# attribute that tells the runtime it doesn’t need to initialise your local variables to zero before a method starts…
Topics: C# Performance
Read articleWhat .NET Code Protection Actually Does (And Why Decompilers Make It Necessary)
medium.com
.NET code protection exists because of a structural property of the platform: assemblies compile to CIL, an intermediate language that…
Read articleEF Core N+1 Query Problem: How to Detect, Measure, and Fix Excessive Database Queries
medium.com
Your EF Core application can return the correct data, pass every functional test, and still have a serious database performance problem.
Topics: EF Core Performance
Read articleSharper .NET 8: Clean Practices & the Magic
medium.com
How a handful of small habits turn ordinary C# into code you actually enjoy reading.
Read articleC# DIY Compiler with DDD and Clean Architecture
medium.com
Compiler projects are often presented as pipelines of algorithms: lexing, parsing, analysis, and code generation. Once the project grows…
Topics: Clean Architecture C# Domain-Driven Design
Read articleAdding Cosmos with Spec Kit & Copilot
jesseliberty.com
Yesterday I set out to add Cosmos to my demonstration project. The goal was to keep track of all queries, even after the browser is closed. My plan was to work with Spec Kit and Copilot, as described ...
Topics: Cosmos DB GitHub Copilot
Read articlePrompts Are Consumables, Evals Are Capital: Rethinking What Actually Survives a Model Upgrade
blog.gopenai.com
I spent most of last year treating my CLAUDE.md file like it was source code. Every time an agent did something dumb, I patched the prompt… Continue reading on GoPenAI »
Topics: OpenAI
Read articleTesting beyond your imagination: Property-based testing in C# with FsCheck
code4it.dev
Property-based testing is a powerful alternative to example-based testing. Instead of defining specific inputs and verifying their outcomes, you define properties that should always hold true. Let&rsq...
Topics: C# Unit Testing
Read articleThreading in C#
medium.com
A deep-dive walkthrough of multithreading in C# — covering the Thread class directly, the managed thread pool, race conditions and why…
Topics: C#
Read articleI’ve Written C# for 10+ Years. These Are the Fundamentals I Still Revisit.
medium.com
After more than 10 years of writing C#, I still look things up.
Topics: C#
Read articleFrom Redis pressure to a healthier service
devblogs.microsoft.com
The engineering journey behind an Azure Managed Redis migration for Copilot Studio agent flows Microsoft Copilot Studio helps organizations build agents and automate business processes. Agent flows le...
Read articleBlazor vs Vue.js: What a C# Developer Actually Notices
medium.com
Two frontends, one C# brain — what really differs, what is more alike than people admit, and what the job market says.
Read articleI Rebuilt C#’s DataTable: Up to 70% Less Memory, 2.9× Faster
medium.com
C#’s DataTable is shipped with .NET Framework 1.0 in 2002. It has never been rebuilt. Here is a reimagined column-oriented storage version…
Topics: C# Performance
Read articleAvoid API Breaking Changes
codeopinion.com
Have you ever changed your backing data model and then all of a sudden all your clients explode? It’s not because you broke your code. You broke your contract. Most times API breaking changes occur be...
Topics: REST API
Read article