Calamity Lane

Curious Code for Curious Coders

Code Lyrical III

1
2
3
4
5
6
7
8
9
10
11
12
13
class Object
  alias old_is_a? is_a?
  def is_a?(klass)
    if klass == Thing
      return self.respond_to?(:that_swing)
    end
    old_is_a?(klass)
  end
end

if it.is_a? Thing
  8.times(doo_wah)
end

Answer after the jump.

Name That Code

1
2
3
4
5
6
def hi!
  what = who = 'Slim Shady'

  self.name = [what, who]
  jigga_jigga
end

As before, answer after the jump…

RSS Has Been De-b0rked

Apologies to anyone who’s tried to use the RSS feeds. They should be fixed now.

Code Lyrical

So I blame Scotty for this:

1
2
3
until WhiteBoy.dead? do
  lay(:down => :boogie) && ThatFunkyMusic.play(:right)
end

Can you guess the song? :) Answer after the jump.

Finally! Photos!

My sincerest apologies to all our family and friends who have been waiting for pictures of the new baby! Here are a few to whet your appetite:

You can look at the whole batch of 30 photos as a slideshow here.

The Votes Are In…

…and his name is…

Benjamin Paul Alexander Budd!

Thanks go out to everyone who participated in our survey. Pics of the most awesome baby in the universe will be available shortly. :)

How Good Is Your Cooking?

Are you this good?

That’s right. I made a PBJ sandwich so bad that the jar of peanut butter immolated.

It was actually kind of tasty, afterwards. It’s no coincidence that Michelle does most of the cooking. How good is your cooking?