Functional Programming is a programming paradigm … that treats computation as the evaluation of mathematical functions and avoids changing-state and mutable data. It is a declarative programming paradigm, … programming is done with expressions or declarations instead of statements.
In functional code, the output value of a function depends only on the arguments that are passed to the function; calling a function f twice with the same value for an argument x produces the same result f(x) each time [because there is no mutable state]
Tag: functional programming

Episode #617
Function Pipelining in Ruby
Have you ever looked at function "pipelines" in FP languages like Elixir and F# and wished Ruby had them? Let's explore the equivalents Ruby provides out-of-box, or with a little …

Episode #603
Function Composition Operators
Ruby's support for functional programming has expanded and matured. Join guest chef Devon Estes and learn to use some features added in Ruby 2.6 to quickly and concisely compose functions …

Episode #596
Partial Function Application
If you've ever read about functional programming, you might have run across the concept of "currying". But what is currying, exactly, and how does it help us? Join guest chef …

Episode #558
yield_self
Discover how to use Ruby's `yield_self`/`then` method to organize methods into neat pipelines of operations! Join guest chef Nithin Bekal for an educational and satisfying refactoring sequence.

Episode #440: Detect Map
A tricky little functional programming puzzle, with an elegant solution.

Episode #363: Safe Navigation Part 3: Everything is Optional
Applying an approach inspired by functional programming languages to the problem of safe navigation.

Episode #280: Itself
Today's episode covers a new Ruby 2.2 feature which is more useful than it may at first appear to be.

Episode #270: Referential Transparency
In this episode we'll discover a particularly insidious side effect of implicit global I/O dependencies.