by Jason Harris | Value Objects
When learning software development it’s highly probable you learned to leverage built-in programming language value types (e.g GUID, string, int, bool, decimal, etc) to pass around data within your business domain model. This is common practice, but we can...
by Jason Harris | Value Objects
You’re not limited to using Value Objects as entity property types. They have a lot of valuable uses as method return values. In fact you can increase your software suppleness by using Value Objects as method return types. The purpose of the class doesn’t...
by Jason Harris | Value Objects
One of the questions I’m occasionally asked is how should null value object properties be handled? For clarification, the usual reason that warrants this question is because a domain entity property is optional and its type is a Value Object. The principles of...
by Jason Harris | Value Objects
This article reviews some of the different Identity Value Object Types and is an addition to Identity Value Objects. We’re going to go over abstract implementations for some common ones. Note: If you’re not familiar with the basic concept of Value Objects...
by Jason Harris | Value Objects
Today I want to talk about an idea that brings a paradigm shift to the way you identify domain entities. How do you feel about using Identity Value Objects for entity ID types in your domain? If you have two entities, say Company and Product you’d have two...
by Jason Harris | Value Objects
Today I’d like to talk about Value Objects vs Primitives and when you’d want to use a Value Object over a Primitive. The longer you apply DDD to your software the better you become at spotting when to use one over the other. So far my personal experience...