Draw Me ... a DSL in Kotlin
summary
Kotlin can be used to build Domain Specific Languages (DSLs) to simplify APIs such as Gatling or Gradle. The talk explains which Kotlin language features enable writing DSLs easily and without magic, and demonstrates how to use them to create readable, domain-focused APIs.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 1:03What is a DSL
- 3:53Why Kotlin for a DSL
- 4:14Demo: Java graphics
- 5:18Simpler code with Kotlin
- 8:13Extensions and DSL functions
- 10:39Adding series and dynamic style
- 13:31Final result and conclusion
related talks
48mKotlin DSL - Let's Express Code in "mini-language"
48mCreating DSLs in Idiomatic Kotlin
34mCreating Small DSLs with Idiomatic Kotlin
44mKotlin DSL as a single source of truth for solving many tasks
34mCreating Small DSLs with Idiomatic Kotlin
40mKotlin DSLs in 42 minutes
30mKotlin DSLs
45mKotlin DSL in under an hour
