~/talk

Reducing Enumerable - An Illustrated Adventure

Talkat RubyConf 2018 · 2018-11-28..11-30· [ruby]
slides:none on file

Claims that reduce can reimplement many Enumerable operations and then shows it: concrete code for map via reduce, select via reduce, find by breaking with a value, and tally_by into a Hash. Notes Ruby 2.4+ adds sum but reduce still composes when transforming, filtering, counting or early-returning. Provides tested examples in a repo, an illustrated slide deck (about 50 illustrations, ~140 slides, ~200 hours to make) and runnable snippets so the reimplementations actually work.

AI-written summary · about

  1. 0:00Start
  2. 1:31Social Networks
  3. 2:17How Reduce Works
  4. 7:57Master of Mapping
  5. 25:26Tally by Function
  6. 32:22Scavenger Hunt
~/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.