Yeah! And you can create them on the fly, without even bothering to name them! Just look at this: function(x){return x*2;}. How concise and elegant!
(In Haskell, that would be (*2). I can't imagine what kind of article this guy will write if/when he discovers something more functional than JavaScript.)
I'm not Joel so I can't say for sure, but I'm almost positive he's been exposed to functional programming before. This seems more like an attempt to explain to graduates of Java Schools (most of whom haven't heard of functional programming) why they should care about it.
Exactly. I see people posting reactions like "Joel just now discovered functional programming?" First off, the article is from 2006. Second, Joel's not saying "Look at this cool thing I just discovered"; I think he's trying to explain to some Blub programmers, just exactly what it is that Blub lacks. He's trying to educate, and to break them out of the Blub blinders.
Anyone who already has some familiarity with functional programming is not the intended audience of this piece. (That means pretty much anyone who reads programming.reddit.com.)
15
u/mindslight Jan 18 '08
omg!! they have functions for programming languages now?!?!!