-
The single responsibility principle
”A class should have one, and only one, reason to change.” – Robert C Martin If I had to choose one design principle that has been most useful to practice over time it surely is the single responsibility principle (SRP). What is this principle about? The idea is that a module (or class) should only…