Why write code the compiler can generate for us ? Following this motto, we, as scala developers, tend to derive a lot of things from our model definition. But what happen when we have to keep our API backward compatible while upgrading our domain model. While coupling models is inconvenient, decoupling them leads to a lot of boilerplate. In this talk, we’ll see that, by using the same techniques which allow us to automatically generate our typeclasses, we can also scrap the boilerplate when going from one model to another.
In this session, expect to hear about:
— Recursion and pattern matching
— HList and LabelledGenerics
— Automatic Derivation of typeclasses
— Automatic Derivation of case class transformers