Engineering for All: Single Responsibility

Photo by Damien TUPINIER on Unsplash

“a class should have only one reason to change.” — Robert C. Martin

Single responsibility is the first of the SOLID principles, and its the most fundamental. Although initially, it seems very obvious and almost silly, when applied to a group of code, it can have a dramatic effect. Robert Martin’s fundamental idea is that the goal of SRP is to lessen the need for changing a unit’s code to…