Whether modeling cards in a game or shares in a corporation, sometimes you need to create objects which must exist only in a single collection at a time. In this concluding episode of a two-part series, we'll introduce a new solution to the modeling problem posed in Part 1. You'll see how the choice of whether to model a domain concept as an immutable value object needs to take into account not just the concept's intrinsic properties, but also the context that it exists within.
This page is just for members. Sign in or subscribe to gain access!