r/coffeescript • u/elclanrs • May 13 '14
Functional CoffeeScript for the impatient
http://cedricruiz.me/blog/functional-coffeescript-for-the-impatient/
15
Upvotes
r/coffeescript • u/elclanrs • May 13 '14
View all comments
Show parent comment
1
u/elclanrs May 14 '14 edited May 14 '14
It just takes some time to get used to it I suppose, but it can of course be used in real world applications. Here's a mini jQuery in a few lines using those helpers and techniques:
Here's a demo: http://jsbin.com/wokeb/1/edit
The beauty of this approach is that you can keep making functions by currying or partially applying other functions, so you get an increase in code re-use while getting more specific in your abstractions. You start very generic, and end up composing functions out of very simple blocks, it's like Legos.