-
Design Principles
Read more: Design PrinciplesGeneral Guidelines that can guide your class structure and relations. Definition of Design Principles in Programming Design principles in programming refer to a set of guidelines and advice’s and best practices that help software developers create structured, maintainable, and efficient code. These principles aim to improve code readability, facilitate collaboration among developers, and enhance the…
-
Factory Method Pattern In .Net 8
Read more: Factory Method Pattern In .Net 8How IEnumerable<T> Injection Works in .NET Core When you register multiple implementations of an interface in the DI container, the framework automatically groups these implementations into an IEnumerable<T> when you inject them. Step-by-Step Explanation: Why It Works Practical Implications Summary In .NET Core, when you inject an IEnumerable<T> of an interface, the DI container automatically…
-
Architectural Patterns
Read more: Architectural PatternsCategory Patterns Structural( Focuses on Inner parts of the system) MVC, Layered Architecture, Client-Server Architecture, Pipe-and-Filter Architecture, Hexagonal Architecture, Microkernel Architecture Behavioral Event-Driven Architecture, CQRS, Event Sourcing Landscape(Focuses on big picture of the systems) Microservices Architecture, Service-Oriented Architecture, Serverless Architecture, Domain-Driven Design 1. Structural Patterns Structural patterns define the organization and static components of a…
-

Factory Method Pattern
Read more: Factory Method PatternDefines an interface for creating an object, but lets subclasses decide which class to instantiate. Understanding the Factory Method Pattern Imagine a logging system where you want to log messages to different targets (e.g., console, file, database). You want to make the logging mechanism flexible and easily configurable.. This is essentially the Factory Method pattern.…