~/talk

Functional Programming in Ruby

Talkat Functional Conf 2014 · 2014-10-09..10-11· [ruby]
slides:none on file

Shows concrete Ruby patterns: use lambdas as lambdas as local methods to keep helpers out of the class API (example drops instance methods from 5 to 3 and interactions from 20 to 6), use lambdas in RSpec with raise_error, run network fetches in parallel by passing fetch lambdas to a thread runner, build a chunking buffer that accepts a fetcher and fetch notifier, implement currying/partial application for multipliers, warn that creating many lambdas (≈100,000) costs time, contrast proc vs lambda return and arity behavior, and ships a working trick_bag gem with a collection accessor.

AI-written summary · about

  1. 0:00Start
  2. 15:23Lambdas are Closures
  3. 16:09Lambda Bindings
  4. 17:25Lambda Locals
  5. 18:11A Collection Accessor Lambda
  6. 24:03Eliminating Duplication
  7. 24:37Partial Application
  8. 25:42Currying
  9. 34:07Transform Chains
~/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.