Skip to content

Today's Card

Software engineering and other thoughts.

Tag Archives: value object

Don’t use primitives to represent domain ideas.

Use Value Objects instead.

Posted byfooyayOctober 20, 2022October 11, 2022Posted inUncategorizedTags:value objectLeave a comment on Don’t use primitives to represent domain ideas.

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.
Today's Card, Create a website or blog at WordPress.com
  • Subscribe Subscribed
    • Today's Card
    • Join 40 other subscribers
    • Already have a WordPress.com account? Log in now.
    • Today's Card
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar