Thursday
07May2009
Double Shot #447
Thursday, May 7, 2009 at 12:23AM
Today needs to be about writing code.
Record Filter - A pure-ruby DSL to replace SQL in ActiveRecord. Personally, I'd be happy with more SQL, but to each their own.
on APIs: more craft, less magic - "Rails seems to assume that you want to expose your database object model transparently through your API. In my experience, this is rarely what you want to do. In fact, it is a crazy way to live."
A git-style wiki system - Bryan Thompson ponders a way to help Rails newbies with common questions.
in
Double Shot
Double Shot 
Reader Comments (4)
Record Filter actually seems like a more verbose Ambition [http://defunkt.github.com/ambition/]... And ambitions looks more like LINQ, which personally I like a lot.
Mike, thanks for adding Record Filter this week. I'm a long-time reader, so was pretty psyched to see it here.
@martenveldthuis one major difference with the Ambition ActiveRecord stuff is that Record Filter also has named filters that can be added to a class and chained to create more complex queries. After a quick look, it seems that Ambition's version only supports queries done on the fly. I'll put an example of using one on my intro page.
@aubrey: Hey, that's actually pretty nice.
Hey, thanks for linking to my post! In my free time (hah, right?) I'm working on a quick proof of concept to see if what I'm thinking even makes sense in RL.