January 2020
Intermediate to advanced
288 pages
6h 45m
English
This chapter covers
As you’ve learned in the previous chapters, services should be designed to be immutable. This means that once a service object has been created, it can never be modified. The biggest advantage is that its behavior will be predictable, and it can be reused to perform the same task using different input.
So we know that services should be immutable objects, but what about the other types of objects: entities, value objects, and data transfer objects?