A Dozen Cool Things We Can Do With Popular JVM Languages
summary
Twelve concrete tricks across Java, Scala, Groovy and Kotlin: quick file reads via Groovy .text and Kotlin readText or Scala Source.fromFile.mkString, launching OS commands with String.execute (Groovy) which cut 150–200 lines to ~50–75, an explicit Resource.use pattern (lambda + try/finally) for execute‑around, Scala traits for stackable mixins, Collectors.joining, Kotlin lazy evaluation and pattern matching with smart casting, DSL XML generation with Groovy MarkupBuilder, tail‑call optimization notes, extension and infix functions for fluent APIs.
AI-written summary · about
chapters (9)
- 0:00Start
- 2:55Accessing a File
- 4:31Kotlin
- 11:03The Execute around Method Pattern
- 11:51The Execute around the Method Pattern
- 32:24Pattern Matching Syntax
- 34:45Auto Casting
- 37:18Generate an Xml Document
- 40:51Tail Call Optimization
related talks
53mA Dozen Cool Things We Can Do With Popular JVM Languages
51mA Dozen Cool Things You can Do with JVM Languages
43mFunctional Programming in Java, Groovy, and Kotlin
01h 12mThe Power of JVM Language
53mRefactor your language knowledge portfolio - we are what we can code in
58mGroovy, Java, and Kotlin
01h 01mPolyglot Programming in the JVM
44m5 JVM languages in 50 minutes
