What are SOLID Principles?
SOLID is an acronym first introduced by Martin C. Robert in his 2000 paper Design Principles and Design Patterns.
SOLID stands for:
- S – Single-Responsibility Principle(SRP)
- O – Open-Closed Principle(OCP)
- L – Liskov Substitution Principle(LSP)
- I – Interface Segregation Principle(ISP)
- D – Dependency Inversion Principle(DIP)
Why are SOLID Principles important?
SOLID Principles were created to help and prevent systems from becoming rigid, fragile, immobile, complex, and difficult to understand. These principles offer a solution to fundamental architectural problems. Most importantly, the SOLID Principles point us to high-level details that need to be addressed. Sometimes these details can be a bad tightly-coupled inheritance relationship or a class that is taking on too much functionality.
In this course:
This SOLID Principles course has a lesson for each SOLID Principle. We will define each principle and give examples with the help of code or UML Diagrams.