Category: Clean Architecture
-
Common .NET Core Anti-Patterns and How to Avoid Them
In this article, we’ll explore some of the most notorious anti-patterns in .NET Core, why they are problematic, and how to fix them with better coding practices. Read more
-
Mastering Behavioral Design Patterns in .NET: Streamlining Object Communication
.NET Core, Behavioral Design Patterns, Best Practices, C#, Chain of Responsibility Pattern, Clean Architecture, Command Pattern, Design Patterns, Interpreter Pattern, Iterator Pattern, Mediator Pattern, Memento Pattern, Observer Pattern, Software Architecture, SOLID Design Principles, State Pattern, Strategy Pattern, Template Method Pattern, Visitor PatternThis guide explores essential behavioral patterns, detailing their purpose, practical use cases, alignment with SOLID principles, and step-by-step code implementations to demonstrate their real-world impact. Read more
-
Mastering Creational Design Patterns in .NET: Optimizing Object Creation for Flexibility and Efficiency
In software development, object creation is a fundamental process that significantly impacts application performance, scalability, and maintainability. Creational design patterns provide structured solutions to manage object instantiation efficiently. These patterns ensure flexibility, reduce dependencies, and promote best practices in software design. Read more
-
.NET Architectural Patterns: Best Practices for Scalable, Maintainable Applications
.NET Core, Best Practices, Clean Architecture, CQRS, Design Patterns, Event-Driven Architecture, Hexagonal Architecture (Ports and Adapters), Layered Architecture (N-Tier Architecture), Master-Slave Architecture, MediatR, Microservices Architecture, Onion Architecture, Pipeline Architecture, Repository Pattern, Service-Oriented Architecture (SOA), Software Architecture, Vertical Slice ArchitectureIn this article, we’ll explore some of the most popular .NET architectural patterns — each with its benefits and use cases — and walk through how they work with practical examples. Read more
-
Mastering SOLID Design Principles in .NET 9 for Robust Applications
In this article, we’ll explore each of the SOLID principles — Single Responsibility, Open-Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion — by examining bad code examples, explaining the pitfalls, and refactoring them to follow best practices in .NET 9. Read more
-
CQRS with .NET 8 + MediatR
In this article, I will show you how to implement CQRS in .NET 8 and C# 13 with MediatR and Mapster for auto-mapping an entity result into a Data Transformation Object. Read more
-
Blazor Clean Architecture | .NET 8, C# 12 | CQRS + MediatR
This article delves into the intricacies of Blazor, exploring its architecture, including Clean Architecture, the CQRS pattern with MediatR, and the innovative Vertical Slice Architecture that streamlines the development process. Read more