Stefan Đokić | .NET retweeted
Black Friday came early. Everything I sell is 40% off.
Code BF26. Only 100 coupons.
→ AI for Developers (new course): $149.99 → $89.99
Use AI on a real codebase, then build AI into a real app. 24 lessons, one real project. The first lessons go live on Nov 27.
→ Pragmatic .NET Code Rules (with Bonus - AI edition): $149.99 → $89.99
Your build checks every line, whether a teammate or Claude Code wrote it.
→ Design Patterns that Deliver: $32.99 → $19.79
→ Design Patterns Simplified: $9.95 → $5.97
The code is applied automatically when you click. Ends Dec 1, or sooner if the 100 coupons run out.
Want everything?
The AI for Developers community is $119/year and includes both courses: skool.com/ai-for-developers/…
1. AI course: thecodeman.net/ai-for-develo…
2. Code Rules: thecodeman.net/pragmatic-dot…
3. Design Patterns Written Course: thecodeman.net/design-patter…
4. Design Patterns ebook: thecodeman.net/design-patter…
Stefan Đokić | .NET retweeted
I restarted RabbitMQ for a few seconds.
100 orders saved. Only 51 emails sent. 49 events gone - and nobody would notice it in the logs.
Fixed it with the Outbox pattern in .NET 10: one table, one BackgroundService, less than 100 lines of C#.
Same crash test: 0 lost.
Full video 👇
youtube.com/watch?v=3DPW2QJO…
#dotnet #csharp
Stefan Đokić | .NET retweeted
Deploying is technical. Releasing is a business decision.
Recreate: simple, downtime
Rolling: no downtime, v1 and v2 side by side
Blue-green: instant rollback, double infra
Canary: 5% first, needs monitoring
Feature flags: release without a deploy
Stefan Đokić | .NET retweeted
The worst way to start with AI coding: install all three tools. Three logins. Three subscriptions.
The DM I get most lately: "I can code, but I've never used AI for it. Where do I start?"
My 2-minute answer. Pick ONE tool. Stop at the first yes:
1. For code at work? Use what your company already approved.
2. Already pay for ChatGPT Plus? Codex. You have it today.
3. Already pay for Claude Pro? Claude Code.
4. Want to start free? GitHub Copilot Free.
5. Ready to pay ~$20/month and go deep? Claude Code.
6. Still not sure? Copilot Free. 5 minutes, $0.
Then the first session. Same loop in every tool:
- Commit first. Git is your undo button
- Ask before you edit: "Explain this project. Don't change anything."
- One small change: what, where, what not to touch, how you'll know it's done.
- Review every line like a PR from a fast junior.
- Run the tests yourself. "All tests pass" is not proof.
- Commit. Repeat.
That loop is 80% of using AI well. The tool matters less than the habits.
I turned this into "AI from Zero" - 9 short lessons for developers who never used Copilot, Claude Code or Codex. Pick, install, first safe session, and the 12 mistakes almost everyone makes.
It's inside my AI for Developers community.
7-day free trial: skool.com/ai-for-developers/…
Which tool did you start with, and would you pick it again?
Stefan Đokić | .NET retweeted
Save this. Every free AI resource I've made for developers, in one place.
I get the same DM almost every week: "Where do I start with AI as a developer?"
Here's the whole list, updated with everything new. The examples are .NET, the ideas work in any stack.
Start here:
• Claude Code from Zero - free 28-page playbook: thecodeman.net/claude-code-f…
• AI Roadmap 2026 (8 steps, MUST vs OPTIONAL): thecodeman.net/ai-roadmap-20…
• AI Roadmap Course (free, written): thecodeman.net/ai-roadmap-co…
• AI in .NET Starter Kit (semantic search, RAG, MCP): thecodeman.net/ai-in-dotnet-…
Use AI to build faster:
• Claude Code setup - CLAUDE. md, skills, agents: thecodeman.net/posts/claude-…
• Claude Code cheat sheet - commands, hooks, MCP: thecodeman.net/claude-code-c…
• .NET skills for coding agents (dotnet/skills): thecodeman.net/posts/dotnet-…
• Refactor legacy code with Claude, test-first: thecodeman.net/posts/refacto…
• AI agents for code review (security + N+1): thecodeman.net/posts/ai-agen…
• AI drew my architecture on Miro (MCP): thecodeman.net/posts/ai-arch…
• Claude Code hooks, headless mode and /rewind: thecodeman.net/posts/claude-…
Build AI into your apps:
• First AI call in C# with Microsoft.Extensions.AI: thecodeman.net/posts/getting…
• AI agent in C# with Microsoft Agent Framework: thecodeman.net/posts/ai-agen…
• Build an MCP server in C#, step by step: thecodeman.net/posts/build-a…
• An MCP server that load-tests your API: thecodeman.net/posts/buildin…
• Semantic search with embeddings: thecodeman.net/posts/semanti…
• RAG with Ollama and pgvector: thecodeman.net/posts/how-to-…
• Vector search without a vector database: thecodeman.net/posts/your-do…
Want to go further than free?
That's what AI for Developers is for - my community on Skool. Learn to use AI and build with it, from zero to advanced:
• 50+ Claude Code skills and 10+ agents, ready to use
• Courses, roadmaps and source code in the Classroom
• Weekly AI news + what it actually means for us
• Need a skill that doesn't exist yet? Ask, and we build it
7-day free trial: skool.com/ai-for-developers/…
Every Monday I send one practical AI deep-dive to 22,000+ developers: thecodeman.net/
I'll keep adding to this list. What's missing that you'd want me to build next?
Stefan Đokić | .NET retweeted
A working MCP server in C# is about 10 lines:
AddMcpServer()
.WithStdioServerTransport()
.WithToolsFromAssembly()
+ one static method with [McpServerTool] and a good [Description].
Just never log to stdout in a stdio server.
Stefan Đokić | .NET retweeted
If you approve "dotnet test" in Claude Code 50 times a day, your settings.json is empty.
allow: dotnet build, dotnet test *
ask: git push *
deny: Read(./.env)
A deny rule isn't a polite request in a prompt. The agent simply can't.
Stefan Đokić | .NET retweeted
Okay. You went crazy.
Yesterday I shared a free Claude Code playbook for beginners.
See that spike on Wednesday? That's you.
500+ developers downloaded it so far. I honestly didn't expect that.
But it tells me something: a lot of developers still haven't really started with AI coding. Not because they don't want to. Because nobody showed them a safe place to start.
So if you missed it, here's what's inside: 28 pages, 8 lessons:
1. What Claude Code is, what it costs, what you need
2. Installing it - VS Code first, then the terminal
3. Your first safe session: save point, ask first, small change, review, commit
4. CLAUDE. md - the file that tells it how your project works
5. Plan mode - think first, code second
6. Permissions and undo
7. Context: /context, /compact, /clear + 10 beginner mistakes
8. What to learn next
Still free. You get the PDF right away, then a short tip email every 2 days.
Get it here: thecodeman.net/claude-code-f…
If you already downloaded it, which lesson are you on?
Stefan Đokić | .NET retweeted
I put my whole Claude Code course for beginners into one free playbook.
I keep getting the same message:
"Everyone talks about Claude Code. I don't know where to start."
So here it is. 28 pages, 8 lessons, from zero to a safe daily workflow:
1. What Claude Code is, what it costs, what you need
2. Installing it - VS Code first, then the terminal
3. Your first safe session: save point, ask first, small change, review, commit
4. CLAUDE.md - the file that tells it how your project works
5. Plan mode - think first, code second
6. Permissions and undo
7. Context: /context, /compact, /clear + 10 beginner mistakes
8. What to learn next
You get the PDF right away. Then a short email every 2 days: which lesson to do next, plus one tip that isn't in the playbook.
Free. It's called Claude Code from Zero: thecodeman.net/claude-code-f…
Stefan Đokić | .NET retweeted
SaveChangesAsync() then bus.Publish() is two writes.
Broker down: event lost.
Crash in between: event lost.
Outbox: save the message in the same transaction as the data, publish it from a background worker.
Bonus trap: FOR UPDATE SKIP LOCKED does nothing outside a transaction.
Stefan Đokić | .NET retweeted
I forked my entire .NET backend in 0.63 seconds.
Not just the database. The users and the files too.
Postgres, auth, storage, and AI on one backend - Neon
Full video + source 👇
youtube.com/watch?v=4fDW5q5r…
Stefan Đokić | .NET retweeted
An architecture test found 3 Minimal API endpoints in my course project that used repositories directly. The build had no warnings, and I had already reviewed that file.
What’s worth testing: thecodeman.net/posts/archite…
Full module in my course: thecodeman.net/pragmatic-dot…
Stefan Đokić | .NET retweeted
Autocomplete -> AI chat -> Copilot -> coding agent -> agent teams.
Every step moved developers further from typing code and closer to reviewing it.
Reading a diff is now a core skill.
Stefan Đokić | .NET retweeted
.NET 11 is out. For AI work in .NET, I'd look at these first:
- dotnet new mcpserver
- Agent Framework: tools, workflows, MCP, AG-UI
- .NET Skills for coding agents
- EF Core 11 vector indexes (experimental)
C# 15 unions are nice. This is the bigger shift.
Stefan Đokić | .NET retweeted
I stopped asking Claude Code to "please format the code".
Now it can't forget, because it's not up to Claude anymore.
That's what Hooks are for. A hook is a shell command that Claude Code runs automatically at a specific moment - before a tool call, after a file edit, when it wants to stop. Not a suggestion in a prompt. A rule.
My favorite one for .NET projects, in .claude/settings.json ⬇️
What it does:
• After every Edit or Write, Claude Code sends the tool call as JSON to the hook
• jq pulls out the file path
• if it's a .cs file, dotnet format fixes it right away
Result: every file Claude touches follows your .editorconfig. No more "fix formatting" commits in the PR.
Two more hooks I use:
• PreToolUse on Bash - block dangerous commands. If the hook exits with code 2, the tool call is blocked, and Claude gets your error message as feedback. rm -rf, git push --force, dropping the database... gone.
• Stop - run dotnet test when Claude says it's "done". If tests fail, the hook blocks the stop, and Claude has to keep going until they pass.
The mindset shift:
CLAUDE. md = what you'd like Claude to do.
Hooks = what will happen every time, no matter what.
Put the important stuff in hooks.
I share my full hooks setup for .NET (format, build, test, secret scanning) inside AI for .NET Developers: skool.com/ai-for-developers/…
Are you using hooks yet, or still asking nicely in the prompt?
Stefan Đokić | .NET retweeted
Nobody decides to make a .NET codebase inconsistent. It happens one PR at a time.
One dev uses var, another doesn't. Someone puts braces on a new line, someone doesn't. Tabs vs spaces, _field vs field, expression bodies vs blocks. Six months later, every file looks like it was written by a different team.
The fix is a file most projects either don't have or don't actually enforce: .editorconfig.
I released part of my .NET course for free on YouTube: youtube.com/watch?v=5ZemvROe…
In it:
→ why code style consistency matters more than it looks
→ how .editorconfig actually works
→ how Visual Studio and Roslyn read and apply it
→ how real teams enforce standards so they don't stay suggestions
It comes straight from Module 1 of Pragmatic .NET Code Rules. This "small free section" turned out to be almost 20 minutes long.
The course is on pre-sale right now, and the current price won't last.
Don't want to write the config by hand? Try the FREE AI .editorconfig Generator: thecodeman.net/tools/editorc…
Does your team have an .editorconfig, or does everyone use their own IDE settings?
Stefan Đokić | .NET retweeted
"If AI writes the code now, what's even the point of building side projects?"
Fair question. My take: the point changed; it didn't disappear.
Before, a side project was about learning syntax. Now AI writes syntax in seconds. What it doesn't give you is the feel for whether that code is any good. Why the query is slow. Why the auth is leaking. Why the "working" solution falls apart with 50 users.
And there's a second gap nobody talks about: most devs use AI every day, but have never built anything with AI inside it.
So here are 12 projects that close both gaps. Learn by building.
Starter: learn to read AI code. Expense tracker, to-do API, weather dashboard. Use AI, but if you can't explain a line, you don't ship it. This is where LINQ, EF Core, and async stop being magic.
Intermediate: learn to catch AI mistakes. URL shortener with caching and rate limiting. Blog API with JWT and tests. Background job runner with retries. This is where AI suggestions are wrong in small, sneaky ways, and you learn to spot them.
Advanced: learn to build AI into your app. A support chatbot with streaming. Q&A over your own docs with RAG. An invoice parser that returns structured data, and validates it, because models do make stuff up.
Expert: learn to build what AI plugs into. Your own MCP server, so Claude or Copilot can use your API. A code review agent that calls tools in a loop. And one AI app you actually run in production, with evals, token costs, and OpenTelemetry. That last one teaches you more than the other eleven combined.
All 12 projects: full source code + step-by-step build guides: skool.com/ai-for-dotnet-deve…
One rule: let AI speed you up, never let it think for you.
We're building them together. Pick one project, with weekly check-ins and someone to ask when you get stuck, inside AI for .NET Developers (7-day free trial): skool.com/ai-for-dotnet-deve…
Which level are you at right now?
Stefan Đokić | .NET retweeted
I deleted my architecture diagram. Then I let an AI agent redraw it, from the code itself.
Here's what happened 👇
I connected my AI coding agent to Miro using the Miro MCP server. Two lines of config, one login, now the agent can read and write my Miro boards directly.
Then I pointed it at a normal .NET solution (Clean Architecture + EF Core) and asked for three things:
• An architecture diagram → it read the project references and drew every layer + its dependencies. Instantly showed whether the dependency rule was actually respected.
• An ER diagram → straight from my EF Core DbContext. Tables, keys, relationships. Generated from the code that runs in production, so it can't drift out of sync.
• A sequence diagram → "trace the Create Order request." Controller → handler → repository → DB, drawn out end to end.
A few minutes. Empty board → living map of the whole system.
And because it's all on Miro, the team can refine it together instead of me explaining the architecture verbally for the 100th time.
The part I like most: when the code changes, you re-run the prompt and the board updates. Diagrams that finally keep up with reality.
Full video - every prompt, every diagram appearing live:
👉 youtu.be/UUO5heMgS34?si=UpFY…
Huge thanks to Miro for sponsoring this one. The MCP server is free to set up with your AI coding tool.
Try the Miro MCP Server here: miro.pxf.io/en2e3z
Have you tried generating diagrams from your codebase yet? 👇
Stefan Đokić | .NET retweeted
If you save to the database and then publish a message as two separate steps, you will eventually lose a message.
That's what the Outbox pattern fixes: data and message in one transaction, a background worker publishes later.


















