A value object is a small object that represents a simple entity whose equality is not based on identity: i.e. two value objects are equal when they have the same value, not necessarily being the same object.

wiki

When you’re coding something, no matter it’s your own small side-project or the day-to-day complex corporate work, you’re working around some kind of “domain”. And there’re many domain entities that you want to put them into your code and probably also database tables for persistence.

For example, if you work at Uber, you may have an entity called Passenger, including a…

Leo Wu

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store