News for hackers. Stuff that matters.
Re:Why I Hate Frameworks by mnutt on Wednesday July 20, 2011 @09:42PM (#2788190)
Check out ARel. (it's in ActiveRecord 3, part of Rails) It uses relational algebra and is pretty good about letting you mix and match:

    enabled = User.where(:disabled => false)
    enabled.group("date(created_at)").having("created_at > ?", 1.month.ago).order(weird_order_clause).limit(5)
Re:Why I Hate Frameworks by dools on Wednesday July 20, 2011 @10:14PM (#2788254)
Right, yeah that's pretty nice!
Re:Why I Hate Frameworks by eropple on Thursday July 21, 2011 @01:14AM (#2788597)
The CodeIgniter ActiveRecord library follows the same pattern. Unfortunately, it's pretty kludgey and requires you to use CodeIgniter.
Re:Why I Hate Frameworks by Xurinos on Thursday July 21, 2011 @10:49AM (#2789702)
Do you have an example that shows how to use ARel to do relational algebra?
Re:Why I Hate Frameworks by mnutt on Friday July 22, 2011 @12:25PM (#2794159)
I believe it just uses it under the hood, but I'm not familiar enough with relational algebra (or ARel) to know for sure. Here's a blog post from the author:

http://magicscalingsprinkles.wordpress.com/2010/01/28/why-i-...