solid-principles Single Responsibility Principle (SRP)


Introduction

There should never be more than one reason for change anything in software entities (class, function, file etc). A class, function, file etc should have only one reason to change.

Remarks

Just because you can, doesn't mean you should.