architecture
C# and .NET Design Patterns Articles, Tutorials & News
C# and .NET Design Patterns articles, tutorials, and news from the DotNetNews archive.
432 articles Updated Page 12 of 18
Browse additional C# and .NET Design Patterns articles from the DotNetNews archive.
C# and .NET Design Patterns articles
Page 12 of 18
Newest first
-
When LINQ meets RxJS: Thinking in queries on the frontend
Medium Issue #316
The first time I saw switchMap, I thought it was LINQ’s long-lost cousin who moved to the frontend and changed their name.
-
This One C# Keyword Replaced an Entire Design Pattern (And Nobody Noticed)
Medium Issue #316
I deleted 132 lines of Builder pattern code after switching to record struct + with + required.
-
ASP.NET Core Dependency Injection From Scopes & Lifetimes
Medium Issue #315
You know the basics. AddTransient, AddScoped, AddSingleton. It all seems so straightforward.
-
.NET AI Community Standup - Microsoft Agent Framework: Workflows & Migration Overview
YouTube Issue #315
Why You Should Avoid async void in C# (and What to Use Instead)
-
A Developer's Guide to Fine-Tuning GPT-4o for Image Classification on Azure AI Foundry
Microsoft Dev Blogs Issue #315
Whether you’re a machine learning practitioner, app developer, or just curious about the latest in AI, this guide shows how you can quickly boost image classification accuracy using cutting-edge Visio...
-
How I Stopped Creating My Own Objects: Learning Dependency Injection in .NET
Code With Trev | Blog Issue #312
During my early days of coding, I had a hard time understanding Dependency Injection (DI). I was so accustomed to creating objects directly inside my classes. Every time I needed something, I would si...
-
Avoiding N+1 Queries in EF Core: Practical Patterns and Fixes
Medium Issue #312
How to optimize EF Core performance by preventing N+1 queries in your .NET apps with practical solutions and proven design patterns.
-
-
Cold Starts in Azure Functions and How the Premium Plan Solves Them
C# Corner Issue #312
Eliminate Azure Functions cold starts with the Premium plan! This article dives into a real-world healthcare IoT telemetry pipeline scenario where cold starts caused critical alert delays. Learn how p...
-
SOLID Principles Cheat Sheet 🚀
C# Corner Issue #311
Master the SOLID principles of object-oriented design with this cheat sheet! Learn Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion principles. ...
-
🌀 Saga Design Pattern - Orchestration Saga – Cheat Sheet
C# Corner Issue #311
Master the Orchestration Saga pattern for microservices! This cheat sheet explains how to maintain data consistency across distributed systems without 2PC. Learn to break down long transactions into s...
-
Learn the Builder Pattern in C#
C# Corner Issue #310
This article provides a comprehensive guide, explaining when and how to use this creational design pattern to simplify complex object construction. Explore classic and fluent builder implementations, ...
-
API design principle: Don't tempt people to divide by zero
Microsoft Dev Blogs Issue #310
A team was bringing forward an API for review, and one of the parts involved expressing a set of supported values in the form of three numbers: A minimum allowed value. An increment. A maximum allowed...
-
-
Say Goodbye to If-Else Chains with a Rule Engine Approach
Medium Issue #310
We can make our code more scalable and manageable by using this approach, and eliminate the long chain of if-else conditions
-
Design Patterns: The Legacy of the Gang of Four and Why It Still Matters
Medium Issue #307
When we talk about Design Patterns, it’s impossible not to mention the legendary Gang of Four (GoF). The group that forever changed how we…
-
Extension Methods in C#: Write Cleaner, Smarter, and More Reusable Code
Medium Issue #304
Make your C# code more expressive and readable by using extension methods — the hidden gem behind LINQ and fluent APIs. Learn how to use…
-
Microservices in .NET Core: A Beginner-Friendly Guide
C# Corner Issue #304
Unlock the power of microservices in .NET Core with this beginner-friendly guide! Learn how to build scalable, maintainable, and resilient applications by breaking them down into independent services....
-
Advanced OOP Features in C#: Beyond the Four Pillars
Medium Issue #304
When I first learned the four OOP pillars — encapsulation, inheritance, polymorphism, and abstraction — I thought I had unlocked the…
-
Master Static, Sealed, and Constructors in C# — Learn with a Real Bank Story
Medium Issue #304
A beginner-friendly guide to understanding the most confusing C# keywords through a fun and realistic Bank example.
-
Defensive Programming with Microsoft .NET: Anticipate Errors and Eliminate Bugs
WordPress Issue #303
This discusses the principles of defensive programming to enhance software development. It emphasizes error prevention strategies such as input validation, comprehensive error handling, and assumption...
-
What the .NET Ecosystem Lacks Today Isn’t Code: It’s Vision
Medium Issue #303
.NET doesn’t need saving or reinvention — it needs direction.
-
The Specification Pattern in C#: Write Cleaner, More Maintainable Queries
Medium Issue #303
Stop copying and pasting LINQ queries. Start writing reusable, testable specifications.
-
The Painful Truth About Over-Abstraction in C# — And How to Fix It
Medium Issue #303
Practical fixes for leaner C#.
-
Mastering Delegates in C#
C# Corner Issue #297
This article goes beyond the basics, revealing how delegates enable flexible, extensible, and testable applications. Learn how they underpin events, LINQ, asynchronous programming, and design patterns...