by jonathanpglick · 1y ago · 0 comments
Too many of us jump straight to modeling the domain objects as database tables without formalizing the the data model of the actual business need. Explicit state changes and considering "time" are way more important than database layout at that point.
And please either use operation explicit types and/or finite state machines when modeling the main domain objects.
My last three jobs started with untangling a bunch of "status" fields into explicit and hierarchical structures so that the whole company could agree and define what each of them actually meant. Common language, yo! It's the secret sauce!
Could you elaborate some more?