Principes SOLID

Five structural rules for object-oriented code. One class does one thing (single responsibility). You extend it without editing it (open closed). A subclass stays substitutable for its parent (Liskov). You split fat interfaces rather than forcing a class to implement methods it never calls (interface segregation). And you depend on abstractions, not concrete implementations (dependency inversion). Formulated by Robert Martin in the early 2000s, they describe a property of code: the ability to change one part without breaking another.

Strengths

Limitations

Best for

Official site

View on Coeurdar