sift.js icon indicating copy to clipboard operation
sift.js copied to clipboard

blog article(s) or guide(s) to describe use cases for sift

Open giorgio-zamparelli opened this issue 2 years ago • 3 comments

Hi! I'm a fullstack engineer using Javascript and MongoDB daily. sift.js intrigues me but I'm not sure where to use it. I've found the article on Node weekly 400 (CONGRATS) https://nodeweekly.com/issues/400 The subtitle on sift.js on Node weekly 400 is: "I can’t quite put my finger on the use case here, but you may have one.". I kind of feel the same. I think it would be helpful to read a Medium article or blog post or guide about how you use sift and what sift is good for. Thank you for sharing and developing sift.js!

giorgio-zamparelli avatar Aug 06 '21 09:08 giorgio-zamparelli

Second this. Also read the headline and it lead me to your project. However, I can't quite figure out why I should use it. There might be a case (i.e. performance, better interface). Would be cool to read about that.

dasheck0 avatar Aug 06 '21 13:08 dasheck0

@giorgio-zamparelli & @dasheck0 : I just saw the same quote, but as someone who built their own (less fully-featured) version of sift.js years ago, I can share my use case:

Often when building a SaaS product for "power users" we wind up giving them more and more features as they ask for more and more power in the UI "can we have a view that shows all the shipped products with cost less than $30", "can we get notified any time a priority order from CA comes in?" The logical conclusion is writing something like a programming language for them, but that is way complicated and user unfriendly. Somewhere in the middle is using something like mongodb style filter primitives and mapping those to a UI. For example, you can create a UI that lets users "build" the mongo-style query and store it as JSON. Later users can load the query as JSON and your front-end (or back-end) can use that JSON query to filter the rows/objects/etc.

davidguttman avatar Aug 26 '21 22:08 davidguttman

Thanks for sharing @davidguttman!

giorgio-zamparelli avatar Aug 27 '21 05:08 giorgio-zamparelli