Stone Soup Software
4 min readJun 9, 2021
The many faces of interfaces
I am exploring some high-leverage places for using code generation. In particular type interfaces the many implementations we need to build before we can begin coding a solution.
I start by defining the interface. Clean simple but it doesn’t do anything. It just tells you what it can provide. Properties of resource objects should be read-only on the interface.
interface Actor {
val actorId: Int val firstName: String val lastName: String