Skip to main content

Highly Functional Programming in Perl

Eric Wilhelm (Cisco, Inc.)
Perl
E145
Average rating: ***..
(3.75, 8 ratings)

Functional programming is very pure and elegant when nothing can change, and the computer can reason about your code for you — in theory. Reality is messier, but Perl and other high-level languages support pure functions as a subset of the procedural and OO paradigms, so why don’t we use them more? Functional techniques are good problem solving tools, useful for event-driven programs, and can be mixed into traditional OO and procedural codebases for better code reuse and testability.

In this talk, we’ll look at some benefits of purely functional programming from a pragmatic and procedural viewpoint. There will be absolutely no mention of monads because we will just ride our lambdas through the mud and get it done. We’ll see how good programming practices tend to suggest stateless and functional approaches. We’ll examine techniques for refactoring which separate functions from state changes and allow you to better test and reason about your code. Finally, we’ll look at language interpreters and discuss how technology might be able to help get even more benefits out of highly functional programming approaches.

Photo of Eric Wilhelm

Eric Wilhelm

Cisco, Inc.

Eric Wilhelm is a programmer at Cisco, Inc. He is a father of two, former leader of the Portland Perl Mongers, author of many CPAN modules, and a contributor to several open source projects. He has spoken numerous times at OSCON and local user groups.

Comments on this page are now closed.

Comments

Henry Torres
07/24/2014 8:29am PDT

what’s the link for the slides?