YayQuery: The best thing in the whole world?

Posted on May 4, 2012

Answer: Yes! yayQuery by Jonathan Neal

Read More


Ruby gotcha: string comparison is case sensitive

Posted on March 14, 2012

Here is a Ruby gotcha: String comparison is case sensitive. (more…)

Read More


Rails Single Table Inheritance Helper Module

Single table inheritance is a somewhat controversial topic in Rails land. For me, I like the Rails magic that it brings and, you know, the inheritance. However, it can clearly be abused. Here is my one rule for using Single table inheritance: (more…)

Read More


The Power of JRuby

Posted on November 14, 2011

I hesitated about using JRuby at first. I spend days beefing up on Java, which I hadn't used in years. Even though I had been using Ruby on Rails for about a year, I felt more intimidated by JRuby than going back to Java. To be fair, the project I was working on involved integrating with complicated, legacy code. I started from a place of FUD. It took me fighting with Spring MVC to get it to return JSON without a view to say "Fuck it" ...

Read More


Stubbing Backbone.js fetch with Jasmine & Sinon.js

I needed to stub out a Backbone collection's fetch method and make it return success. I'm using Jasmine BDD for the testing framework and Sinon.js for stubbing the methods. Here's how I did it: (more…)

Read More