finished problem B refactoring

July 20th, 2008 Leave a reply »

Because I promised in my last post, and because I like to show off, here are the results of my refactoring code jam problem B. Old and new. Took it from 143 lines to just 69 – I’m definitely happy with that.

4 comments

  1. Looking good Sam.
    If you start getting into more complicated command lines you should look into the Groovy CLIBuilder. See this example, http://docs.codehaus.org/display/GROOVY/WrappingGroovyScript

    Its’ pretty sweet.

  2. sam says:

    Ooo thanks

  3. James says:

    Hi, I found your blog on this new directory of WordPress Blogs at blackhatbootcamp.com/listofwordpressblogs. I dont know how your blog came up, must have been a typo, i duno. Anyways, I just clicked it and here I am. Your blog looks good. Have a nice day. James.

Leave a Reply