Intermediary formats between an API and a client are powerful tools. Intermediaries can be used to create documentation, contracts, test fixtures, and can even generate code. Kotlin’s unique ability to create elegant, expressive DSLs offers us a new opportunity to reimagine this useful technique.
In this talk we’ll learn to build a Kotlin DSL that defines an intermediary between a REST API, Android, iOS, and more. We’ll look at how the DSL becomes a common vocabulary that translates platform idiosyncrasies and a contract to keep our platforms on speaking terms.
We'll use Kotlin as a templating language to generate Moshi models, Retrofit endpoints, and more. What does connecting a Figma or Sketch file look like? What about Jetpack Compose? Let’s dream big and then write a DSL for it.
Slides:
https://drive.google.com/open?id=1jN6...