DEV Community


Discussion on: S.O.L.I.D: Single Responsibility Principle

anshulkatta profile image
Anshul Katta

Nice article about Single Responsibility and code for class Employee is refactored ...

but i disagree with AttendanceTracker having has a relationship with Employee object...

and operation on employee object doesnt require another class but in fact there is a need of util or in functional paradigm we need functions to perform operation on employee object my opinion

Forem Open with the Forem app