(Video included as last slide. Also available at https://www.youtube.com/watch?v=ogjOKlXHi08) What are the basic blocks of which you build a domain? It is probably not integers, strings, and floats. Instead it might be things such as “room number,” “track,” or “time slot.” They might be simple, they might be complex, but they are the simplest things that still makes sense in your domain - these are your domain primitives. Obviously, value objects are a feasible way of implementing many domain primitives. But certainly not all value objects are primitives. In this session, we’ll dive into what domain primitives are and how they enable solutions that make your code secure by design. In addition, we’ll show how domain primitives in combination with context mapping gives a powerful way to clean up legacy code. We cover some concrete patterns that you can start using immediately. This presentation is partly based on material from upcoming book Secure by Design by Dan Bergh Johnsson, Daniel Deogun, and Daniel Sawano.