You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So... I'm currently following ur style guide on some projects that I'm currently working on and I've been thinking... Isn't this style guide encouraging anemic domain models?
Because you threaten the apps as our "domains" and don't write any domain classes and don't even write some mapping functions to map from domain to model and vice-versa.
You also say to people keep business logic on the service layer. But let's say that I have a Dog domain class and I want to implement the bark method. Following this guide I would implement this on the service layer and, lets say, do something like this:
Hey phalt, how are u doing?
So... I'm currently following ur style guide on some projects that I'm currently working on and I've been thinking... Isn't this style guide encouraging anemic domain models?
Because you threaten the apps as our "domains" and don't write any domain classes and don't even write some mapping functions to map from domain to model and vice-versa.
You also say to people keep business logic on the service layer. But let's say that I have a
Dog
domain class and I want to implement thebark
method. Following this guide I would implement this on the service layer and, lets say, do something like this:Would it be more meaningful to be written down like this?
The text was updated successfully, but these errors were encountered: