Jon Leighton

Hi, I'm Jon

I'm a programmer living in London. I am a member of the Ruby on Rails core team and currently I work as the Technical Director of Loco2. I write lots of open source code. If I'm not programming, I am probably rock climbing.

Recent articles

You can also browse all my past articles.

Rails controllers and OOP »

Rails controllers violate the Single Responsibility Principle. Each “action” has a different responsibility and should be contained in a separate object. Controllers are also hard to unit test, so we end up using slow “functional tests”.

Poltergeist 0.6.0: Javascript error handling and remote debugging »

Recently I pushed version 0.6.0 of Poltergeist. This version brings some pretty awesome features that I am very excited about.

How to prevent Ruby's test/unit library from autorunning your tests »

Today I had a situation where I wanted to use perftools.rb to profile a test suite, which was written with Ruby’s test/unit library.