S.O.L.I.D Principles Explained In Five Minutes

A guide to understandable, reusable, testable, maintanable and flexible codebase.

Peterson C
The Startup

--

Photo by Clément H on Unsplash

S.O.L.I.D is an acronym used in software engineering that describes a set of principles of object-oriented design. When a system is implementing by using these principles, the codebase is understandable, reusable, testable, maintainable and flexible. The concept originated from Robert C. Martin. It has been adopted and used amongst software engineers ever since.

S.O.L.I.D stands for

  • Single-responsibility principle (SRP)
  • Open-closed principle (OCP)
  • Liskov substitution principle (LSP)
  • Interface segregation principle (ISP)
  • Dependency inversion Principle (DIP)

Single-responsibility principle (SRP)

This principle states that a class should only have a single responsibility. This simply means only changes to…

--

--

Peterson C
The Startup

Husband, father, engineer, musician, and writer by luck. I write mostly about whatever comes to mind. Follow me on this crazy writing journey if you dare.