Groovy for Java developers
summary
Groovy compiles to JVM bytecode and runs with the Groovy jar and Groovy JDK; demos show the Groovy Console, gvm, and the web console used for live code. Examples include mapping 0..9 to powers of two with a one‑line collect versus a Java loop, a text analyzer that counts chars/words and emits XML via MarkupBuilder, pulling Maven deps with @Grab to use groovy-wslite and JsonBuilder, embedding scripts via GroovyShell to run a trades.groovy DSL, and microbenchmarks where Java sorts 10k in ~46ms, Groovy 143ms, and @CompileStatic ~16ms (1M: Java ~200ms, Groovy ~2s, @CompileStatic ~200ms).
AI-written summary · about
chapters (10)
- 0:00Introduction
- 1:44Background and setup
- 3:36Tooling and installation
- 6:37Groovy language basics
- 16:04Scripting with Groovy
- 27:10Using libraries and REST
- 34:30Testing with Spock
- 1:00:14Runtime script integration
- 1:06:21Performance and compilation
- 1:18:51Conclusion
related talks
50m10 Ways to be a More Productive Java Developer
41mModern Java for the Masses! Is Java Still Relevant
53mRefactor your language knowledge portfolio - we are what we can code in
43mLearning modern Java the playful way
26mStaying ahead of the curve
50mUnlocking Java's Code Maze
02h 19mStudents' Day
46mBeing a Developer: Growing and Developing
