~/talk

Groovy, in the light of Java 8

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

Groovy claims that Java 8 is complementary, not redundant: Groovy closures coerce to functional interfaces (and even abstract classes) so existing code can call Java 8 streams, while Groovy keeps features Java lacks — default parameters, memoize, trampoline tail recursion, duck-typed polymorphism, and richer builders. The talk demos using the JDK stream API, Date/Time, Nashorn and a Groovy-to-JS transpiler, notes gaps (method reference syntax, annotations on types) and proposes enhancements like builders remain far more concise and optional can use Elvis and safe navigation for nicer null handling.

AI-written summary · about

  1. 0:00Start
  2. 1:52A recurring question...
  3. 3:53What about redundancy?
  4. 5:43What we're going to talk about
  5. 6:47What's new in Java 8?
  6. 7:25New Java 8 syntax constructs
  7. 8:21Lambda expressions
  8. 13:58The various lambda syntaxes One parameter: no parens
  9. 15:23Closures vs lambdas
  10. 17:47Beyond: Closure default parameters
  11. 18:35Beyond: Duck typing polymorphism
  12. 23:07Neater Groovy builder!
  13. 23:30Arenit Groovy builders more readable and lean?
  14. 23:54Closure and method memoization
  15. 25:24Closure and method tail recursion
  16. 28:15Method references — 3 main cases
  17. 28:49Groovy's method closure
  18. 32:08Static methods in interfaces
  19. 34:19Default methods in interfaces
  20. 36:01Groovy Traits
  21. 37:23Simple trait
  22. 37:58Trait with state
  23. 38:29Multiple inheritance
  24. 39:11To know all about traits!
  25. 39:56Repeating annotations
  26. 42:18Annotations on types
  27. 44:40Groovy compile-time meta-annotations
  28. 47:30Date/Time API
  29. 50:34Groovy's functional style with the GDK methods
  30. 52:43Wrap something that can be potentially null
  31. 54:12Groovy truth, null handling, Elvis with Optional
  32. 56:32Call JavaScript from Groovy with JSR-223
~/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.