The point of a collection-centric view, as advocated by Underscore and functional programming in general, is to establish a consistent processing idiom so that we can reuse a comprehensive set of functions. As the great luminary Alan Perlis once stated:
It is better to have 100 functions operate on one data structure than 10 functions on 10 data structures.
Throughout this book, I emphasize the notion of empowering our data through the use of generic functions built on a collection-centric philosophy.
- 2. First-Class Functions and Applicative Programming
- Publisher: O'Reilly Media, Inc.
- Released: June 2013
Important collection consideration for functional programming