Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Creating Kotlin DSLs on Android

Creating Kotlin DSLs on Android

In this talk we will learn to create our own DSL in Kotlin, we will see examples and we will combine them with extension functions to achieve a more readable code, easy to extend and modify.

Jorge Garrido

May 02, 2018
Tweet

More Decks by Jorge Garrido

Other Decks in Programming

Transcript

  1. #BADGkotlinDSL But first, what is a DSL? A domain-specific language

    (DSL) is a computer language specialized to a particular application domain. This is in contrast to a general-purpose language (GPL), which is broadly applicable across domains.
  2. #BADGkotlinDSL Thanks! and special thanks to Bernat Borrás and Carlos

    Carrasco who collaborated in the creation of some of the DSLs shown Useful resources: - Sample repo for this talk https://github.com/FireZenk/ComicWorld - Anko https://github.com/Kotlin/anko - kotlinx.html https://github.com/Kotlin/kotlinx.html - Village DSL https://github.com/zsmb13/VillageDSL - Want more? https://kotlin.link @firezenk