このページは https://speakerdeck.com/solnic/blending-functional-and-oo-programming-in-ruby の内容を掲載しています。
Functional programming is being revitalized thanks to languages like Clojure, Haskell and Elixir....
Functional programming is being revitalized thanks to languages like Clojure, Haskell and Elixir. Even though Ruby is an object-oriented language there are many beautiful concepts in functional programming that we can borrow and successfully apply in our Ruby code.
In this talk I’ll show you how I mix FP with OO. I’ll introduce you to functional objects, explain the beauty of Proc-like behavior, the power of call method and explain why immutability matters.