SOLID principles are five design principles created to improve object-oriented Software DesignSoftware Design
This page acts as a map of content for Software Design topics.
Status: #🗺️
. Even though its primary focus is OOP, a lot can be learned from these principles in terms of non-OOP languages like 01 Inbox/Golang.
The five principles are:
- Single Responsibility PrincipleSingle Responsibility Principle
Single Responsibility Principle (OCP) is the first of [[SOLID Principles]] which states:
"A class should have one, and only one, reason to change"
In other words, if some code has to change, it s... (S) - Open Closed Principle (O)
- Liskov Substitution PrincipleLiskov Substitution Principle
Liskov Substitution Principle is the third of the [[Software Design]] [[SOLID Principles]] in [[OOP]]. It states this:
If S is a subtype of T, then objects of type T may be replaced with objects o... (L) - Interface Segregation Principle (I)
- Dependency Inversion Principle (D)
Status: #🌱