Do you ever heard about service classes ?
Do we need actually need it ?
We can code with or without service classes.But when we use service classes,It all matters when we code with intention of good readability,We don't want to code that just works,Our code must be beautiful enough to read by other developers, especially our senior dev.
Service classes allows us to write business logic in one place and app logic in another place,What is actually business logic
?
Business logic is nothing but, how we verify the registered user, or how we calculate our shipping cost.
Top comments (0)