Skip to content

Instantly share code, notes, and snippets.

@alexbepple
Last active April 25, 2016 14:32
Show Gist options
  • Save alexbepple/b2b72fecd26b00899aada1a5b8aac4db to your computer and use it in GitHub Desktop.
Save alexbepple/b2b72fecd26b00899aada1a5b8aac4db to your computer and use it in GitHub Desktop.
Notes for session "Ramda: a functional utility belt" at JSUnconf 2016

Ramda homepage: http://ramdajs.com/

Apprentice: Basic functional programming with Ramda

JS Bin that I used to demo Ramda: http://jsbin.com/cosati/edit?js,output

These are a nice introductions to basic functional programming with Ramda:

tap is a really helpful to console.log-debug in compose and pipe:

r.compose(  
	…,
	r.tap(console.log),
	…
)

Journeyman

Once you have mastered basic processing, you should look at these Ramda functions: converge, ap, mergeAll

Master craftsman

Learn about lenses and transducers. This post is a great introduction by example: http://simplectic.com/blog/2015/ramda-transducers-logs/

Travel to Fantasy Land (aka “Algebraic JavaScript Specification”).

Sanctuary is a great complement to Ramda and takes you into Elm territory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment