Async, DI, and Blazor pitfalls
This issue covers async gotchas, DI guidance, Blazor Server memory leaks, EF Core queries, debugging tricks, and MAUI age verification.
Jasen's top three picks
- 1 Dependency Injection in .NET — The 9 Golden Rules Nobody Taught You
medium.com
A solid DI reality check: containers help, but they won’t save a muddled design.
- 2 Improve Debugging in .NET Using the DebuggerDisplay Attribute
c-sharpcorner.com
DebuggerDisplay is one of those small quality-of-life tools that pays off every day.
- 3 How do I check whether the user has permission to create files in a directory?
devblogs.microsoft.com
The MAUI age-verification sample is a good example of platform-specific requirements done the .NET way.
Editor's note
I kept this one deliberately mixed: architecture, debugging, async, and a little UI work all made the cut. The Blazor Server circuit-leak piece and the age-verification MAUI sample stand out because both are practical problems many teams are running into right now. I also liked the reminders around dependency injection and async, since those habits still save or sink production code.
Today's articles
Dependency Injection in .NET — The 9 Golden Rules Nobody Taught You
medium.com
(And why your container isn’t fixing your architecture problems)
Topics: ASP.NET Core Design Patterns
Read articleImprove Debugging in .NET Using the DebuggerDisplay Attribute
c-sharpcorner.com
Simplify .NET debugging with the DebuggerDisplay attribute! Customize object views in the debugger for faster problem-solving. Learn how to use it effectively and boost productivity.
Topics: Profiling Visual Studio
Read articleHow do I check whether the user has permission to create files in a directory?
devblogs.microsoft.com
A customer wanted to accept a directory entered by the user and verify that the user has permission to create files in that folder. The directory itself might not even be on a local hard drive; it cou...
Topics: .NET Framework Security
Read articleDelegates, Func, Action & Lambdas — The Heart of ASP.NET Core (Beginner-Friendly Guide)
medium.com
If you’ve ever wondered how ASP.NET Core magically wires up controllers, middleware, services, background tasks, filters, event handlers……
Topics: ASP.NET Core C#
Read articleCross-Platform Age Verification in .NET MAUI Applications
devblogs.microsoft.com
Learn how to implement age verification in your .NET MAUI apps with our new cross-platform sample supporting Google Play Age Signals, Apple Declared Age Range, and Windows Age Consent APIs. The post ...
Read articleStop Fighting SQL Queries Inside LINQ — Use This Simple Profiling Trick
medium.com
(The invisible performance bug every .NET developer ships to production)
Topics: EF Core Performance
Read articleHow a Tiny Null Check Broke an Entire Feature and How I Fixed It
medium.com
This blog is a bit personal and it helped me understand how important it is to sometimes appreciate good programming practices.
Topics: C# Solid Principles
Read articleBoost Developer Experience with Swagger Filters You’re Not Using
medium.com
API documentation is one of the most important parts of modern software development. And the first framework that comes to mind when we… Continue reading on Dot Net, API & SQL Learning »
Topics: ASP.NET Core Visual Studio
Read articleStop Using Task.Run! The Secret to True Async in .NET
medium.com
Task.Run() is the API that many developers use blindly in .NET applications. But do you know? In most cases, using Task.Run() is not right… Continue reading on Dot Net, API & SQL Learning »
Topics: ASP.NET Core Performance
Read articleBuilding Multi-Tenant .NET 9 Applications with Row-Level Security and Event Isolation
medium.com
Multi-tenant applications are no longer a nice-to-have — they’re the default architectural requirement for SaaS. But supporting true…
Topics: ASP.NET Core C#
Read articleLet’s Talk About Null in .NET
medium.com
Every few months, an article makes the rounds telling developers to “stop using null” or that null checks are a “code smell” that…
Read articleBlazor Server Memory Management: Stop Circuit Leaks
medium.com
Learn how Blazor Server stores state, how circuit leaks grow memory, and how to fix them with IDisposable patterns and safe circuit limits. Continue reading on .Net Code Chronicles »
Topics: Blazor Performance
Read articleWhy Your Async Code Is Slower Than You Think (with Real C# Examples)
itnext.io
If you still block on async tasks, mix sync + async, or fire-and-forget without care — this is your fix. Continue reading on ITNEXT »
Topics: C# Performance
Read articleOne LINQ Extension Method You NEED To Know For Cleaner EF Core Queries
medium.com
(And Why It Will Completely Change How You Write EF Core Code)
Read articleNull-Coalescing Operator vs Ternary Operator in .NET
benedictodoh.medium.com
In .NET, both the null-coalescing operator (??) and the ternary conditional operator (?:) are used to simplify conditional expressions…
Topics: C# Solid Principles
Read articleThe Strategy Pattern in C#: A Complete Deep Dive from First Principles to Production-Ready Code
medium.com
Friend link :- Read full story for free!
Topics: C# Design Patterns
Read articleC# .NET Object-Oriented Programming – A Complete Guide (Beginner to Advanced)
c-sharpcorner.com
This article provides a complete and easy-to-understand guide to Object-Oriented Programming (OOP) in C# .NET, covering core concepts such as classes, objects, variables, methods, constructors, access...
Read article