S.O.L.I.D Principles Explained In Five Minutes
A guide to understandable, reusable, testable, maintanable and flexible codebase.
Published in
5 min readNov 17, 2019
S.O.L.I.D is an acronym used in software engineering that describes a set of principles of object-oriented design. When a system is implementing by using these principles, the codebase is understandable, reusable, testable, maintainable and flexible. The concept originated from Robert C. Martin. It has been adopted and used amongst software engineers ever since.
S.O.L.I.D stands for
- Single-responsibility principle (SRP)
- Open-closed principle (OCP)
- Liskov substitution principle (LSP)
- Interface segregation principle (ISP)
- Dependency inversion Principle (DIP)
Single-responsibility principle (SRP)
This principle states that a class should only have a single responsibility. This simply means only changes to…