Demo code from my Triangle JS talk "Learn Functional Programming by Implementing SQL"
Open demo.html to run the code. There are a few JS files
blank.jswas our starting point for the live coding
live.jswas where we finished
cheat-sheet.jscontains some more of the SQL DSL fleshed out including select, select with aggregate operators (uses reduce!), and joins.
demo.html currently sources
live.js but you can change this to the others
to try out.
Slides from the talk can be found here: http://speakerdeck.com/u/krisjordan/p/functional-programming-fundamentals-in-js-php