The last of the SOLID principles explained with some examples.
This post continues the analisys of the SOLID principles and it's about the Interface Segregration Principle (ISP). Definition The interface-segregation principle (ISP) states that no client should be forced to depend on methods it does not use. The bad example Here we examine an interface that violates ISP: This interface states that a smart device … Continue reading SOLID principles by example: Interface segregation
This post continues the analisys of the SOLID principles started some blog posts ago. This is the turn for the Open Closed Priciple (OCP). The definition An object/entity should be open for extension but closed for modification. What we are basically talking about is to design our modules, classes and functions in a way that … Continue reading SOLID principles by examples: open/closed