Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the evolution and modern techniques of building domain-specific languages (DSLs) in Apache Groovy in this 58-minute Devoxx conference talk. Discover why Groovy remains a top choice for DSL implementation on the JVM, and learn about the latest approaches used in popular technologies like Gradle, Spock, Grails, and Ratpack. Delve into topics such as runtime metaprogramming, builders, static compilation, and type checking extensions. Gain insights on improving DSL syntax, performance, and user experience, including IDE support and error reporting. Examine practical examples and best practices for creating idiomatic Groovy DSLs in 2016, covering aspects like abstraction layers, closures, delegates, and type inference. Whether you're a seasoned Groovy developer or new to DSL creation, this talk provides valuable knowledge to enhance your language design skills.
Syllabus
Introduction
Who am I
Why Groovy
Old looking DSLs
Groovy abstraction layer
Gradle
Other thoughts
Grace
Gradle DSL
Ratpack DSL
Market Template Engine
Closures
Bag
Collect
List
Declaration of delegate type
Removing ceremony
Compilation
Customization
Typechecking Extensions
How does it work
Type inference
Conclusion
Taught by
Devoxx