Functional Refactoring in JavaScript

And now look at your code in 2 years time and try to figure out what the intent was.

Functional programming is often seen as an art, but used in the wrong hands it leads to unreadable gibberish which then performs rather poorly as most CPU’s are not really functional either.

Functional programming can help, but as usual its not a panacea.