News for hackers. Stuff that matters.
Re:I hate queries by rbranson on Saturday September 25, 2010 @08:14PM (#1728195)
Sure, but how many times have you seen someone create something equal to that with SQL queries? Instead of using a join, they execute a SELECT against the database for every row they fetch. This is shockingly common in horribly written PHP code.

In addition, ActiveRecord also supports joins instead of using includes. Includes is almost always fine, unless the initial result set is large (100+ rows).

Re:I hate queries by chrisbolt on Sunday September 26, 2010 @06:09PM (#1730113)
At least with SQL, it's obvious and not hidden by a layer of abstraction.