Corniel Nobel - Single Value Objects: where DDD and Functional Programming Share Forces

28:55 35 views 0% Published 2 months ago

Most developers have the habit of reusing primitives for everything. This phenomenon, known as primitive obsession, leads to unclear code and (API) contracts, and eventually to bugs.

By creating single value objects (value objects that are a subset of one primitive) we can overcome that, and by doing so, we apply the lessons learned from Domain-Driven Design and Functional programming.



Watch on YouTube