Functional Javascript
Are stateless functions the sexiest?
While reading about test driven development I came across the idea of functional javascript.
This four part series on it was my starting point:
- Part 1: Building blocks and motivation
- Part 2: Working with Arrays and Lists
- Part 3: Functions for making functions
- Part 4: Doing it with style
What is functional javascript?
It is a way of writing javascript such that functions are passed around to other functions as parameters.
How is it useful?
It is incredibly useful in doing repetitive tasks fairly easily (see map, reduce functions in part 2 of the series)
Along the way I glanced upon this beautiful book on JavaScript as well.