0

Service classes for business logic

Hi. Is it bad practice to create service classes that do not use a api or database, but only business logic? Thanks!

7th Feb 2018, 5:09 AM
Michael Vorm Jensen
Michael Vorm Jensen - avatar
1 ответ
+ 1
As far as I'm aware, this is good practice. We often have a Service/DAO layer, the DAOs job is to interact with the database - the service will use the results handed to it by the DAO to apply business logic, good example of the Single Responsibility Principal
7th Feb 2018, 7:20 AM
Dan Walker
Dan Walker - avatar