Re:Software Architecture Is Overrated, Clear and Simple Desi...
by nabnob on Wednesday September 18, 2019 @02:06PM
(#21008188)
I'm not sure that was the best example to use of an abstraction that leads to more complicated code, with database code I feel like it's way simpler to have it separate from your business logic. That way, there's fewer places where you need to make changes anytime there's a schema change.
Abstracting away the database also makes it easier to write unit tests for your business logic.
Abstracting away the database also makes it easier to write unit tests for your business logic.