May 9, 2012
Bayou Grand Prix: A Ruby on Rails project

The Rails app I’ve been poking at for a while is pretty frivolous. A fried of mine started a regular playing night for Formula De, a car racing game based on Formula 1 (and shame on them for racing in Bahrain). He wanted it done as a league, complete with teams, driver names, scoring, etc.  So in 2001, the Bayou Grand Prix was born.

I coded the first version of the web site - and as you can see, it’s pretty ugly. My minimalist HTML design skills aside, it’s coded in plain PHP on top of a SQL layer, and most of the logic is encoded in the SQL.  Given the scoring rules, and the need to support things like drivers racing for different teams in the same season, things got pretty ugly, with queries like this:

And the administrative interface is pretty bad as well. I quite often have to go in and frob the database with raw SQL to fix things when I screw up the data entry - meaning that effectively I’m the only one who can update the thing.

So sometime in 2008 I started a project to write a new version in Rails. I’ve been poking at it from time to time ever since, but it still hasn’t reached feature parity with the current SQL site. Getting there, though.

11:06pm  |   URL: http://tmblr.co/Zmf8KvLCe57j
Filed under: rails bgp