Domain Model Design Enhancement with Rich Types and Static Analysis in Kotlin
Introduction
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...
vicdefran.hashnode.dev4 min read