Make money doing the work you believe in

SOLID Principles Cheat Sheet I always wanted to have πŸ”₯

1. Single Responsibility Principle (SRP) - class should do only one task.

2. Open Closed Principle (OCP) - class should be extended not modified.

3. Liskov Substitution Principle (LSP) - child classes must be able to replace their super classes.

4. Interface Segregation Principle (ISP) - interfaces should be small, classes should not implement unnecessary methods.

5. Dependency Inversion Principle (DIP) - dependency is reversed, high-level components are free of low-level components.

---

β™» Restack if you found the post helpful and help others find it. πŸ™

Apr 18, 2024
at
6:50 AM
Relevant people

Log in or sign up

Join the most interesting and insightful discussions.