A Dozen Cool Things We Can Do With Popular JVM Languages
summary
Shows a dozen concrete tricks across Java, Scala, Groovy and Kotlin: file reads using Groovy’s new File(...).text and Kotlin’s readText, running shells with "git".execute().text in Groovy, implementing an AutoCloseable use(Consumer<Resource>) execute‑around helper in Java to guarantee cleanup, Scala traits for stackable mixins, Collector.joining for comma lists, Scala lazy vals to avoid duplicate work, Kotlin smart‑casting/pattern matching, Groovy MarkupBuilder XML DSL, tail‑call optimization in Scala, and Kotlin extension/infix functions.
AI-written summary · about
chapters (14)
- 0:00Introduction to JVM languages
- 1:29Reading files in Groovy Scala Kotlin
- 5:00Interacting with external processes
- 9:16Execute around method pattern
- 23:00Traits and stackability in Scala
- 25:49Joining values in a string
- 29:41Lazy evaluation in Scala
- 34:21Argument matching in Kotlin
- 37:53Smart casting in Java
- 41:48Creating XML with Groovy
- 46:03Tail call optimization in Scala
- 49:16Extension functions in Kotlin
- 50:39Infix notation for fluent syntax
- 52:06Summary and closing
related talks
49mA 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
58mGroovy, Java, and Kotlin
53mRefactor your language knowledge portfolio - we are what we can code in
01h 12mThe Power of JVM Language
44m5 JVM languages in 50 minutes
01h 01mPolyglot Programming in the JVM
