5! = 1·2·3·4·5

(3 comments)
2005.11.09
Geek Snarkery of the Moment
A friend gave me a photocopy of a worksheet from a programmer job interview, the contents of which I'm transcribing here. Probably the worst interviewee experience I've seen. I've tried to be reasonably fair; arguably I should could be generous and use * in place of ·, since this was handwritten, but given all the absolute conceptual failures and mental disconnects, I'm leaving it as is.

So the interview "challenge" was to write a factorial function. Now, I don't know exactly how well or poorly the problem was described by the interviewer, but given the first line, probably copied from a whiteboard, I'm assuming it was pretty straightforward. Here's what the sheet had on it...most of the strikes are circular scribble-outs:
5! = 1·2·3·4·5

public string access(string 5! a)
{
  string
    string b = a.substring(0,1);
   string
    Int int c = b String.getValue(b);
    if(c < 2){
      System.System.err.println("1");
    } else if (c < 3){
      System.err.println("1·2");
    } else if (c < 4){
      System.err.println("1·2·3");
    }
I know that won't mean anything to non-geeks, but the layer on top of layer of sheer "Not Getting It" is a real jawdropper. (I went ahead and placed an attempt to list all (or at least most of) the problems as the first comment) For someone aspiring to a Java development position, and who must've sounded at least possibly decent on the phonescreen...supposedly the person has multiple masters degrees in science-y and computer-science-y fields, both from good local Universities.

In case you think I'm being unfair, here is a link to the actual handwritten response.


Dialog of the Moment
"Death needs time like a junkie needs junk."
"And what does Death need time for?"
"The answer is so simple. Death needs time for what it kills to grow in..."
William S. Burroughs
Via this Katrina-related BoingBoing piece.


Politics of the Moment
Fun if rude-n-crude rant about Bedtime for BonzoBush...he blew off a 2-hour lunch meeting because the night before the Argenentinian schedule pushed events past his bedtime. Poor pumpkin! What a loser we have for president, and I don't just mean the popular vote in 2000. Maybe it's a good thing Cheney's really the guy in charge, then.