~/talk

Functional Patterns in Ruby

Talkat RailsConf 2023 · 2023-04-24..04-26· [ruby]
slides:none on file

Claims concrete Ruby implementations of three OCaml ideas and shows they work: a funter module that uses Module.new proxy and dynamic method defs to supply per-include parameters without polluting class state, a variant.create and match exhaustiveness pattern (class.new for variants, runtime errors for unhandled or unnecessary cases), and an Option/Maybe monad with return and bind that composes operations and stops on the first none value. Code examples use Module.new, class.new, and match-based checks and demonstrate the patterns functioning as intended.

AI-written summary · about

  1. 0:00Introduction
  2. 3:49Why functional patterns matter
  3. 12:57Functors in OCaml and Ruby
  4. 22:08Variance patterns in Ruby
  5. 31:17Monads and use cases
  6. 39:42Closing thoughts and takeaways
~/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.