~/talk

Groovy and Grails Puzzlers - As usual - Traps, Pitfalls, and End Cases

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

Rapid-fire Groovy gotchas with concrete outputs and fixes: live examples on Groovy 2.3.6, behavior in the Groovy Console and Intelli, and when @CompileStatic forces compile-time failures. Demos show unary minus precedence producing -3, char '9' converting to 57 (char code) affecting max(), ranges of doubles using iterator so 1..10 does not contain 5.6, map keys keep literal types, and returns inside closures versus methods causing unexpected true/null. Two language bugs are filed during the session.

AI-written summary · about

  1. 0:00Introduction to puzzlers
  2. 4:20Iteration and collection
  3. 8:45Operator precedence
  4. 15:18Max value calculation
  5. 18:50Primitive types in Groovy
  6. 23:15Delegation and imports
  7. 28:25Closure scoping
  8. 32:25Mixin and class properties
  9. 38:05Exception handling traps
  10. 44:15Public traits and fields
  11. 47:54Range and collection logic
  12. 53:12Literal types in maps
  13. 59:45Type casting and static
  14. 1:03:53Operator overloading
  15. 1:07:52Array versus range syntax
  16. 1:11:00Closures and return behavior
  17. 1:15:22Static method missing
  18. 1:19:12Identifier and property rules
  19. 1:23:20Final conclusions
~/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.