News for hackers. Stuff that matters.
Re:MongoDB Is Abusing JSON by mattparlane on Thursday January 17, 2013 @07:14PM (#5076217)
I've been through the hassle of programatically piecing together complex SQL queries, and I'd far rather be able to just put together hashes that represent my query.

SQL was originally designed so that people who were savvy but not necessarily developers were able to query databases, but I can't think of the last time my boss would have wanted to run some random query against our production database.

Re:MongoDB Is Abusing JSON by msarchet on Thursday January 17, 2013 @07:21PM (#5076245)
This is a daily occurrence at some companies
Re:MongoDB Is Abusing JSON by cerales on Friday January 18, 2013 @01:42AM (#5077467)
Surely by the time you're programmatically generating SQL queries you should be using either an ORM or some other kind of SQL expression language embedded in a more expressive language (such as SQLAlchemy or the myriad lisp DSPs for relational databases)?
Re:MongoDB Is Abusing JSON by sm_sohan on Thursday January 17, 2013 @07:54PM (#5076361)
I am not sure of its origin. But these days you'll find good ORMs that would craft the query for you. My point is, the Mongo API seems to be more of a machine readable API with the $ keys used somewhat in a hacky way.