January 2018
Beginner to intermediate
312 pages
7h 22m
English
In the previous chapter, we looked at the basics of domain modeling using the F# type system. We built up a rich set of types that represented the domain but were also compilable and could be used to guide the implementation.
Since we’ve gone to this trouble to model the domain properly, we should take some precautions to make sure that any data in this domain is valid and consistent. The goal is to create a bounded context that always contains data we can trust as distinct from the untrusted outside world. If we can be sure that all data values are always valid, the implementation can stay clean and we can avoid having to do defensive coding.
In this chapter, we’ll look at modeling two aspects ...
Read now
Unlock full access