Groovy, Java, and Kotlin
summary
Compares functional capabilities of Java, Groovy, and Kotlin with live demos and code on github.com/kousen/java_groovy_kotlin, claiming Groovy closures offer the richest toolbox (memoize, curry, right-shift composition, metaprogramming), Java provides stable streams and method references with lazy processing (prime checker example) and Kotlin supplies modern ergonomics (top-level functions, Kotlin sequences for lazy pipelines, tailrec/fold vs reduce) and interoperates on the JVM. Builds: geocoding and Yoda-translation clients (work), a Flickr cat GUI (images failed intermittently), Fibonacci sequence generator (works).
AI-written summary · about
chapters (22)
- 0:00Start
- 1:18Contact Information
- 2:54Lambda Expressions
- 4:18Kotlin Lambdas
- 7:27Intellij
- 8:53Prime Number Checker Done from a Stream
- 10:57Spock Test
- 15:00Groovy 3
- 18:55Top Level Functions
- 22:02Lazy Streams
- 25:02Convert to a Sequence
- 25:59Sequence Generator
- 26:40Fibonacci Number Generator
- 30:50Example in Groovy
- 31:35Java Approach to Sorting
- 32:15Groovy Sorting
- 33:59Kotlin Data Classes
- 34:56Copy Constructor
- 37:25Java Pojo
- 44:23Curie Method
- 45:36Metaprogramming
- 55:15Daylight Savings Time Mechanism
related talks
43mFunctional Programming in Java, Groovy, and Kotlin
01h 02mFunctional Programming in Java, Groovy, and Kotlin
52mGroovy vs. Kotlin – comparing the JVM languages
01h 27mGroovy, in the light of Java 8
37mEffective Java with Groovy & Kotlin
27mWhy Kotlin is my favourite example of Functional Programming?
01h 01mPolyglot Programming in the JVM
53mA Dozen Cool Things We Can Do With Popular JVM Languages
