Showing posts from October, 2023
🏛️ 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…
v SOLID principles are a set of principles, which must be followed to develop flexible, maintainable, and scalable software systems. v SOLID principles are a set of principles, which must be followed to develop flexible, maintainable, and scalable…
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…
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…
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.…
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.
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 .
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.
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…
v A middleware is a component that is executed on every request in the ASP.NET Core application. v A middleware a component that is executed on EVERY REQUEST in the ASP.NET Core application. v We can set up the middleware in ASP.NET using the C…
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…