profile

Patrick God

Become a .NET & Blazor expert with weekly tutorials featuring best practices and the latest improvements, right in your inbox.

video preview
Featured Post

You Don’t Need MediatR? I Built My Own 🚀

Hey Reader, You may have seen the recent blog post from Jimmy Bogard (creator of MediatR and AutoMapper) announcing that these libraries are going commercial. And to be clear, I fully support that. Time is money, and supporting your family always comes first. BUT… In most of my projects, I don’t actually use everything MediatR offers. I usually just need a small part of it, the classic "send a request, get a response" pattern. So I thought: why not build a simple version myself? 👉 That’s...

video preview

Hey Reader, In my last video, I showed you how to build a CRUD app using Vertical Slice Architecture and controllers in .NET 9. But… What if you could do the same thing - cleaner, simpler, and without all that controller clutter? 👉 That’s exactly what I show you in my brand-new video: In this one, you’ll learn how to: Use Minimal APIs instead of controllers Keep your Program.cs neat and tidy Stay fully organized with the Vertical Slice Architecture Work with Carter, a super helpful library...

video preview

Hey Reader, If you’ve ever built a simple CRUD app with a layered architecture… you might be making things harder than they need to be. In my newest YouTube tutorial, I show you how to build a scalable CRUD app using something super clean and refreshing: 👉 Vertical Slice Architecture in .NET 9 We’ll build a full Video Game API, step-by-step, with: .NET 9 Web API + Entity Framework Core Code-first migrations Controllers (yep, still using those!) The Mediator pattern for cleaner code And, of...

Hey Reader, Blazor and Tailwind CSS are my go-to combo for building modern web apps! But with Tailwind v4, some things have changed… and it’s actually easier now! 🎉 No more complex config files, no headaches. Just a simple step-by-step setup to get Tailwind running in your Blazor app the right way. 👉 Watch the tutorial here In this video, I walk you through: ✅ Installing Tailwind v4 with just a few commands ✅ Where to place your files (don’t mess this up!) ✅ How to auto-generate styles with...

Hey Reader, Blazor Render Modes can be tricky, but understanding them is key to building high-performance web apps. I’ve been building web apps for 15 years, and once I touched Blazor, I never looked back. But choosing the right render mode? That’s where things get complicated. In my latest YouTube video, I break down ALL the Blazor Render Modes - Static Server-Side Rendering, Interactive Server, WebAssembly, and Auto - so you know exactly when to use which one. Want fast server-side...

video preview

Hey Reader, Microsoft just dropped a brand-new AI Template for Visual Studio, and it's a total game-changer for .NET developers! 🔥 In my latest YouTube tutorial, I walk you through how to build an AI Chat Web App in just 5 minutes using this new template. It's fast, simple, and honestly... kinda fun! 👉 Watch the full video here You'll learn how to: Set up the template in Visual Studio Use GitHub's models with just a simple token Train the chatbot with your own PDF data Customize it with fun...

video preview

Hey Reader, I've been coding for almost 30 years and getting paid for it for 20. But guess what? I just recently explored Vertical Slice Architecture, and wow... it might just change the way you build .NET apps forever! In my latest YouTube video, I break down three different ways to structure a .NET Web API: ✅ Traditional Layered Approach - Simple, but can get messy fast.✅ Clean Architecture - Great for big apps, but can feel heavy.✅ Vertical Slice Architecture - A fresh take that keeps...

video preview

Hey Reader, You sit down to build an API, add some authentication, and think, “JWT should do the trick.” But then you wonder: What happens if my JWT gets stolen? How do I keep users logged in without compromising security? Sound familiar? In my latest video, I show you how to implement secure JWT authentication with short-lived tokens and refresh tokens in .NET. This setup minimizes risk while keeping the user experience seamless. No fluff - just practical, real-world guidance for building...

Hey Reader, Tired of factories and messy if-else logic in your projects? Since .NET 8, Keyed Services make it easy to handle multiple implementations. No more clutter - just clean, scalable code. In my new video, you’ll see how to dynamically pick services using a key and write code that’s easy to extend. It’s a fresh, modern approach to dependency injection that’ll have you rethinking how you design your APIs. 👉 Watch the video here Wishing you a fantastic start to the new year filled with...

video preview

Hey Reader, You sit down to write an API, and before you know it, you’re knee-deep in controllers, attributes, and boilerplate. Sound familiar? What if you could skip all that and still build a fully functional API - fast? That’s where Minimal APIs in .NET come in. They’re clean and lightweight and make building APIs feel like a breeze. In my latest video, I show you how to set up endpoints step by step and structure everything neatly so your code stays easy to read and scale. No fluff - just...