Even when I’m panicking I’m a fan of datamapper. I like how clean it generally makes my code, but I do notice that I tend to have the same queries cropping up from time to time either in the same application or in other apps using my model library. This just wasn’t dry enough for [...]
Continue Reading...
So I found a pretty massive flaw in DataMapper (ticket @ lighthouse). Whenever using the :fields attribute when doing Resource#first or Resource#all a crap load (techincally speaking) of queries are fired at MySQL. I put a ticket in and a lot of information and links to some pasties with examples (see lighthouse). I don’t have [...]
Continue Reading...
One of my favorite things about Ruby is mixins. I love the pseudo multiple inheritance it provides. One thing that is frustrating to me though when working on developing back-ends is the amount of un-DRY code I am forced to create when working with the database.
For example, comments. Look at sites like MySpace, Facebook, and [...]
Continue Reading...