A talk on functional programming styles in JavaScript (inspired by the @fogus book) given at the 6/19/2013 BurlingtonJS meet-up.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
app.js
applicative-functions.js
get-shelf.js
higher-order.js
package.json
protocols.js

README.md

Functional JavaScript

A talk given by Rob Friesel (@founddrama) at the BurlingtonJS meet-up on June 19, 2013.

If you liked this talk, you should consider buying a copy of the book that inspired it, Functional JavaScript by Michael Fogus: http://www.amazon.com/gp/product/1449360726

The slides are on SlideShare: slideshare.net/founddrama/funjs

Running the App

You will need to create a goodreads-config.js in the project root and put the following into it:

exports.API_KEY = 'your API key goes here';
exports.USER_ID = 'some user ID goes here';

You can get an API key here: http://www.goodreads.com/api/keys

You can a user ID from the URL of any user's profile page. It's just the number part; so mine is 156533, not 156533-rob.

Giving the Presentation

We're plundering borrowing a lot of this material from Michael Fogus' book, Functional JavaScript; specifically chapters 2, 4, and 9. As such, the material in this presentation follows in basically the same order. Doing the demo, node in this order:

  • app.js (to get the data; or provide your own data.json)
  • applicative-functions.js
  • higher-order.js
  • protocols.js

Resources