• Walker E. Richardson (unregistered)

    I see nothing wrong here. This is Geeeeeeeeennniuuuuusssss code!

  • (cs)

    I thought they used desktop applications in the mid-nineties to simulate AJAX-like behavior.

  • JamieC (unregistered)

    This reminded me of the SouthPark Human Cent-IPad episode.

    "You're gonna have to speak with one of our Geeeennniuussssseeess"

    Which, ironically, is the exact same thing that happended to me the one and only time I ever went into an Apple Store.

  • (cs) in reply to JamieC
    JamieC:
    This reminded me of the SouthPark Human Cent-IPad episode.

    "You're gonna have to speak with one of our Geeeennniuussssseeess"

    Which, ironically, is literally the exact same thing that happended to me the one and only time I ever went into an Apple Store.

    FTFY

  • Nagesh (unregistered)

    frist to write frist

    also since when did they start posting this early

  • Machtyn (unregistered)

    Ya' gotta love the number padding function: 1, 2, 3, .., 9, 010, 011, 012, .., 0100, 0101, etc

    (I find doing what I'm about to do annoying, but somehow it is relevant this time.) captcha: opto. This was some opto coding!

  • (cs)
    That was Walker E. Richardson's style: describe the libraries where you reference them, not within the library itself.
    He had INTERCAL background, obviously.
  • (cs)

    I do not know whether I should say this is brilant or genus.

    Addendum (2011-10-17 09:39): As for the last thing with the formating. When I am in a file with poorly formated code I just hit Ctrl+E, D (Format Document), and poof all the indenting, spacing, and {} are fixed. So poorly formatted code does not WTF me since I can fix it so easily.

  • doctor_of_common_sense (unregistered)

    I am having Suuuuuuuuuupppperrrrr fuuunnnnnnn today double clicking in the middle of super genius part in firefox. So much selecting with so little effort!

  • (cs)

    I suspect that he gave himself that accolade when he had finally managed (after three days hard slog and sweating blood) to design a "Heeeeeelllllllllloooooooooo wwoooooooooorrrrrrrrrrllllllllllldddddddddddd" app ...

  • Paula Bean (unregistered)

    Paula is briiiiiiiiiiiiiiilllllllllllllllllaaaaaaaaaaaannnnnnnnnnnnt!

  • Veritasiness (unregistered) in reply to Nagesh
    Nagesh:
    frist to write frist

    also since when did they start posting this early

    Early? It's 7:13 PM in Mumbai.

  • (cs)

    This guy made me think to Leeeeeeeeeeerooooooooooooooooooy Jeeeeeeeeeeenkiiiiiiiiiiiiiins, but without the tabs.

  • (cs)

    Had another idea. Maybe he thought and acted and moved incrreeediiiblllyyy sssslllloooowwwwllllyyy ... and, having finally got to the end of reading the story of the hare and the tortoise story, thought that being slow equated to being clever.

    I had to work with someone like that. After approximately 40 years in the industry he still did his programming by the hunt-and-peck technique. And in order to put in place the de rigueur house-style lines of delimiters (another WTF, but that's another story) above and below his comments, he did it by the technique:

    1. Look at keyboard. Press shift-1. Look at screen, search for the cursor. Check there's an exclamation mark where the cursor is.
    2. Look at keyboard. Press the hyphen key. Look at screen, search for cursor. Check there's a hyphen where the cursor is.
    3. Repeat step 2 another 77 times.
    4. Repeat step 1.

    I got impatient with him once and elbowed him out of the way, pressing the F1 key, which had been programmed to automatically put the comment delimiter line in place.

    "Goodness! What did you do?" he asked. "Pressed the F1 key." "What did you do that for?" "It's quicker than typing it character by character." "I'll have to learn how to do that one day," he replied, and proceeded to type the next comment-delimiter line by means of his tried-and-tested technique as described above.

  • (cs)

    Tabs when coding are fine, so long as everyone who uses the file uses them and they all use the same tab width. (That code looks like it needs a tab width of 4, but it's surely not hard to experiment.) But an auto-reformat would clear all that into whatever style is in use, so it's not too serious unless you've got two developers warring over it.

    OTOH, anyone who mixes tabs and either Python or Haskell is evil. If that's you, I salute you! Your opportunities for obfuscation are far beyond those of normal mortals!

  • jonny_q (unregistered)

    example 1. Ugh. example 2. It has an easily fixable typo. Not a huge WTF. I've used y = (x<10)?"0"+x:x before in JS because, first, there is no pad function, and second, it's usually for formatting a month number which will only be 1-12 anyway. So, meh. example 3. It's debug code, so no big deal. He was passing in a window or iframe designated for debugging and writing junk to it... Of course, I don't see the code that actually writes anything to the document, but whatever... it's debug code example 4. So, he didn't know that other people's tabs may not be the same width as his. Fairly common rookie mistake, but easily fixable in many code editors.

    As for the IFRAME/cookie/JS thing... well, that's how we did asynchronous http requests before we had XMLHttpRequest. Either that's code that was written before XMLHttpRequest was commonplace or it's a guy that REALLY wants to ensure compatibility with REALLY old browsers. Not really necessarily anymore, but not the biggest WTF either.

  • (cs)

    Just in case anyone missed the reference: Wile E. Coyote used to do this in the Roadrunner cartoons. His business card even said:

    WILE E. COYOTE SUPER GENIUS

    This specimen of developer, Programmus Ignoramus, should run (or be run, as the case may be) off a cliff. A sign saying print("Goodbye, World!"); would be a nice touch.

  • (cs) in reply to dkf
    dkf:
    OTOH, anyone who mixes tabs and either Python or Haskell is evil. If that's you, I salute you! Your opportunities for obfuscation are far beyond those of normal mortals!
    Does nobody remember makefiles any more?

    Still far more distributed than Haskell in the wild.

  • DT (unregistered)

    Youtube "Operation: Rabbit" and watch the awesomeness.

    Looney Tunes are still funny even after all these years.

  • Martijn Otto (unregistered)

    So he's a Supper Gennius? Never heard of it.

  • kktkkr (unregistered)

    Why didn't he use double line breaks for a truly Zen experience? Imagine getting twice the lines of code with the same readability. Also, the ability to put a Su^10p^4er^5 Ge^9n^3iu^5s^5 before or after any line, as desired.

  • Shinobu (unregistered) in reply to jonny_q

    I agree. I think the main problem here was that he didn't really take his job very seriously. The ‘It's just silly web stuff.’ attitude. I've seen very good coders churn out ultra-crappy code because they didn't take it seriously. The reasons varied. Sometimes it was too simple and they didn't feel challenged enough, sometimes they didn't feel the work was important enough.

  • (cs)

    I've just paid attention to the TwoPlaces function.

    Presumably it's an integer that comes in.

    Going out from this function is: a) An integer if it's below 10 b) A string if it's above 10.

    Or round the other way if the greater-than / less-than typo is corrected.

    I understand the delights of weakly-typed languages, but unless it's used in strictly limited contexts, this function looks a bit dangerous to me.

    Or is this so stupidly obvious that I have just set myself up for the inevitable ridicule?

  • Zuy Incognito (unregistered) in reply to kktkkr
    kktkkr:
    Why didn't he use double line breaks for a truly Zen experience? Imagine getting twice the lines of code with the same readability. Also, the ability to put a Su^10p^4er^5 Ge^9n^3iu^5s^5 before or after any line, as desired.
    For a truly Zune-line experience, you insert your tabs into your spaces! The Zune Man - The Suuuuuuuuuupppperrrrr Peeeeeeeeerrrrrrrrvvvvvvveeeeeeerrrrtttttt
  • Jon (unregistered) in reply to ObiWayneKenobi
    ObiWayneKenobi:
    Just in case anyone missed the reference: Wile E. Coyote used to do this in the Roadrunner cartoons. His business card even said:

    WILE E. COYOTE SUPER GENIUS

    This specimen of developer, Programmus Ignoramus, should run (or be run, as the case may be) off a cliff. A sign saying print("Goodbye, World!"); would be a nice touch.

    Best comment today. Endorsed by Acme Anvil Company

  • Robo (unregistered) in reply to Machtyn
    Machtyn:
    Ya' gotta love the number padding function: 1, 2, 3, .., 9, 010, 011, 012, .., 0100, 0101, etc

    (I find doing what I'm about to do annoying, but somehow it is relevant this time.) captcha: opto. This was some opto coding!

    It would actually be 9, 10, 011, ... (num > 10)

    10 is not good enough for an extra zero, apparently.

  • Roman (unregistered) in reply to JamieC
    JamieC:
    This reminded me of the SouthPark Human Cent-IPad episode.

    "You're gonna have to speak with one of our Geeeennniuussssseeess"

    Which, ironically, is the exact same thing that happended to me the one and only time I ever went into an Apple Store.

    "Human Cent-IPad"? Really? Is it too hard to write "HUMANCENTiPAD"? Or is this some 2-cents inside joke?

  • b0b g0ats3 (unregistered)

    that's paula bean's husband.

  • (cs)

    That'th juth't thuuuper!

  • (cs) in reply to dkf
    dkf:
    OTOH, anyone who mixes tabs and either Python or Haskell is evil. If that's you, I salute you! Your opportunities for obfuscation are far beyond those of normal mortals!
    Amateur.

    For immortal obfuscation, you need a postmodern language like Befunge or Whitespace.

  • (cs) in reply to dkf
    dkf:
    Tabs when coding are fine, so long as everyone who uses the file uses them and they all use the same tab width.
    Tabs are for indenting. Spaces are for alignment.
  • forgottenlord (unregistered)

    The way those comments are written, I get the impression that they were written mockingly by someone after the fact.

  • (cs) in reply to PedanticCurmudgeon
    PedanticCurmudgeon:
    dkf:
    OTOH, anyone who mixes tabs and either Python or Haskell is evil. If that's you, I salute you! Your opportunities for obfuscation are far beyond those of normal mortals!
    Amateur.

    For immortal obfuscation, you need a postmodern language like Befunge or Whitespace.

    Get real, pillocks. Write in Ook.

  • (cs) in reply to Matt Westwood
    Matt Westwood:
    PedanticCurmudgeon:
    dkf:
    OTOH, anyone who mixes tabs and either Python or Haskell is evil. If that's you, I salute you! Your opportunities for obfuscation are far beyond those of normal mortals!
    Amateur.

    For immortal obfuscation, you need a postmodern language like Befunge or Whitespace.

    Get real, pillocks. Write in Ook.

    I confess I'm still waiting with bated breath and feverish anticipation for the first usable computer written in Life.

  • (cs) in reply to Anketam
    Anketam:
    I do not know whether I should say this is brilant or genus.

    Addendum (2011-10-17 09:39): As for the last thing with the formating. When I am in a file with poorly formated code I just hit Ctrl+E, D (Format Document), and poof all the indenting, spacing, and {} are fixed. So poorly formatted code does not WTF me since I can fix it so easily.

    I don't know what weirdo editor you use, but in mine Ctrl+E, D takes me to the last line in the file - at least it does in command mode, in edit mode it doesn't do anything - so what version of vi are you running?

  • Spivonious (unregistered) in reply to java.lang.Chris;

    In Visual Studio, ctrl+K, D formats documents. Maybe that's what he meant?

  • (cs) in reply to Spivonious
    Spivonious:
    In Visual Studio, ctrl+K, D formats documents. Maybe that's what he meant?

    Visual Studio? Never heard of it. Is it some variant of that spawn of Satan which calls itself emacs?

  • trtrwtf (unregistered) in reply to Spivonious
    Spivonious:
    In Visual Studio, ctrl+K, D formats documents. Maybe that's what he meant?

    I know it starts with "vi", but that doesn't make it an editor...

  • PRMan (unregistered) in reply to Anketam
    Anketam:
    I do not know whether I should say this is brilant or genus.

    Addendum (2011-10-17 09:39): As for the last thing with the formating. When I am in a file with poorly formated code I just hit Ctrl+E, D (Format Document), and poof all the indenting, spacing, and {} are fixed. So poorly formatted code does not WTF me since I can fix it so easily.

    I once worked at a place where a new guy started trying to demand that everyone else follow his "professional" style, which included things such as spaces before commas, extra spaces at the parens, curly brace on the same line, etc. We already had a defacto style that pretty much matched the .NET framework style, but didn't have anything written. I told him we wouldn't be doing that and that developers could style the code however they wanted.

    So, to prove he's "right", this guy spends all day reformatting a piece of code and checks it in and then comes over and proudly announces his victory. I ignored him, but the next time I needed to edit it, I simply hit Ctrl-K, Ctrl-D to format it, added my 1 line and checked it back in.

    I walk by his desk the next day and he is feverishly reformatting the same piece of code. He says, "I will beat you at this. I'm more determined. You can't win. There, I fixed it again and I will keep fixing it until you give up."

    I went back to my desk, checked it out, hit Ctrl-K, Ctrl-D, and checked it in, one minute after he checked it in. He comes by later and accuses me of losing his changes because I'm keeping a copy around to check back in over his. Finally, now that he's ready to listen, I show him that he can set his settings however he likes in Visual Studio and work in whatever way suits him. All of us can do the same.

    Strangely enough, broken code always seemed to have the same characteristics... Extra spaces around the parens and commas and curly braces on the same line as the function name.

  • (cs) in reply to Machtyn
    Machtyn:
    Ya' gotta love the number padding function: 1, 2, 3, .., 9, 010, 011, 012, .., 0100, 0101, etc

    (I find doing what I'm about to do annoying, but somehow it is relevant this time.) captcha: opto. This was some opto coding!

    Yea, I'll admit to having done something like that at some time (I got the < thing right though) before I switched to the sprintf way of displaying leading zeroes.... (And the numbers I was formatting was known to be below 100!).

    Yours Yazeran

    Plan: To go to Mars one day with a hammer.

  • A worshipper of St IGNUcius (unregistered) in reply to java.lang.Chris;
    java.lang.Chris;:
    Spivonious:
    In Visual Studio, ctrl+K, D formats documents. Maybe that's what he meant?

    Visual Studio? Never heard of it. Is it some variant of that spawn of Satan which calls itself emacs?

    vi is the number six, which as you will recall is the number of the beast. vi is the true spawn of Satan.

  • trtrwtf (unregistered) in reply to A worshipper of St IGNUcius
    A worshipper of St IGNUcius:
    java.lang.Chris;:
    Spivonious:
    In Visual Studio, ctrl+K, D formats documents. Maybe that's what he meant?

    Visual Studio? Never heard of it. Is it some variant of that spawn of Satan which calls itself emacs?

    vi is the number six, which as you will recall is the number of the beast.

    I've got go tell my friend 66an about your interesting theory.

  • (cs) in reply to PRMan
    PRMan:
    Anketam:
    I do not know whether I should say this is brilant or genus.

    Addendum (2011-10-17 09:39): As for the last thing with the formating. When I am in a file with poorly formated code I just hit Ctrl+E, D (Format Document), and poof all the indenting, spacing, and {} are fixed. So poorly formatted code does not WTF me since I can fix it so easily.

    I once worked at a place where a new guy started trying to demand that everyone else follow his "professional" style, which included things such as spaces before commas, extra spaces at the parens, curly brace on the same line, etc. We already had a defacto style that pretty much matched the .NET framework style, but didn't have anything written. I told him we wouldn't be doing that and that developers could style the code however they wanted.

    So, to prove he's "right", this guy spends all day reformatting a piece of code and checks it in and then comes over and proudly announces his victory. I ignored him, but the next time I needed to edit it, I simply hit Ctrl-K, Ctrl-D to format it, added my 1 line and checked it back in.

    I walk by his desk the next day and he is feverishly reformatting the same piece of code. He says, "I will beat you at this. I'm more determined. You can't win. There, I fixed it again and I will keep fixing it until you give up."

    I went back to my desk, checked it out, hit Ctrl-K, Ctrl-D, and checked it in, one minute after he checked it in. He comes by later and accuses me of losing his changes because I'm keeping a copy around to check back in over his. Finally, now that he's ready to listen, I show him that he can set his settings however he likes in Visual Studio and work in whatever way suits him. All of us can do the same.

    Strangely enough, broken code always seemed to have the same characteristics... Extra spaces around the parens and commas and curly braces on the same line as the function name.

    This asshat is checking in broken code?! Fuck man where I work, that is a crime punishable by lunch for the whole team on him. Trust me, anybody who has ever had to buy a lunch for a couple of hundred dollars has NEVER broken the build again...

  • zoon-your-sis (or your bro) (unregistered) in reply to C-Octothorpe
    C-Octothorpe:
    Fuck man where I work,

    Are you hiring?

  • Zuy Incognito (unregistered) in reply to JamieC
    JamieC:
    This reminded me of the SouthPark Human Cent-IPad episode.

    "You're gonna have to speak with one of our Geeeennniuussssseeess"

    Which, ironically, is the exact same thing that happended to me the one and only time I ever went into an Apple Store.

    The Human Centipede

    Why am I just now hearing about this? It would have been helpful to have had a reference.

  • (cs) in reply to Zuy Incognito
    Zuy Incognito:
    JamieC:
    This reminded me of the SouthPark Human Cent-IPad episode.

    "You're gonna have to speak with one of our Geeeennniuussssseeess"

    Which, ironically, is the exact same thing that happended to me the one and only time I ever went into an Apple Store.

    The Human Centipede

    Why am I just now hearing about this? It would have been helpful to have had a reference.

    Because you have to be at least 17 to get into that movie.

  • Zuy Incognito (unregistered) in reply to frits
    frits:
    Zuy Incognito:
    Why am I just now hearing about this [movie]?
    Because you have to be at least 17 to get into that movie.
    Well the website had one of those age confirmation prompts. You have to answer it - state law.
  • Jellineck (unregistered)

    I think the problem is that he is trying to build on the shoulders of giants when he should be standing on the shoulders of giants and working from there.

  • (cs) in reply to java.lang.Chris;
    java.lang.Chris;:
    Anketam:
    I do not know whether I should say this is brilant or genus.

    Addendum (2011-10-17 09:39): As for the last thing with the formating. When I am in a file with poorly formated code I just hit Ctrl+E, D (Format Document), and poof all the indenting, spacing, and {} are fixed. So poorly formatted code does not WTF me since I can fix it so easily.

    I don't know what weirdo editor you use, but in mine Ctrl+E, D takes me to the last line in the file - at least it does in command mode, in edit mode it doesn't do anything - so what version of vi are you running?

    I am using (no choice) Microsoft Visual Studio 2005 (C#).

  • Bob (unregistered) in reply to Jellineck
    Jellineck:
    I think the problem is that he is trying to build on the shoulders of giants when he should be standing on the shoulders of giants and working from there.

    This isn't a joking matter. My son, who has gigantism, was seriously injured when some fat (but short) programmer stood on his shoulders and tried to do some work. His chiropractor bills were horrendous. Please be more sensitive.

Leave a comment on “The Suuuuuuuuuupppperrrrr Geeeeeeeeennniuuuuusssss”

Log In or post as a guest

Replying to comment #:

« Return to Article