Devoxx Greece 2025 - Kotlin DSL in under an hour
Speaker
About this talk
Learn how to create type-safe and statically typed DSLs in Kotlin. In this session, you will learn about the language features that make DSL creation possible: - Top-level extension functions and properties - Trailing lambda expressions as function parameters - SAM type conversion - Functional literals with receiver - Infix functions - Standard library scope functions - Context parameters Step by step, using the features above, I will convert Java code based on the builder pattern into an internal Kotlin DSL. The talk highlights the specific cases for using the DSL approach in Kotlin and the tradeoffs for introducing this programming technique into the projects.
More talks to watch
Kotlin - the new and noteworthyAnton Arhipov
Dockerfiles, Jib ..., what's the best way to run your Java code in Containers?Matthias Haeussle
How to survive as a developer in the exponential age of AI - KeynoteSander Hoogendoorn
Your frontend is ☠️ ⚠️ Let's measure its impact with CO2 jsKo Turk
Let’s use IntelliJ as a game engine, just because we canAlexander Chatzizacharias
Beyond the Prompt: Evaluating, Testing, and Securing LLM ApplicationsMete Atamel