|
|
|
|
|
by UK-AL
3338 days ago
|
|
Another benefit is getting database stuff out of your domain code, makes solving the business problem a lot cleaner. In fact i just write a domain model, solve the problem, then write database adapter to persist the domain model. I always think about modeling the domain first, then persistence is an after thought. The persistence adapter can be done however you want, raw sql orm, nosql. So it's not really "abstracted away", it's just no the focus of the application. Everything just plugs into the domain model. |
|
I've seen too many programmer bugs to trust putting business logic outside of the DB. Separation of concerns here too just on different lines of concern.