Show HN: JAQT – JavaScript Queries and Transformations
11–20 of 40 posts
Re: Show HN: JAQT – JavaScript Queries and Transformations
#12Wouldn't the query for your example just be data.filter(d => d.friends.includes("John")).map(d => ({name: d.name+" "+d.lastName})) Maybe I'm missing the bigger picture, but that doesn't seem so bad
Re: Show HN: JAQT – JavaScript Queries and Transformations
#13can a query like that be observable? so updating the array/object would cause the results to update?
Re: Show HN: JAQT – JavaScript Queries and Transformations
#14Re: Show HN: JAQT – JavaScript Queries and Transformations
#15Re: Show HN: JAQT – JavaScript Queries and Transformations
#16Re: Show HN: JAQT – JavaScript Queries and Transformations
#17Re: Show HN: JAQT – JavaScript Queries and Transformations
#18Wouldn't the query for your example just be data.filter(d => d.friends.includes("John")).map(d => ({name: d.name+" "+d.lastName})) Maybe I'm missing the bigger picture, but that doesn't seem so bad
I liked JAQT API but it is not really good to create a layer on top of already simple functional constructors.
Re: Show HN: JAQT – JavaScript Queries and Transformations
#19Earlier quoted context omitted.
I liked JAQT API but it is not really good to create a layer on top of already simple functional constructors.
Why is that not good? JavaScript is full of layers of unnecessary abstraction often for completely superficial reasons and sometimes even irrationally applied at great cost in defiance of evidence and simplicity. So, what makes this specific example less good than all the other countless examples of abstractions most JavaScript developers would happily die to defend?
Re: Show HN: JAQT – JavaScript Queries and Transformations
#20In a similar vein is https://pbeshai.github.io/tidy/ which I've used for 3+ years. It's a really nice lightweight transformer. I've also used https://github.com/uwdata/arquero once (better performance for large datasets).