SOLID Design Principles

Learned in CS247.

The purpose of SOLID Design Principles is to reduce software rot (the property that long lasting codebases become more difficult to maintain).

Used it at work!

Actually had to use it at work at Ford. Was tasked to make some changes in our code base. And i was wondering if I needed to create a new watchdog class, since I don’t want our initial class to do two things… A class should should only have ONE reason to change.

SOLID is an acronym of 5 principles:

  1. Single Responsibility Principle
  2. Open-Closed Principle
  3. Liskov Substitution Principle
  4. Interface Segregation Principle
  5. Dependency Inversion Principle