Skip to content

Design Patterns

dotnet core

How to use the Strategy Pattern in C#

The strategy design pattern splits the behavior (there are many behaviors) of a class from the class itself. This has some advantages, but the main draw back is that a client must understand how the Strategies differ.

dotnet core

What is CQRS?

Command Query Responsibility Segregation (CQRS) specifies that different data models should be used to for updating the database and read from the database. Command and Query are two operations which infer read and write respectively

dotnet core

The Mediator Pattern

Mediator pattern is used to reduce communication complexity between multiple objects or classes. The pattern provides a mediator class which handles all the communications between different classes and supports easy maintenance of the code by loose coupling.

dotnet core

How to create project templates in .net core

The simplicity of the .net core packing and publishing tool, enables you simply use what you’re already doing to make doing what you’re already doing faster. No need to learn a new complex template language.

dotnet core

The Prototype Design Pattern C# .net core

The Prototype Design Pattern is one of the Creational Design Patterns defined by the Gang Of Four (GOF) published their book Design Patterns: Elements of Reusable Object-Oriented Software in which they presented a catalog of simple and succinct solutions to commonly occurring design problems.

dotnet core

The Builder Pattern .net core

Builder Pattern is useful for encapsulating and abstracting the creation of objects. It is distinct from the more common Factory Pattern because the Builder Pattern contains methods of customising the creation of an object.

dotnet core

How to use Factory Method Design Pattern in C#

Factory Pattern creates objects, in this post we will implement the factory design pattern in a C# application. Using the Factory pattern, we develop an abstraction that isolates the logic for determining which type of class to create.

What is Clean Code

What is Clean Code ?

Clean code and the practices are about eliminating or at least attempting to reduce complexity. Although clean code solutions may seem elegant and efficient, they are not always easy and are often the direct result of combating complexity!