# Understanding the 5 SOLID principles from their origins: when to follow them and when it is fine to break them

- Link: https://qiita.com/Sicut_study/items/2bbdfbacab915773dad1?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items
- Discussion: https://startupxo.com/en/1459/
- Posted by startupxo at 2026-11-25T00:43:29.615Z
- 0 points, 0 comments, kind story, origin curated
- Written in ko, machine translated to en

## Summary

- SOLID is a set of 5 object-oriented design principles meant to reduce cases where fixing one place in the code breaks unrelated places. The author, Sicut_study (of JISOU), explains that Robert C. Martin organized them in a paper in 2000, and Michael Feathers gave them the name.
- Single responsibility says to split code by the party that requests changes. Open-closed says to add features without touching existing code, and the author says to abstract when a second implementation becomes necessary. The author thinks abstract structures built in advance make code harder to read.
- Liskov substitution says a child class must not break the promises of its parent. The author judges that inheritance easily creates tight coupling, so this has become an old principle in modern development.
- Interface segregation says not to make code depend on features it does not use. For dependency inversion, the author says to decide whether to apply it based on whether you want to inject a fake object for testing, rather than on the possibility of replacing the DB. The author stresses that all 5 are guidelines, not absolute rules.

## Sources

- Qiita: https://qiita.com/Sicut_study/items/2bbdfbacab915773dad1?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items

## Comments (0)

No comments yet.

JSON: https://startupxo.com/api/v1/item.json?id=1459&lang=en
