~/talk

Groovy Puzzlers

Talkat Joker 2014 · 2014-10-20..10-21· [testing]
links:none on file
links:none on file
slides:none on file

A rapid-fire set of actual Groovy gotchas: operator precedence makes a call on -3 invoke a method that returns void then NPEs, postfix ++/-- on boxed Integers fails at runtime, max(...) can return the first element when a comparator returns null, and map indexing often uses GString vs String keys so lookups silently miss. Demos run in the Groovy console and are verified on Groovy 2.3.7, with fixes and hints shown using IntelliJ inspections and simple parenthesis or explicit casts.

AI-written summary · about

  1. 0:00Introduction to Groovy Puzzlers
  2. 1:09Rules and setup for the puzzles
  3. 2:21First puzzle: Minus operator behavior
  4. 4:51Fixing the first puzzle
  5. 8:42Second puzzle: Prime number check
  6. 12:52Fixing the prime number check
  7. 13:12Third puzzle: Class iteration
  8. 16:26Fourth puzzle: Custom max method
  9. 20:10Fifth puzzle: Closure and exception
  10. 22:45Anonymous blocks in Groovy
  11. 24:12Sixth puzzle: Countdown logic
  12. 27:04Fixing the countdown puzzle
  13. 30:24Seventh puzzle: Default return values
  14. 34:19Eighth puzzle: Treasure map
  15. 36:27Fixing the treasure map puzzle
  16. 39:51Ninth puzzle: Range iteration
  17. 45:06Tenth puzzle: List with mixed types
  18. 48:58Fixing the mixed types puzzle
  19. 51:28Eleventh puzzle: Number properties
  20. 54:02Fixing the number properties puzzle
  21. 55:13Lessons and best practices
  22. 57:01Q&A and closing remarks
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.