News for hackers. Stuff that matters.
Re:JavaScript query language to perform complex object searches by plaguuuuuu on Tuesday September 22, 2015 @02:27AM (#10256940)
Can anyone explain why you might need to store queries as JSON data with horrifying syntax, instead of just writing plain functions that search/filter/whatever?

Or if you really have to, using a sensible DSL to do the job instead?

Re:JavaScript query language to perform complex object searches by jviotti on Tuesday September 22, 2015 @09:18AM (#10258340)
Hey there,

Objects (or DSL) are easier to encode/decode than functions.

Also notice that Queryl is a very low level way of defining queries, and can easily become horrifying and unmaintainable with very complex queries.

The idea was to provide the low level, verbose way of defining this, and provide a user friendly frontend (as a DSL, probably) that compiles to it.