~/talk

Groovy for Java developers

Talkat SpringOne2GX 2014 · 2014-09-08..09-11· [career-development]
links:none on file
slides:none on file

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

  1. 0:00Introduction
  2. 1:44Background and setup
  3. 3:36Tooling and installation
  4. 6:37Groovy language basics
  5. 16:04Scripting with Groovy
  6. 27:10Using libraries and REST
  7. 34:30Testing with Spock
  8. 1:00:14Runtime script integration
  9. 1:06:21Performance and compilation
  10. 1:18:51Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.