Open Closed Principle (OCP) states that, Software entities (Classes, modules, functions) should be OPEN for EXTENSION, CLOSED for MODIFICATION. Lets try to reflect on the above statement- software entities once written shouldn’t be modified to add new functionality, instead one… Read More ›
Design
SOLID- Single Responsibility Principle
The Single Responsibility principle (SRP) states that: There should never be more than one reason for a class to change. We can relate the “reason to change” to “the responsibility of the class”. So each responsibility would be an axis… Read More ›
SOLID – Object Oriented Design principles
We usually write code that is- Rigid – Difficult to add new features Fragile – Unable to identify the impact of the change Immobile – No reusability Viscous – Going with the flow of bad practices already being present in… Read More ›
Cohesion and Coupling: Two OO Design Principles
Cohesion and Coupling deal with the quality of an OO design. Generally, good OO design should be loosely coupled and highly cohesive. Lot of the design principles, design patterns which have been created are based on the idea of “Loose… Read More ›