Simplifying Code with the Single Responsibility Principle
TLDR
TLDR: The Single Responsibility Principle says a class should have only one reason to change. If a change in DB schema AND a change in email format both require you to edit the same class, that class has two responsibilities — and needs to be s...
abstractalgorithms.dev11 min read