Every API you create is, in fact, a domain-specific language for your business domain.
Kotlin is a general purpose programming language, but it offers some constructs, that make creation and usage of embedded DSLs effortless and fun. DSL makes your code expressive and easy to read.
In this talk, I'll show those language features and guide you through a process of creation of an internal mini language.

Comments

Comments are closed.

I really love kotlin because I see it as where the evolution of Java should have gone. The talk has very pleasant and have presented all the quirks of creating a DSL in kotlin.

A suggestion for a costless improvement to the presentation is that at the very end after creating a service for the calendar, Victor could have imported the url of the service in a calendar application in order to show the advent events he created. This could have added a more tangible output of the big refactoring work adding satisfaction to the audience.