Tim’s Blog

  • Won the ’09 Shootout

    Won the ’09 Shootout, originally uploaded by thoolihan. My brother and I won the Shootout this year at KSU golfcourse. We were 6 under scrambling 18 holes.

  • Simple String Extension in Ruby

    Based on a blog post from Steve Yegge… #ruby class String def endswith(arg) (self =~ /.*#{arg}$/) != nil end end #to test irb>”extension”.endswith(“ion”)

  • Flatland

    I finished reading Flatland. It’s a parable-style story about dimensions and geometry. As exciting as that sounds, it’s really good. I recommend it. You don’t have to be a math nerd to read it. I read the annotated version, but pretty much read the story straight-through, only using the notes when something struck a chord.…

  • Static vs Dynamic Scope

    A discussion of static and dynamic scope for variables in programming languages. Emacs lisp is one of the few languages with dynamic scoping and this post takes a look at the difference.

  • Arrays as Objects in Javascript

    Rhino Prompt… js> a[0] = 1; js> a.print = function () {for(var e in this) print (“a[” + e + “] = ” + a[e]);}; function () { for (var e in this) { print(“a[” + e + “] = ” + a[e]); } } js> a.print(); a[0] = 1 a[print] = function () {…

Got any book recommendations?