Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For me domain model means capturing as much information about the domain you are modeling in the types and data structures you use. Most of the time that ends up meaning use Unions to make illegal states unrepresentable. For example, I have not seen a database native approach to saving union types to databases. In that case using another domain layer becomes mandatory.

For context: https://fsharpforfunandprofit.com/posts/designing-with-types...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: