Data Transformations Using Functional Programming Techniques

Uploaded on Dec 03, 2007 / 250 views / 311 impressions / 1 comment

Description

Describes the basics of data transformations using functional programming techniques. Examples are all in Ruby, but the techniques are applicable across most languages which support functional constructs.

Tags

  • pipeline
  • functional programming
  • conversion
  • ruby

1 comment

1. WilliamShatner

Apr 04, 2009

Let me quote from the presentation -
"Oh, I got that wrong"
"Oh, I misspelled that"
"Oh, the syntax in Ruby is stupid. No wait, I got that wrong"

The meat of this presentation is parsing HTML with regular expressions in Ruby. What idiot does that?

require 'hpricot'
doc = Hpricot.parse("index.html")
(doc/:p/:a).each do |link|
p link.attributes
end

Post a comment

Allowed tags: <a> <b> <br> <u> <i>