skip to content
Ivan's wiki
Site Tools
Search
Tools
Show pagesource
Backlinks
Recent Changes
Media Manager
Sitemap
>
Recent Changes
Media Manager
Sitemap
swe:solid
This page is read only. You can view the source, but not change it.
# SOLID **SOLID** is five object-oriented design principles: Single Responsibility, Open/Closed, [Liskov substitution principle](/swe/liskov-substitution-principle), Interface Segregation, Dependency Inversion. They make code more understandable, maintainable, and extensible. A class with multiple reasons to change is harder to modify when each reason occurs independently. Adding new behaviour requires editing existing code, creating risk of regression. Interfaces and abstractions allow new behaviour without modifying old code. Clients depend on huge interfaces that include methods they do not use, creating coupling. Apply these principles to make dependencies explicit, allow substituting implementations, and keep each class focused. The tradeoff is complexity: small programs or functional code does not benefit as much, and strict adherence can produce over-engineered designs.
Page Tools
Show pagesource
Backlinks
Back to top