Skip to content

Instantly share code, notes, and snippets.

View timruffles's full-sized avatar

Tim Ruffles timruffles

View GitHub Profile
@timruffles
timruffles / fpdescrip
Last active January 2, 2016 09:59 — forked from varjmes/fpdescrip
Functional programming takes us back to basics: functions and data. Functions become our primary tool of abstraction and structure in our programs, transforming data in pipelines. This delivers real simplicity and lets us focus on solving problems, rather than obsessing over forcing programs into object hierarchies.
How does functional programming differ from OOP? What are higher order functions? How do you get started with functional Javascript? Tim & Matt will answer these questions by taking you through the core concepts of FP, and guiding you through exercises to ensure the concepts stick.
addAdminUser = ( username, cb, errback ) ->
db.addUser username, ( dbUser ) ->
dbUser.setPermissions "admin", cb, errback
, errback