154 karma · joined Mar 25, 2022 (4y ago) · 10 submissions
comment 1y ago · link · parent
The database is not your domain model, it is the storage representation of your domain model on disk. Your REST/grpc/whatever API also isn’t your domain model, but the representation of your domain model on the wire.
These tools (database, protocols) are not the place to enforce making invalid states un-representable for reasons the article mentions. You translate your domain model into and out of these tools, so code your domain model as separately and as purely as you can and reject invalid states during translation.
comment 1y ago · link · parent
This sounds like a terrible idea, and nearly impossible to debug when it inevitably drops data.
comment 3y ago · link · parent
We can both see how much money is allocated to everything, if there's anything one of us wants to spend money on that would be a shared thing - we budget for it.
comment 3y ago · link · parent
Had I known this at the time, I probably would've forced myself to ride my indoor stationary bike every day if it would've helped avoid that immune booster drug.