Domain Model Design Enhancement with Rich Types and Static Analysis in KotlinIntroduction Following an object oriented paradigm, when facing a new domain modelling need, usually the approach is to encapsulate elements having some kind of relationship together into a type. package com.myapp.domain data class Ad( val id: I...May 21, 2024 · 4 min readvicdefran.hashnode.dev