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








