Value Object vs Data Transfer Object
· 1 min read
One of the main goals of design patterns is to have a names dictionary shared among professionals.
This dictionary, sometimes, has some trouble.
It’s the case of two well known design patterns: Value Object and Data Transfer Object.
Value Object, according to Martin Fowler, is defined as:
“A small simple object, like money or a date range, whose equality isn’t based on identity.