finished problem B refactoring

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.

Bookmark the permalink. Follow any comments here with the RSS feed for this post. Post a comment or leave a trackback: Trackback URL.

4 Comments

  1. Posted July 20, 2008 at 10:29 pm | Permalink

    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
    Posted July 21, 2008 at 6:12 am | Permalink

    Ooo thanks

  3. James
    Posted September 18, 2008 at 4:39 am | Permalink

    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.

  4. Posted September 18, 2008 at 2:40 pm | Permalink

    groovy.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>