3 ms·
I also don't quite see how a "value object" would helped (or much differed) there?
by ralfd 14y ago
I also don't quite see how a "value object" would helped (or much differed) there?
- swanson 14y agoThe main "win" would be to keep the logic for converting between units within the Carbs class. Otherwise every screen in the app is going to have to know that the integer value needs to be converted before displaying it.
- cpeterso 14y agoValue objects are strongly (and semantically) typed.