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!
1 Réponse
+ 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