~/talk

The Audacious Array

Talkat RubyConf 2021 · 2021-11-08..11-10· [ruby]
slides:none on file

Claim: Ruby arrays serve as randomizer/sample(n), 2D map via transpose.reverse/rotate, stack/queue via push/pop/unshift/shift, and as set-like containers with uniq, &, |, - and tally. Tools actually used: shuffle, sample, sort_by/max_by, Enumerable methods (each, map, inject/reduce, sum), bsearch/bsearch_index, and transpose + map. Surprise: unshift benchmarks match push thanks to Arrays Q added in Ruby 2 (2013). Built: a playable Catwalk game (GitHub am kaplan catwalk) that generates maps, rotates on turns, applies cyclones, tracks temporary items, and works.

AI-written summary · about

  1. 0:00Start
  2. 6:07] #= "adding and removing elements"
  3. 13:16] #= "order and randomness"
  4. 22:14] #= "The Second Dimension"
  5. 28:22] #= "Arrays as Sets"
  6. 31:40] #= "CatWalk"
~/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.