Skip to content

Today's Card

Software engineering and other thoughts.

Tag Archives: value object

Do not use doubles or floats for dollar amounts.

Fractions of a penny are not a real thing and lead to difficult bugs.

Posted byfooyayFebruary 5, 2021December 7, 2020Posted inUncategorizedTags:types, value objectLeave a comment on Do not use doubles or floats for dollar amounts.

Don’t use primitives to represent domain ideas.

Use Value Objects instead.

Posted byfooyayApril 15, 2020April 13, 2020Posted inUncategorizedTags:value objectLeave a comment on Don’t use primitives to represent domain ideas.
Today's Card, Blog at WordPress.com.