architecture
C# and .NET Design Patterns Articles, Tutorials & News
C# and .NET Design Patterns articles, tutorials, and news from the DotNetNews archive.
336 articles Updated Page 8 of 14
Browse additional C# and .NET Design Patterns articles from the DotNetNews archive.
C# and .NET Design Patterns articles
Page 8 of 14
Newest first
-
ASP.NET Core 9 performance, .NET 10 changes
DotNetNews Issue #334
A varied .NET roundup covering ASP.NET Core 9 speedups, .NET 10 breaking changes, logging, collections, rate limiting, and cloud updates.
-
Double Dispatch in DDD
codeopinion.com Issue #320
What’s Double Dispatch? Well, before we get to what it is, there is a common belief in domain-driven design that you want to keep your domain pure, meaning no dependencies, no services, no distraction...
-
Stop Designing for Traffic — Design for Failure
medium.com Issue #320
Most architects obsess over traffic. “How do we handle 10,000 requests per second?” Wrong question.
-
DTO (Data Transfer Object)
medium.com Issue #316
DTO (Data Transfer Object) Nedir?
-
When LINQ meets RxJS: Thinking in queries on the frontend
medium.com 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.com 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.com 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.com 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
devblogs.microsoft.com 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
trevoirwilliams.com 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.com Issue #312
How to optimize EF Core performance by preventing N+1 queries in your .NET apps with practical solutions and proven design patterns.
-
The Result Pattern in .NET
malshikay.medium.com Issue #312
A Better Way to Handle Success and Failure
-
Cold Starts in Azure Functions and How the Premium Plan Solves Them
c-sharpcorner.com 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-sharpcorner.com 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-sharpcorner.com 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-sharpcorner.com 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
devblogs.microsoft.com 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.com 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.com 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
rahulyadav9053.medium.com 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-sharpcorner.com 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.com 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.com 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
dotnettips.wordpress.com 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...