4 ms·
Part of the madness is domain modeling. One imagines their software’s domain model includes things like accounts and persons and try to build those as objects.
by thatjoeoverthr 3y ago
Part of the madness is domain modeling. One imagines their software’s domain model includes things like accounts and persons and try to build those as objects.
This is a lie. The domain has been modeled in the database already with constraints. The domain of the backend is not to manipulate persons or accounts but rather to do things requiring secrets, like call the database.
As such the actual meaningful structures are things like SQL clients, transactions, JSON decoders, situation specific POCOs and secrets.