Archive for the 'Ruby' Category

Shard your data or you have failed at life.

Protip: if you are starting a business whose success hinges on scalability of a data store, you had best figure out how to shard across N machines before you launch. Using a single instance of MySQL for the whole thing is a strong indicator that you have failed at life. [...]

2008: The year of JRuby?

2008 will probably be the year of JRuby. JRuby solves the two biggest pain points I hear from developers about Ruby.

People think Ruby is slow, so I can’t try it out. I don’t know how we would deploy it, what is all this Apache/Mongrel/Rewrite stuff? Can’t I just deploy on our app server?

Headius by [...]

Who is Jay Ruby? Oh, “JRuby”…

I went to the local Barnes and Noble to check out JRuby on Rails and was amused when the clerk started an author search for “Jay Ruby” when I asked if it was in stock.

Law of Demeter, MVC views, and the Presenter pattern

Over on Pivotal Blabs there is an interesting post Lovely Demerter, Meter Maid commenting on the last section of Misunderstanding Law of Demeter by Dan Manges. I’m a big fan of making views (the V in MVC) compliant with LoD by using the Presenter Pattern in Rails, go have a read and let us [...]

Interesting patch for Ruby on Rails to limit errant (bad) queries.

I’m a happy fan of ORM, but I have to agree that turning a blind eye to the actual generated SQL can lead to horrible things happening.

If you’re doing RoR you might want to check out this patch to limit the possibility of ridiculous queries being generated.

I’ve just committed a patch to ActiveRecord [...]