SOLID Principles
Single Responsibility Principle (SRP)A class should have one reason to change — one job. If a class does two things, a change in one concern forces you to touch the other. Bad: Good: split responsibilities. Now formatting/generation and persistence change independently. Open/Closed Principle (OCP)Software entities should be open for extension but closed for modification. You […]