The five, with everyday examples
- Single responsibility: a class should have one reason to change. An invoice class that also sends emails and writes PDFs will break whenever any of those three needs change.
- Open/closed: add new behaviour by adding code, not editing working code. A new tax rule becomes a new class plugged in, not another branch in a giant if-statement.
- Liskov substitution: a subtype must work anywhere its parent does. If "ReadOnlyFile" throws errors on save, it should not pretend to be a normal file.
- Interface segregation: prefer small, focused interfaces so classes are not forced to implement methods they do not use.
- Dependency inversion: high-level logic depends on abstractions, such as "a payment gateway", not on a specific provider's library.
Why non-developers should care
Code that follows these ideas is cheaper to extend. When a client asks for a second payment provider or a new report, a SOLID codebase usually absorbs the change in one place, while a tangled one needs edits in many and risks regressions.
Keep perspective
SOLID is guidance, not law. Followed rigidly, it can produce dozens of tiny classes. Experienced teams apply it where change is likely and keep stable, simple code simple.
Questions, answered
Robert C. Martin collected the principles; Michael Feathers coined the acronym.
The underlying ideas, small focused units and depending on abstractions, translate well.