Re:Sift.js: mongodb inspired array filting
by phzbOx on Tuesday January 03, 2012 @03:29PM
(#3421174)
Can someone explain me why is it useful? I.e. why not using underscore or whatever library provides map and filter?
[ Parent
| on HN ]
Thanks for the feedback. I'll add a few use-cases / examples to the project page.
Here are a few good examples which use sift:
- Realtime API library: https://github.com/crcn/guava
- Simple database written in node.js: https://github.com/crcn/gumbo. I use this primarily in command line utilities, and other applications where mongodb seems a bit over the top.
Underscore is certainly a better alternative in many cases, but the goal for sift is to provide control over filtering collections with one query versus manipulating them.
Re:Sift.js: mongodb inspired array filting
by dpritchett on Tuesday January 03, 2012 @06:29PM
(#3421836)
It does remind me of an elaboration on map + reduce + filter. Guess I need to finish reading SICP too.