~/talk

Teaching Ruby to Count

Talkat RubyConf Mini 2022 · 2022-11-15..11-17· [ruby]

Shows concrete code: build a Month domain object and implement <=> and succ so Date ranges iterate by month, wrap chapter files in a CompositeFile that defines each and include Enumerable to get map/select/find, and return an Enumerator when no block so callers can choose traversal. Demonstrates Enumerator#next and #each, generating infinite series (random or cycle) and using take on infinite series to consume just what’s needed.

AI-written summary · about

  1. 0:00Start
  2. 8:29Range requirements
  3. 19:22Infinite series
  4. 27:01Writing delightful iterative code
~/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.