Archive for November, 2016

BuildStuff 2016: Single Value Objects in .NET – Using structs to build custom scalars a Domain-Driven way

Monday, November 21st, 2016

Today I was one of the speakers during the BuildStuff 2016 Kiev conference. The site announced my talk with the following introduction:

This talk focuses on how to make Single Value Objects. Value objects that represent just a single scalar/primitive type using value types/structures as provided by the .NET platform.

Value Objects are essential to Domain-Driven Design, and help to make richer, type safe models. Modelling Single Value Objects as explained during this talk, will make your live easier, because of its lightweightness, and because of its re-usability characteristics (i.e. the behaviour for an IBAN, email address, etc. is unlikely to be different in different domains). It can be widely (re)used both within and outside a Domain-Driven context.

We will deep-dive into how to create a structure in .NET that fulfils these needs, like JSON and XML serialization, parsing, formatting, etc.

I hope my message came across. For those who missed it, or want to view the powerpoint. It can be downloaded here: www.corniel.nl/download

The (prepared) code snippets can be found at my Github repository:
github.com/Corniel/HelloWorld/HelloWorld/Buildstuff2016

The Open (Single Value Object) Source library Qowaiv can be found both on github and NuGet.

If you have any comments, feel free to reply.