SOLID is a common acronym in the software development world. It’s useful to remeber five best practices to design classes in a object oriented language. It means:

InitialStands forConcept
SRPSingle Responsability PrincipleA class should have only a single responsability.
OCPOpen Closed PrincipleSoftware entities should be open for extension but closed for modification.
LSPLiskov Substitution PrincipleObjects in a program should be replaceable with instances of theri subtypes without altering the correctness of that program.
ISPInterface Segregation PrincipleMany client-specific interfaces are better than one general purpose-interface.
DIPDependency Injection PrincipleOne should depend upon abstractions, not concretions.

These concepts are easy to understand when we read them, but what does it mean to apply them in our daily coding activities? What do we have to do?

In the next posts we’ll go through each concept with coding examples because as someone much smarter than me said:

Tell me and I’ll foget, show me and I might remember. Involve me and I will remember. – Confucius