~/talk

The Epic Groovy Puzzlers S02: The Revenge of the Parentheses

Talkat JavaDay Kyiv 2015 · 2015-11-06..11-07· [java]
slides:none on file

A rapid demo of Groovy gotchas that shows exactly when code surprises: parentheses change whether interpolation produces a GString or a plain String and so change runtime behavior, list literals vs array literals copy or alias unexpectedly, using collect on an empty optional returns an empty list rather than throwing, and == can call equals or identity depending on types. Includes code snippets, reproduction steps, and fixes (add parentheses or explicit casts) with live examples that fail and then work. parentheses change GString vs String interpolation collect on empty returns empty list not NPE

AI-written summary · about

  1. 0:00Introduction
  2. 3:17Quiz rules and format
  3. 5:24Puzzle 1: Alphabet and parentheses
  4. 8:03Puzzle 2: Parentheses impact
  5. 9:32Puzzle 3: Variables and strings
  6. 10:16Puzzle 4: Variable mutation
  7. 12:53Puzzle 5: String templates
  8. 13:36Puzzle 6: Number 666
  9. 14:53Puzzle 7: Methods and extensions
  10. 16:28Puzzle 8: Unicode encoding
  11. 17:38Puzzle 9: Inheritance and constructors
  12. 18:44Puzzle 10: Answer options
  13. 20:11Puzzle 11: Groovy instructions
  14. 20:55Puzzle 12: Lists and strings
  15. 21:59Puzzle 13: Initialization
  16. 23:00Puzzle 14: Compile errors
  17. 24:02Puzzle 15: collect method
  18. 25:51Puzzle 16: Variables and loops
  19. 26:59Puzzle 17: Exceptions and types
  20. 28:26Puzzle 18: Chunk and modifications
  21. 30:16Puzzle 19: Cursors and checks
  22. 32:06Puzzle 20: Templates and errors
  23. 32:48Puzzle 21: assert method
  24. 33:58Puzzle 22: Comparison operators
  25. 35:25Conclusion
~/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.