News for hackers. Stuff that matters.
Re:Try RethinkDB in your browser by StavrosK on Friday February 22, 2013 @02:26PM (#5266166)
Sure, they are almost identical, but one doesn't need .run() :)

I don't see how it wouldn't be optimal, since lazy evaluation is a superset of eager evaluation (you can invoke it whenever you want).

Re:Try RethinkDB in your browser by alexpopescu on Friday February 22, 2013 @02:39PM (#5266243)
Both solutions are lazy. While ReQL requires .run(), the Django ORM requires you to do 'list()' (or probably other form of iterator over it). I'd say the only difference is that one is explicit and the other one is implicit.
Re:Try RethinkDB in your browser by shrughes on Friday February 22, 2013 @03:38PM (#5266621)
.run() is also bad. What connection is it being run on? The most recently opened connection? In a global variable somewhere? For anything larger than a short script, you should use query.run(conn), or conn.run(query).
Re:Try RethinkDB in your browser by InAnEmergency on Friday February 22, 2013 @05:37PM (#5267359)
Yes, especially in web applications. Found that out the hard way.