# SOLID

> The S.O.L.I.D is a set of five design principles for object-oriented programming that help make software designs more understandable, flexible and maintainable.

## What are the SOLID principles?

The acronym representing five key design principles: Single Responsibility, Open-Closed, Liskov Substitution, Interface Segregation and Dependency Inversion. These principles guide developers to write cleaner and more maintainable code.

- Topic: Architecture
- Type: concept, approach

## Common mistakes

- Applying every principle everywhere and ending up with dozens of tiny classes and interfaces.

## Interview questions

### Is SOLID only for object-oriented code?

No. The ideas also apply to modules, functions and UI components: keep them focused, depend on contracts and avoid huge interfaces.

### Which SOLID principle matters most?

Single Responsibility is usually the most useful day to day, because focused modules make the other principles easier to follow.

## Related cards

- [Single Responsibility](https://wonderium.dev/engineering/single-responsibility.md)
- [Open-Closed](https://wonderium.dev/engineering/open-closed.md)
- [Liskov Substitution](https://wonderium.dev/engineering/liskov-substitution.md)
- [Interface Segregation](https://wonderium.dev/engineering/interface-segregation.md)
- [Dependency Inversion](https://wonderium.dev/engineering/dependency-inversion.md)

---

- Level: [Engineering](https://wonderium.dev/engineering.md)
- HTML version: https://wonderium.dev/engineering/solid
- Last updated: 2026-11-25
