November 2008 Archives

Ruby battleship tournament

So I’ve been diligently working away on an entry for the upcoming battleship sparring tournament on Dec 1. It has been extremely fun. I think I’m almost done (just like every other project, eh?), and I thought I would share some insight into what I have learned, mainly about targeting strategies.

Continue Reading…

Posted by Steve on Nov 15, 2008

Memoizing with arguments

At RubyConf right now and just finished the talk about Scaling Ruby (put on by the Rails Envy guys). At the end of the talk someone asked about how to roll your own memoization when your method takes arguments. It just so happens that the app I’m working had to handle this, and here is how we did it.

Continue Reading…

Posted by Steve on Nov 06, 2008