Randall Munroe is a Comic Rockstar

Posted in On the Intertron, Teh Funnies by Will on May 16, 2007.

Randall is the guy behind XKCD - “A webcomic of romance, sarcasm, math, and language.” as he puts it.   The comic is so chock full of geeky goodness, that it’s just about required reading as far as I’m concerned.

Anyway, Randall went to MIT to give a lecture a few days, and, well - it looks like they all had a whole lot of fun. Except for the presence of RC Velociraptors. (At least appropriate countermeasures were available).

Someone also dropped plastic playpen balls from the roof , which had stickers with some certain… numbers on them that the AACS don’t want you to have.

Pictures galore over on the MIT Site.

Speaking of certain magic censored numbers - Thinkgeek have the appropriate t-shirt.

Irish Code?

Posted in Coding, Teh Funnies, Work by Will on May 16, 2007.

Q: Why did the Irishman wear two condoms?
A: To be sure, to be sure.
(Apologies to any Irish who happen to be reading this.)

I’m currently working on a project where I need to upgrade an application to support some new functionality.   This application was originally written by others,

While I was doing a review of the code, I found a segment like this (names anonymised):

        CountOfIDs = ds.Tables(“SomeTable”).Rows.Count
        Select Case CountOfIDs
            Case 0
                ‘ Do Nothing 
            Case Is >= 1
                If CountOfIDs >= 1 Then
                    ‘ Do Something
                End If
        End Select

Those IDs are slippery little things - better check twice, to be sure.
(Hint for the C#/C++/etc readers: VB doesn’t need a ‘break’ statement to exit a select/switch block)