Discovering Functional Treasure in Idiomatic Groovy
summary
Shows concrete Groovy patterns: closures-as-last-parameter, composing filters, and using immutable lists to eliminate shared mutation. Implements a recursive sum, composes left/right finders, caches a heavy URL parse and a CPU-bound function with memoized functions, and replaces deep recursion with trampoline tail-call optimization (Groovy 2.0 annotations used). Claims idiomatic Groovy yields simpler code and measurable wins via caching and BigInteger-safe math, and demonstrates working examples that avoid list mutation and improve performance.
AI-written summary · about
chapters (5)
- 0:00Start
- 21:01Towards Immutable Data
- 32:00Map Filter Reduce
- 39:09The Ultimate Lesson
- 40:01Functional Treasures
related talks
01h 02mFunctional Programming in Java, Groovy, and Kotlin
43mFunctional Programming in Java, Groovy, and Kotlin
51mFunctional Programming with Java
52mTreasure.map(): Functional Programming in JVM-based languages
51mHitchhiker's Guide to Functional Programming
54mLaziness, trampolines, monoids and other functional amenities
29mLet's get functional
36mHow functional programming change my Java code
