~/talk

The Enumerable Module or How I fell in Love with Ruby

Talkat Cascadia Ruby 2011 · 2011-07-29..07-30· [ruby]
links:none on file
slides:none on file

Shows exactly what Enumerable delivers: include it and defining each gives you dozens of methods for free, demonstrates with a PlanetExpress example, and explains precise behaviors like group_by returns a hash keyed by the block result and grep uses === so it matches classes and regexes. Covers Enumerator creation, its internal state and use as a generator, lazy slicing to avoid intermediate arrays and reduce memory, and why Set leverages Hash keys for uniqueness, with small benchmarks and toy implementations to prove it.

AI-written summary · about

  1. 0:00Intro
  2. 1:18Haris Amin
  3. 3:46The Interval Module
  4. 4:01Office shenanigans
  5. 4:58Where did I come from
  6. 6:00Where I am now
  7. 8:16Forged Apples
  8. 9:18Enumerable Classes
  9. 9:42Example Planet Express
  10. 11:53Programming Happiness
  11. 12:33Enumerable Methods
  12. 12:56Each
  13. 13:36Find one record
  14. 16:38grep
  15. 17:43zoidberg
  16. 18:09nappin
  17. 19:02the enumerator
  18. 19:13common practices
  19. 19:52first method
  20. 20:22second method
  21. 21:28Why do we care
  22. 22:45Granitic Decorations
  23. 23:32Math
  24. 24:02Lazy slicing
  25. 25:17Index
  26. 26:35Class
  27. 26:46Code Example
  28. 27:11Hashes
  29. 29:20Book Recommendation
~/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.