Showing posts from 2023

Building Strong Software: The Simple Way with Clean Architecture

🏛️ Embracing the Elegance of Clean Architecture 🏛️ In the world of software development, the pursuit of clarity, maintainability, and scalability is an ongoing journey. One guiding light on this path is the concept of Clean Architecture. 🌟 What is…

What is Single Responsibility Principle?

v Single Responsibility Principle (SRP) states that a class should have only one responsibility .     v Or a class should have only one reason to change.    v Single Responsibility Principle (SRP) states that a class should have only one respons…

What is Open-closed Principle?

v Open-Closed Principle (OCP) states that software entities(classes, modules) should be open for extension , but closed for modification .     v Open-Closed Principle (OCP) states that software entities(classes, modules) should be open for extensi…

What is Liskov Substitution Principle?

v The Liskov Substitution Principle (LSP) states that an object of a child class must be able to replace an object of the parent class without breaking the   application. v   All the base class methods must be applicable for the derived class.��…

What is Interface Segregation Principle?

v The Interface Segregation (ISP) states that a class should not be forced to implement interfaces that it does not use. v It is better to have multiple smaller interfaces than larger interfaces.

What is Dependency Inversion Principle?

v The Dependency Inversion Principle (DIP) states that a high-level class must not depend upon a lower level class .    v The Dependency Inversion Principle (DIP) states that a high-level class must not depend upon a lower level class .

What is DRY principle?

v DRY stands for DON’T REPEAT YOURSELF. v Don’t write the same functionality multiple time. v Instead write code once and then use it at multiple places using inheritance.

What is AddSingleton, AddScoped and AddTransient method?

v AddTransient  instance will not be shared at all, even with in the same request. Every time a new instance will be created. v AddSingleton method create only one instance when the service is requested for first time. And then the same instance w…

How ASP.NET Core Middleware is different from HttpModule?

v HttpModules are nothing else, but they are very similar to Middlewares only.   v HttpModules are registered in the web.config or global.asax file of the ASP.NET framework, while a Middleware is registered via Configure method of the startup.c…

Load More
That is All