Make Ruby Functional Again!
summary
Argues Ruby must shift toward functional style to use many cores as Moore’s Law stalls (clock speeds plateaued around 2004 and multi‑core has dominated ~12 years). Refactors an NFL API CLI into small method objects that respond_to :call, replaces hidden base-class state with a lambda fetcher, and turns metadata mutators into pure functions that return frozen hashes. Result is easier testing, safer concurrency and composability; the approach reduces mystery‑guest coupling and groups side effects at the application boundary.
AI-written summary · about
chapters (7)
- 0:00Introduction and humor
- 3:24Moore's law and Ruby's problem
- 10:27Refactoring the NFL API wrapper
- 17:14Method objects and purity
- 20:51Pure functions in Ruby
- 26:10Key takeaways and future
- 31:39Q&A and closing
related talks
44mFunctional Programming for Rubyists
33mBetter Ruby through Functional Programming
26mBlending Functional and OO Programming in Ruby
24mFunctional programming for fun and profit!!
42mTaking inspiration from the functional world
32mruby best practice patterns
35mThe Functional Rubyist
37mFunctional Programming in Ruby
