Hacker News new | past | comments | ask | show | jobs | submit login
20,000 Leagues Under ActiveRecord (patshaughnessy.net)
4 points by adamnemecek on Sept 25, 2014 | hide | past | favorite | 1 comment



I can see the advantages of using the Arel predicates, but to me this:

    User.order("id desc")
reads better than:

    User.order(User.arel_table[User.primary_key].desc)
The latter seems a lot less expressive.

Also, Pat's book is great if you're curious about Ruby internals:

http://patshaughnessy.net/ruby-under-a-microscope




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: