๐Ÿ‡ฐ๐Ÿ‡ช Mburu (@syntax_mburu) header
๐Ÿ‡ฐ๐Ÿ‡ช Mburu (@syntax_mburu) profile picture

It's not a bug, It's an undocumented feature!!

Juja Central, Kenya
Joined August 2012
Photo by ๐Ÿ‡ฐ๐Ÿ‡ช Mburu (@syntax_mburu)Photo by ๐Ÿ‡ฐ๐Ÿ‡ช Mburu (@syntax_mburu)Photo by ๐Ÿ‡ฐ๐Ÿ‡ช Mburu (@syntax_mburu)Photo by ๐Ÿ‡ฐ๐Ÿ‡ช Mburu (@syntax_mburu)Photo by ๐Ÿ‡ฐ๐Ÿ‡ช Mburu (@syntax_mburu)Photo by ๐Ÿ‡ฐ๐Ÿ‡ช Mburu (@syntax_mburu)
๐Ÿ‡ฐ๐Ÿ‡ช 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โ€ฆ
9
25
193
12,786
๐Ÿ‡ฐ๐Ÿ‡ช Mburu retweeted
docker in 5 pages
9
221
3
1,655
56,412
๐Ÿ‡ฐ๐Ÿ‡ช Mburu retweeted
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/โ€ฆ
11
30
167
12,524
๐Ÿ‡ฐ๐Ÿ‡ช 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โ€ฆ
7
5
50
3,067
๐Ÿ‡ฐ๐Ÿ‡ช 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?
16
21
200
9,437
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.
9
52
2,485
๐Ÿ‡ฐ๐Ÿ‡ช 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โ€ฆ
3
2
21
2,511
๐Ÿ‡ฐ๐Ÿ‡ช Mburu retweeted
4
20
1,119
๐Ÿ‡ฐ๐Ÿ‡ช 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.
22
9
1
78
6,899
๐Ÿ‡ฐ๐Ÿ‡ช 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.
11
38
1
218
8,109
๐Ÿ‡ฐ๐Ÿ‡ช 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.
3
12
88
3,821
๐Ÿ‡ฐ๐Ÿ‡ช 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
9
26
2
227
16,365
๐Ÿ‡ฐ๐Ÿ‡ช 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
20
6
58
5,281
๐Ÿ‡ฐ๐Ÿ‡ช 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
24
16
1
145
9,749
๐Ÿ‡ฐ๐Ÿ‡ช Mburu retweeted
C# Increment a alphanumeric value
3
3
51
4,660
๐Ÿ‡ฐ๐Ÿ‡ช 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โ€ฆ
11
155
12
1,798
86,262
๐Ÿ‡ฐ๐Ÿ‡ช 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?
24
9
1
208
30,177
๐Ÿ‡ฐ๐Ÿ‡ช Mburu retweeted
Build your Agentic Harness. Don't vibecode - it doesn't scale. Plan, write the specs, let the harness run and go to sleep.

13
55
4
1,028
11,357,787
๐Ÿ‡ฐ๐Ÿ‡ช 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
6
4
75
4,962
๐Ÿ‡ฐ๐Ÿ‡ช Mburu retweeted
Anyone who wants to go deep into databases should give this a read
2
30
435
46,352