Category Archives: SOLID Principles

L of S.O.L.I.D. Liskov’s Substitution principle

This is the third in the 5 principles which are defined as an acronym S.O.L.I.D. This principle is further having an acronym called L.S.P. which stands for Liskov’s Substitution Principle. This principle was introduced by Barbara Liskov. A definition from wikipedia about … Continue reading

Posted in SOLID Principles | Tagged | Leave a comment

Dependency Inversion Principle

So this is the last of the 5 principles in the solid principles and is called Dependency Inversion principle. This principle is generally aimed at managing the coupling between two modules/classes with one of them dependent on the other and using … Continue reading

Posted in SOLID Principles | Tagged | Leave a comment

S.O.L.I.D. Principles

As a developer, we write a lot of code daily, with a satisfaction that we have written a very good code. Next day, you come to the office and you come to know that the requirements have changed from the … Continue reading

Posted in SOLID Principles | Tagged | Leave a comment

I of S.O.L.I.D. or Interface Segregation Principle

Next in line in the solid principles is Interface Segregation principle. The general definition of this principle is Client should not be forced to implement interfaces they don’t use. So, this means, any class should be using or implementing only … Continue reading

Posted in SOLID Principles | Tagged | 1 Comment

O of S.O.L.I.D. or Open/Closed Principle

This is the second principle of the 5 principles which are defined as an acronym S.O.L.I.D. This principle is further having an acronym called O.C.P. which is Open/Closed Principle. The general definition of this principle is A Class should be Open for … Continue reading

Posted in SOLID Principles | Tagged | 5 Comments