Functional Programming in Ruby
summary
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
chapters (9)
- 0:00Start
- 15:23Lambdas are Closures
- 16:09Lambda Bindings
- 17:25Lambda Locals
- 18:11A Collection Accessor Lambda
- 24:03Eliminating Duplication
- 24:37Partial Application
- 25:42Currying
- 34:07Transform Chains








