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 6 of 14
Browse additional C# and .NET Design Patterns articles from the DotNetNews archive.
C# and .NET Design Patterns articles
Page 6 of 14
Newest first
-
-
Comparing Entity Framework Core vs Dapper: When to Choose What
c-sharpcorner.com Issue #397
Explore the differences between Entity Framework Core and Dapper for .NET data access. Learn when to choose each ORM based on performance, productivity, and control.
-
Flatten Arrays and Collections in C#: The Definitive Guide for Fast, Clean Code
medium.com Issue #391
If you’ve ever wrangled with multi-dimensional arrays, nested lists, or jagged collections in C#, you know the pain: you just want a…
-
Prompt Engineering — Self-Consistency, Direct Stimulus & ReAct
henriquesd.medium.com Issue #389
In this article, I present the Self-Consistency, Direct Stimulus Prompting (DST), and ReAct (Reasoning + Acting) techniques . When executed multiple times, the answers are compared to identify those t...
-
How to Demonstrate Deep C# Knowledge: A Guide Through Delegates and Events
medium.com Issue #389
Preparing for a C# interview? Or looking to validate your senior-level expertise? Here’s the truth: nothing showcases your advanced grasp…
-
Robust Strategy Pattern in .NET 10: Building a Fail-Safe Tax Calculation Engine
medium.com Issue #389
Practical guide to building a flexible, testable, and fail-safe tax calculation engine using C# features. Why your next business-critical…
-
Your Idempotent Code Is Lying To You
codeopinion.com Issue #389
You have some code that handles placing an order. This could be an HTTP API or a message handler. You made it idempotent. You added a unique constraint on some kind of message ID. And somehow… you sti...
-
Result Pattern: Handling Expected Failures Without Using Exceptions
donmahsu.medium.com Issue #389
Recently, while I was cleaning up some business logic in an old system, I noticed that almost all error handling was done with try/catch…
-
Events in C# Explained with a Real-World Example
c-sharpcorner.com Issue #381
Learn C# events with a real-world patient recovery scenario! Master the publisher-subscriber pattern, EventHandler<TEventArgs>, and build loosely coupled applications. Ideal for beginners!
-
Logging, EF Core, and .NET 10 upgrade reasons
DotNetNews Issue #379
A varied .NET roundup with Serilog logging, EF Core Fluent API, .NET 10 upgrade reasons, MAUI, SignalR, and Azure DevOps updates.
-
You Can’t Future-Proof Software Architecture
codeopinion.com Issue #378
“Future proof your architecture” sounds good. But the reality is you can’t future-proof Software Architecture. When you really think about it, the future is just what’s breaking assumptions. You can’t...
-
Combining the Factory and Strategy Patterns
nodogmablog.bryanhogan.net Issue #378
Download full source code. I was recently talking with a friend about the factory and strategy patterns, how they could be used together. He was familiar with the factory, but not the strategy. The ...
-
Implementing Transactional Outbox Pattern in .NET Microservices — Ensuring Eventual Consistency
medium.com Issue #376
In monolithic systems, database operations rely on ACID principles. A transaction either completes entirely or not at all. However, in…
-
Extremely FAST Caching Repository With Decorator Pattern in ASP.NET Core
medium.com Issue #376
If You want the full source code Click :Here
-
Repository Pattern: The Right Way to Free Your Code from the Database
medium.com Issue #369
When you apply the Repository Pattern correctly, the ORM you use becomes just an implementation detail.
-
Factory Pattern C#
c-sharpcorner.com Issue #369
Learn the Factory Pattern in C# with a practical example! Discover how to decouple object creation, improve maintainability, and simplify your code. #csharp
-
The Hidden Impediment of the Strangler Fig Pattern
medium.com Issue #369
Why Legacy Systems Fight Back (and How .NET Teams Get Trapped)
-
Solving Message Ordering from First Principles
milanjovanovic.tech Issue #367
Per-aggregate ordering is what we really want. But queues with competing consumers make it surprisingly easy to break. This article shows how the “fix” naturally evolves into a saga.
-
Memento Pattern, Using The Command Pattern, and Domain Events in .NET
jordansrowles.medium.com Issue #362
Practical implementation of Memento, Command, and Domain Events patterns for building auditable systems with undo/redo in C# .NET
-
Records in C#: The Feature That Quietly Changed How I Write Code
medium.com Issue #362
At first glance, the records look like just shorter classes.
-
I Finally Killed the “If-Else” Chain: From Spaghetti Code to a Plugin System (in Python & .NET)
faun.pub Issue #362
How the Registry Pattern saved my codebase and how to implement it in both Python and C#. Continue reading on FAUN.dev() »
-
Introducing Microservices Design Patterns in .NET (2nd Edition)
trevoirwilliams.com Issue #359
After months of writing, revising, and pressure-testing ideas against real-world systems, I’m excited to officially announce the release of the Second Edition of Microservices Design Patterns in .NET....
-
Event-Driven Architecture Without the Chaos
medium.com Issue #356
When Events Simplify Systems — and When They Destroy Them
-
12 Essential Distributed System Design Patterns Every Architect Should Know
antondevtips.com Issue #356
Learn the 12 most important distributed system design patterns that every software architect needs to master: API Gateway, Point To Point Async Integration, Publish/Subscribe, OutBox, CQRS, Saga, Side
-
Modeling a Domain With Domain-Driven Design From Scratch
medium.com Issue #356
A Practical, Code-First Guide (DDD Mega Series — Part 1/3)