Andrew McDonough

Talk: Ruby Golf

May 09, 2011

On 9th May 2011, I ran a coding competition at the London Ruby Users Group. People were asked to form teams of 4-8 people, and solve nine short ruby golf ‘holes’ using as few characters as possible. Each hole was defined by a set of RSpec examples describing a single method, and the teams had to write the method to pass all of the examples. The team with all tests passing using the fewest number of charaters would be declared the winner.

Ruby Golf Presenting

I made a trophy for the competition by ordering a golf trophy, sawing off the golf ball with a hacksaw, and replacing it with a Ruby I bought on eBay.

Ruby Golf Trophy

The winner of the competition was a team of one person working on his own - Tomasz Wegrzanowski.

Ruby Golf Winner

Our lovely hosts Skills Matter took some photos of the evening.

Thanks to Simon Coffey for his help writing some of the challenges.

Links


Andrew McDonough

Andrew McDonough is a consultant CTO and software developer, currently based between Berlin and London.

Follow Andrew on Twitter or Connect on LinkedIn