~/talk

Reducing Enumerable - An Illustrated Adventure

Talkat Ruby Hack 2019 · 2019-04-04..04-05· [ruby]
slides:none on file

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

  1. 0:00Introduction
  2. 0:28Who is Brandon Weaver
  3. 1:28What is Reducing
  4. 4:58The Adventure
  5. 7:10How Map Works
  6. 9:37The Cat
  7. 11:43Select
  8. 12:18Push
  9. 16:13Find Function
  10. 16:43Reduce Function
  11. 18:40Land of Enumerable
  12. 20:13Tally
  13. 20:51Reducing into a hash
  14. 23:22Reducing unnecessary functions
  15. 26:14Conclusion
~/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.