Side-effects are not your friend - Ryan Lemmer

Functional Programming is more than a set of language features. It's a style of thinking, a way of doing things. Ruby gives us access to some aspects of the Functional style through lambdas, blocks, procs, and array iterators. But the most profound way in which Functional thinking can change your Ruby day comes down to a core issue of Functional Programming: "side-effects". Ruby places no restriction on leaving side-effects - it comes down to the choice (and then discipline) of the Rubyist to refrain from doing so. Side-effect-free code is more easily testable, and more predictable than side-effect-ridden code. In this talk I'll show you some of the many ways in which side-effects cause you pain and suffering, and techniques and strategies of leaving less of them in your wake.
Length: 31:26
Views 588 Likes: 1
Recorded on 2013-02-07 at Rubyfuza
Look for other videos at Rubyfuza.
Tweet this video