Design Patterns in Asp.Net

Design patterns offer broad or flexible answers to common design issues.

Design patterns are reusable solutions to common problems in software design. Their help makes code clean, maintainable, and scalable. Design patterns fall into three categories:

  • Creational Patterns
  • Structural Patterns
  • Behavioral Patterns

Creational patterns are concerned with object creation mechanisms. They help us create objects in a way that is flexible and decoupled from the client code. Some typical creational patterns include:

  1. Factory Method
  2. Abstract Factory
  3. Builder
  4. Prototype
  5. Singleton

 

Structural patterns are concerned with how objects are composed. They help us define how objects are combined to produce larger structures. Some typical structural patterns are:

  1. Adapter
  2. Bridge
  3. Composite
  4. Decorator
  5. Facade
  6. Flyweight
  7. Proxy
  8. Module

 

 


Developers utilise patterns for specific designs to solve challenges.


Behavioural patterns are focused on object interaction. They help us specify how items interact with one another. Some such behavioural patterns are:

  1. Chain of Responsibility
  2. Command
  3. Interpreter
  4. Iterator
  5. Mediator
  6. Memento
  7. Observer
  8. State
  9. Strategy
  10. Template Method
  11. Visitor

Design patterns makes code clean, maintainable, and scalable

Author
Full Stack Developer

Deepak Talwar

Technical Architect & Full Stack Developer with 18+ years of Professional Experience in Microsoft Technologies & PHP Platform. Hands on experience with C#, VB, ASP.NET, ASP.NET MVC, ASP.NET Core, ASP.NET Web API, Linq, ADO.NET, Entity Framework, Entity Framework Core, Sql Server, MYSQL, NoSql, Javascript, Angular, jQuery, AWS, Azure, React, Angular, Laravel, Codeingiter, Serenity, VBA, Cloud Computing, Microservices, Design Patterns, Software Architecture, Web Design and Development.

Related Post