Reducing Enumerable - An Illustrated Adventure
summary
Reimplements Enumerable methods by showing actual reduce code that builds arrays and hashes rather than abstract promises, illustrating reimplement map/select/find via reduce with push, conditional push, and breaking early, and demonstrating tally_by implemented with hash accumulator for counting; compares mutating shortcuts versus pure functional folds, notes Ruby 2.4+ sum and Ruby 2.7 tally and when to prefer built-ins when available, and shows the examples actually run in slides.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 0:28Who is Brandon Weaver
- 1:28What is Reducing
- 4:58The Adventure
- 7:10How Map Works
- 9:37The Cat
- 11:43Select
- 12:18Push
- 16:13Find Function
- 16:43Reduce Function
- 18:40Land of Enumerable
- 20:13Tally
- 20:51Reducing into a hash
- 23:22Reducing unnecessary functions
- 26:14Conclusion








