The If Works This dirt was a building before

Archive for 11 July 2007

In response to Tim Bryce’s Theory P

Now I know better than to rise to deliberately inflamatory comments, but Tim Bryce seems to be deadly serious when he espouses his ‘Theory P’. I’m going to try to respond to this article in as level-headed a fashion as I can. Let’s go. (Yes I know it’s from 2005, but I only just read [...]

IncludeByDefault progress

IncludeByDefault, as mentioned in my last post, hit some snags with ActiveRecord generating duplicate table aliases when doing cascaded includes, e.g. Tag.find(8).posts.find(:all, :include => :tags) So, I set out to work around it, only to run into further problems. I went with option C: let find operations get all the way to the database, and [...]