SOLID Principles in c#
Автор: Ravindra Devrani
Загружено: 2024-09-16
Просмотров: 444
SOLID is an acronym that stands for five fundamental principles of object-oriented design and development. These principles aim to promote cleaner, more robust, and updatable code for software development in object-oriented languages.
S - Single Responsibility Principle (SRP):
A class should have only one reason to change, meaning it should have only one job or responsibility.
O - Open/Closed Principle (OCP):
A class should be open for extension but closed for modification. You should be able to add new functionality without changing the existing code.
L - Liskov Substitution Principle (LSP):
Derived classes should be substitutable for their base classes. Any code that uses a base class should be able to work with a derived class without knowing the difference.
I - Interface Segregation Principle (ISP):
A client should not be forced to depend on interfaces it does not use. Instead of having a large, general interface, break it down into smaller, more specific interfaces.
D - Dependency Inversion Principle (DIP):
High-level modules should not depend on low-level modules. Both should depend on abstractions. Also, abstractions should not depend on details. Details should depend on abstractions.
📎Blog posts containing source code:
1 SRP: / solid-principles-1-single-responsibility-p...
2 OCP: / ssolid-principles-2-open-close-principle-ocp
3 LSP: / the-liskov-substitution-principle
4 ISP: / the-interface-segregation-principle-isp
5 DIP: / the-dependency-inversion-principle-dip
Timestamps
(00:00 - 02:46) Single responsibility principle
(02:47-07:08) Open closed principle
(07:09-09:36) Liskov substitution principle
(09:37-11:31) Interface segregation principle
(11:32-14:27) Dependency inversion principle
.......................................................
connect with me
👉 Twitter: / ravi_devrani
👉 GitHub: https://github.com/rd003
👉 YouTube: / @ravindradevrani
#solidprinciples #csharp
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: