Getting Groovy (in 5 minutes)!
Adam L. Davis
MS CS, Geogia Tech
Author of “Learning Groovy”
(& What’s New in Java 8 & Modern Java)
github.com/adamldavis
adamldavis.com
@adamldavis
Java ~ Brian Goetz (Java Language Architect)
Groovy
<Insert your
hated language
here>
PHP
groovy-lang.org
sdkman.io
● Dynamic or Static
● (@CompileStatic @TypeChecked)
● As fast as Java (with static & indy)
● Meta-programming
● Optional semi-colons
● Optional parentheses
● Short-hand for Lists and Maps
● Automatic getters and setters
● A better switch
…
Groovy 2.4 Features
● Closures
● Currying
● Method references
● Map/Filter/Reduce as collect, findAll, inject
● Internal iterating using each
● Operator Overloading (+ - * % / …)
● methodMissing and propertyMissing
● AST Transformations
● Traits
…
Groovy Features
Spock
Grails
Gradle grooscript
groocss.org @groocss
Thanks!
Adam L. Davis
Author of “Learning Groovy”
github.com/adamldavis
adamldavis.com
@adamldavis
@groocss

Getting Groovy