
It's not a bug, It's an undocumented feature!!
Juja Central, Kenya
Joined August 2012
- Tweets1.9K
- Following7.5K
- Followers606
- Likes13.5K
๐ฐ๐ช Mburu retweeted
You don't need MediatR to do CQRS in .NET 11.
CQRS is a pattern, not a library.
All it takes in plain C#:
- A 3-line ICommandHandler<TCommand, TResult> interface
- Direct DI into your Minimal API endpoint (F12 jumps straight to the code)
- DI decorators for validation & OpenTelemetry
- C# 15 union return types for explicit outcomes
Zero runtime magic, cleaner stack traces, and zero licensing headaches.
Full C# implementation: milanjovanovic.tech/blog/cqrโฆ
New major version 8 of SqlClient, the .NET driver for Microsoft SQL is out:
- Only supports .NET 10 and .NET Framework
- All traces of Azure support removed from core driver
- SqlVector<Half> support
#dotnet #sqlserver #microsoftsql
github.com/dotnet/SqlClient/โฆ
๐ฐ๐ช Mburu retweeted
Omarchy is putting AI that writes code, generates videos and makes endless music directly on your Linux PC.
The 4.6 preview lets coding agents use models running entirely on your own machine.
Fantasi creates images and video clips. Flowtunes generates endless music in your chosen genre.
Both run on local models and install by default.
Its own file manager, Folio, replaces Nautilus. New installs also switch from Chromium to Google Chrome.
This is still a release candidate, with bugs and rough edges expected.
Source: github.com/omacom/omarchy/reโฆ
๐ฐ๐ช Mburu retweeted
MediatR, AutoMapper and repositories make every small change in your .NET project touch 8 files across 4 projects.
I don't use any of them in my projects anymore.
A new feature in my code is one folder with 4 files: endpoint, handler, mapping and validators. I can read it from top to bottom in 1 minute.
I've built .NET apps for 13+ years.
Here are 12 habits I removed from my projects, and what I use instead:
1. โ MediatR for every call
โ
Plain handler classes, called directly
โณ Go to definition takes you to the code. No pipeline to trace.
2. โ AutoMapper
โ
Manual mapping extension methods
โณ Explicit and easy to debug. No reflection at runtime.
3. โ A repository on top of EF Core
โ
DbContext in your handlers
โณ DbContext is already a unit of work with repositories inside.
4. โ An interface for every class
โ
Interfaces only at boundaries
โณ Module APIs and external services. Not for a class with one implementation.
5. โ Exceptions for expected errors
โ
Result<T>
โณ "Not found" and "already exists" are not exceptional.
6. โ Mocking every handler in unit tests
โ
Integration tests on a real database
โณ They catch the bugs that mocks don't.
7. โ Folders by layer: Controllers, Services, Repositories
โ
Vertical slices by feature
โณ One feature, one folder (CreateUser, CancelOrder, etc).
8. โ Microservices on day one
โ
A modular monolith first
โณ Extract a service when you have a real reason.
9. โ 5 tiny classes "for SRP"
โ
One class that does 2 related things
โณ Easier to read than jumping across 5 files.
10. โ Deep inheritance chains
โ
Composition and decorators
โณ Change the order without touching other classes.
11. โ Validation hidden in pipeline behaviors
โ
Explicit validation in the endpoint
โณ You see exactly when it runs.
12. โ DateTime[.]Now in business logic
โ
TimeProvider
โณ Your tests control the time.
---
๐ Want to go from .NET developer to architect, in 10 minutes a week?
Every Tuesday, I send one real .NET architecture decision with the trade-offs and production code you can use.
28,000+ developers at Microsoft, Google, Amazon, Datadog, Redis and MongoDB read it. Join for free and get 200 senior .NET interview questions as a bonus: antondevtips.com/newsletter?โฆ
Which habit from the โ list is still in your project?
๐ฐ๐ช Mburu retweeted
In Chapter 12 of our #Linux for #DevOps course, you'll trace logs through journald and rsyslog, make the journal persistent, and give a service its own log file in /var/log.
Read the chapter: pro.tecmint.com/linux-systemโฆ
Follow @tecmint to get notified whenever a new chapter is released.
๐ฐ๐ช Mburu retweeted
I built Katabench to grade more than the answer.
Two Sum has 4 sample tests and one hidden test with 200,000 numbers and a 300 ms limit. A double loop passes the samples and times out on the hidden one.
You can try it without an account: app.katabench.com/?path=founโฆ
๐ฐ๐ช Mburu retweeted
ASP.NET Core window helpers
github.com/karenpayneoregon/โฆ
๐ฐ๐ช Mburu retweeted
I gave Claude Code its own server and turned off the permission prompts.
It runs in a Docker container that only sees my repo. It can't change its own sandbox. A firewall only lets it reach Anthropic, GitHub and NuGet. You pick that list.
I give it tasks from my phone.
๐ฐ๐ช Mburu retweeted
๐ช๐ต๐ฎ๐ ๐๐๐ฒ๐ฟ๐ ๐#/.๐ก๐๐ง ๐๐ฒ๐๐ฒ๐น๐ผ๐ฝ๐ฒ๐ฟ ๐ก๐ฒ๐ฒ๐ฑ๐ ๐๐ผ ๐๐ป๐ผ๐ ๐ถ๐ป ๐ฎ๐ฌ๐ฎ๐ฒ
Here is the list in which I believe:
๐ญ. ๐๐ฎ๐ป๐ด๐๐ฎ๐ด๐ฒ
๐น ๐# ๐ณ๐๐ป๐ฑ๐ฎ๐บ๐ฒ๐ป๐๐ฎ๐น๐: collections, generics, delegates, exceptions, asynchronous programming, and more.
๐น Nullable reference types: compiler warnings help catch potential bugs related to null values.
๐น Union types (C# 15): a value can be any of multiple specified types.
๐ฎ. ๐ฅ๐๐ป๐๐ถ๐บ๐ฒ
๐น Just-In-Time (JIT) compilation: the runtime compiles your code to native code as the program runs.
๐น Garbage collection: the runtime manages memory for you.
๐น There used to be three .NET runtimes but these days we write code for one .NET (Xamarin became unsupported in 2024).
๐น .NET 10 is the current long-term support (LTS) version, with .NET 11 as the current standard-term support (STS) version.
๐น .NET 10 & 11 will be supported (with patch releases) until November 14, 2028.
๐น .NET 8 & 9 went out of support on November 10, 2026.
๐ฏ. ๐๐ถ๐ฏ๐ฟ๐ฎ๐ฟ๐ถ๐ฒ๐
๐น Use NuGet to add libraries to your project.
๐น You might use .NET Standard 2.0 if you want your library to work in .NET Framework applications.
๐ฐ. ๐ช๐ฒ๐ฏ
๐น ๐๐ฆ๐ฃ.๐ก๐๐ง ๐๐ผ๐ฟ๐ฒ: Microsoftโs web framework.
๐น ๐ ๐ถ๐ป๐ถ๐บ๐ฎ๐น ๐๐ฃ๐๐: an easy way to write web APIs with ASP.NET Core.
๐น ๐๐น๐ฎ๐๐ผ๐ฟ: write your web user interface in C# instead of JavaScript.
๐ฑ. ๐๐ฎ๐๐ฎ
๐น Entity Framework Core (EF Core): interact with your database using .NET objects instead of writing SQL.
๐น ๐๐๐ก๐ค: write queries using C# syntax.
๐น EF Core 11: Remove unnecessary joins.
๐ฒ. ๐๐น๐ผ๐๐ฑ
๐น ๐๐ผ๐ป๐๐ฎ๐ถ๐ป๐ฒ๐ฟ๐: you can publish your application as a container from the .NET SDK without writing a Dockerfile.
๐น Native Ahead-Of-Time (AOT) compilation: compile your application to native code when you publish it to improve startup time and memory usage.
๐น ๐ข๐ฝ๐ฒ๐ป๐ง๐ฒ๐น๐ฒ๐บ๐ฒ๐๐ฟ๐: vendor-neutral framework and tools for observability (telemetry: logs, metrics, distributed tracing).
๐ณ. ๐ง๐ฒ๐๐๐ถ๐ป๐ด
๐น ๐จ๐ป๐ถ๐ ๐๐ฒ๐๐๐ถ๐ป๐ด: xUnit, NUnit, MSTest, etc. Test early and often!
๐น Microsoft.Testing.Platform: the next generation, high-performance, lightweight test runner.
๐น .NET 11: The xUnit v3 project template uses Microsoft.Testing.Platform by default.
๐ด. ๐ง๐ผ๐ผ๐น๐ถ๐ป๐ด ๐ฎ๐ป๐ฑ ๐๐
๐น dotnet command-line interface (CLI): create projects, add packages, build, publish, test, etc.
๐น Diagnose problems with ๐๐๐๐๐๐-๐๐๐๐๐๐๐๐, ๐๐๐๐๐๐-๐๐๐๐๐, ๐๐๐๐๐๐-๐๐๐๐, etc.
๐น Microsoft.Extensions.AI: interact with various AI models using a common interface (๐ธ๐ฒ๐๐๐๐ฒ๐๐๐๐๐).
๐น Model Context Protocol (MCP): open standard that helps AI applications integrate with tools and data sources.
Back to you, what would you add to this list?
You can check my full .NET Developer Roadmap in the comments.
๐ฐ๐ช Mburu retweeted
C# 15 closed hierarchies simple example
A closed class limits direct derivation to its declaring assembly, giving the compiler the information it needs to check patterns over the hierarchy.
๐ฐ๐ช Mburu retweeted
90% of PostgreSQL in 2026 comes down to mastering these 10 concepts:
1) MVCC + vacuum
Dead tuples are normal; the cost shows up later as bloat, slow scans, and surprise autovacuum spikes.
2) Indexes as query plans, not features
B-tree vs BRIN vs GIN matters, but the real skill is reading EXPLAIN (ANALYZE, BUFFERS) and noticing when estimates lie.
3) Locking and isolation
Know which statements take row locks vs table locks, how deadlocks happen, and why SERIALIZABLE can turn into retries.
4) Schema changes in production
ADD COLUMN is cheap, backfills are not; avoid long transactions and do migrations in small, observable steps.
5) Connection management
Most outages look like pool saturation: too many app connections, too few, or missing timeouts; pgbouncer often beats throwing CPU at it.
6) WAL, checkpoints, and replication slots
Write-heavy systems fail here: checkpoints cause latency cliffs, slots can fill disks, and replicas lag when IO is the bottleneck.
7) Backups and restore drills
A backup you never restored is a log file; test PITR, measure RTO/RPO, and keep an eye on base backup size growth.
8) Observability that maps to causes
Track p95 query time, slow query log, buffer cache hit rate, autovacuum activity, replication lag, and index bloat over time.
9) Security basics that teams skip
Least-privilege roles, separate owners, no app user with CREATE on public schema, and tight rules around extensions and FDWs.
10) Common real-world footguns
Long-lived transactions block vacuum, OFFSET pagination gets slower over time, and missing partial indexes turns hot paths into seq scans
๐ฐ๐ช Mburu retweeted
I run coding agents in parallel every day.
I start by writing a design doc and break it into subtasks. Then I hand off each one to its own agent session. One of my repositories got 833 merged PRs in four months this way.
My problem is that I'm the slowest part of that system.
Agents write code much faster than I can review it. With parallel runs, I sometimes don't notice when one finishes. Or I miss when an agent asks me a question and sits there waiting. And when I finally get to the diff, it's in one window and my debugger is in another.
I use JetBrains tools daily, so I was curious about Air, which ships with Rider 2026.3. It brings the agents and the IDE together.
What I like about it:
You get a single list of agent sessions across your projects, and the ones waiting on you have a "Needs input" badge.
I can review everything from inside Rider. I open the agent's diff, comment on a line, and send it back. Then I run the tests or even step through it in the debugger before accepting anything. For high-risk changes, I think debugging is still very valuable.
JetBrains Air is agent-agnostic. Claude, Codex, GitHub Copilot, Gemini and Junie all work. You supply the subscription or API key you already pay for.
And the agents can use Rider's features too. They get skills and MCP tools for debugging, refactoring and navigating your code. New in 2026.3, an agent can also run your .NET tests through the IDE and get structured results back, which is faster than parsing dotnet test output.
You still have to read the code. And more agents means more diffs to review.
If you don't have an agent subscription, Junie Lite is free for a limited time, so you can try it without paying for an agent.
Try Air in Rider: jetbrains.com/rider/?utm_souโฆ
Huge thanks to @jetbrains for sponsoring this post.
๐ค Paid partnership
๐ฐ๐ช Mburu retweeted
I moved Claude Code off my laptop and into a sandbox on a VPS.
It runs in a dev container, behind a firewall that rejects HTTPS to anything but Claude, GitHub and NuGet. tmux keeps it alive, and I drive it from my phone with Remote Control.
The setup: youtu.be/Wg9l-ObI90w
๐ฐ๐ช Mburu retweeted
Graphics programming can help teach you how code, memory, and pixels actually work.
In this course, Gustavo shows you how to build a low-level software renderer from scratch in C using SDL3.
You'll learn all about frame buffers, pixel manipulation, memory layout, event handling, frame timing, and lots more.
freecodecamp.org/news/masterโฆ
๐ฐ๐ช Mburu retweeted
Interviewer:
Your frontend runs on localhost:3000 and your backend runs on localhost:8000
Both are running on the same computer
So why does the browser still throw a CORS error?
๐ฐ๐ช Mburu retweeted
I found a gap in my one-line Result type when a new business rule ended up as a 500.
It knows a call can fail, but not which errors exist. With C# 15 union types, each error gets its own type, and the compiler names the case you missed.
How I set it up: youtu.be/mbaFDIuEAXA



































