Monthly Archives: July 2014

Value Objects in Java & Python

So far I’ve posted a Software Developer’s Reading List and Why & How I Write Java. After all that high-level jabbering it’s time for something concrete with actual code. This article discusses value objects: what they are, how to implement them, and when to use them.

I think object-oriented languages should have value objects built-in, like structs in C# (with caveats). Unfortunately they aren’t built into Python or Java (yet). However we can implement value objects on our own, and this article includes small libraries to make it easy for Java and Python.

Article outline

  1. What are value objects?
  2. How to implement value objects?
  3. When to use value objects?
  4. Java library usage
  5. Python library usage

Continue reading