• VR (unregistered)

    It does exactly what it says on the tin

  • (cs)

    It would have indeed been more elegant if you could invoke a single method with the name of the table stored in an enum.

  • Chronomium (unregistered)

    Ah, I see the problem. Either selectTable0() or selectTable32() is missing.

  • (cs)

    The only way this could be worse, is if each function relied on having the result from the previous function as a parameter.

  • (cs)

    public interface ITDWTFCommentSelector { string GetFristComment(); string GetFristButNotActuallyFristComment(); string GetAintFristCommentAndMassage(); string FILE_NOT_FOUND(); }

  • noname (unregistered)

    I guess you can fix it when you replace Table with WoodenTable.

  • TheSHEEEP (unregistered)

    ... and it is an interface, which means that someone wanted other people to inherit this.. mess.

  • (cs)

    Needs a selectTable2a and selectTable2b, that way I could make a horribly abused joke about is it Table2b or not 2b?

  • (cs)

    Since it's an interface, how many different ways of selecting table x are there?

  • Chris (unregistered)

    For all those who don't know the german language, the pun explained: Quellcode, from Quelle (source) and Code (code) Quäl-kot, from quälen (to torture) and Kot (excrement)

  • Martin (unregistered)

    For those few readers who are not fluent in colloquial german: quäl-kot translates to "torment feces"

    captcha: genitus - is the perception of sound within the human genitals in the absence of corresponding external sound

  • wonk (unregistered) in reply to Anketam
    Anketam:
    Needs a selectTable2a and selectTable2b, that way I could make a horribly abused joke about is it Table2b or not 2b?

    i think you mean table2b or tableFILE_NOT_FOUNDb.

  • Chelloveck (unregistered) in reply to Martin
    Martin:
    For those few readers who are not fluent in colloquial german: quäl-kot translates to "torment feces"

    I'm still wondering what "famous three-letter explicit adjective" crosses language barriers...

  • (cs) in reply to Chronomium
    Chronomium:
    Ah, I see the problem. Either selectTable0() or selectTable32() is missing.
    No, it's selectTable9c() that is missing.
  • Stan (unregistered) in reply to Chelloveck
    Chelloveck:
    Martin:
    For those few readers who are not fluent in colloquial german: quäl-kot translates to "torment feces"

    I'm still wondering what "famous three-letter explicit adjective" crosses language barriers...

    You can't figure that out yourself? WTF?

  • fab (unregistered) in reply to Chelloveck

    is WTF considered an adjective?

  • Maltz (unregistered) in reply to fab
    fab:
    is WTF considered an adjective?

    Perhaps "acronym" does NOT cross language barriers. :)

  • fwip (unregistered)

    Ohh. Adjective must be German for acronym.

  • guest (unregistered) in reply to fab
    fab:
    is WTF considered an adjective?

    we can talk about/laugh/cry at 'WTF code' or 'WTF stories', so it must be an adjective sometimes.

  • (cs) in reply to Martin
    Chris:
    For all those who don't know the german language, the pun explained: Quellcode, from Quelle (source) and Code (code) Quäl-kot, from quälen (to torture) and Kot (excrement)
    Martin:
    For those few readers who are not fluent in colloquial german: quäl-kot translates to "torment feces"

    captcha: genitus - is the perception of sound within the human genitals in the absence of corresponding external sound

    Damn... and it sounded tastey, like something you might enjoy eating.

    "Sir, Do you know what you would like to order? Todays special is the quäl-kot." "Is the quäl-kot fresh this time of year?"

  • Russ (unregistered) in reply to Chris
    Chris:
    For all those who don't know the german language, the pun explained: Quellcode, from Quelle (source) and Code (code) Quäl-kot, from quälen (to torture) and Kot (excrement)

    Yeah, I needed that help. Google Translator only gave me "Torment-kot"--which gave me an all new WTF.

  • Pedant (unregistered) in reply to Maltz

    Acronym seems to have not crossed the English barrier either, its not an acronym it's an abbreviation.

  • QualKotBoy (unregistered) in reply to Martin
    Martin:
    For those few readers who are not fluent in colloquial german: quäl-kot translates to "torment feces"

    Torment Faeces sounds like the daily experience of working at my programming shop.

    captcha: usitas, or lositas

  • Russ (unregistered) in reply to Pedant
    Pedant:
    Acronym seems to have not crossed the English barrier either, its not an acronym it's an abbreviation.

    Err... WTF is an acronym. An acronym is taking the first letter of each word to form a new word. An abbreviation is the shortening of a single word, such as shortening "associate" to "ass."

  • Roger "Douche" Jr (unregistered)

    TRWTF is Germany...

    Seriously, not a WTF... I see crappier code everyday

  • Robot (unregistered)

    Doing it right! Don't you see how easily extensible this interface is?

  • pedagogical pedant (unregistered)

    WTF is not an adjective. It's not an abbreviation, and its status as an acronym is debatable.

    However, it is without doubt an initialism: http://en.wikipedia.org/wiki/Acronym_and_initialism#Nomenclature

  • I <3 scala (unregistered) in reply to Russ
    Russ:
    Pedant:
    Acronym seems to have not crossed the English barrier either, its not an acronym it's an abbreviation.

    Err... WTF is an acronym. An acronym is taking the first letter of each word to form a new word. An abbreviation is the shortening of a single word, such as shortening "associate" to "ass."

    Acronyms have to form a pronounceable word.

  • selectable (unregistered)

    O, quael-koter!

    Captcha: caecus, because a wink is as good as a nod.

  • (cs) in reply to I <3 scala
    I <3 scala:
    Russ:
    Pedant:
    Acronym seems to have not crossed the English barrier either, its not an acronym it's an abbreviation.

    Err... WTF is an acronym. An acronym is taking the first letter of each word to form a new word. An abbreviation is the shortening of a single word, such as shortening "associate" to "ass."

    Acronyms have to form a pronounceable word.

    "Wuh-tiff!"

  • ur (unregistered)

    26A'th! (sorry...)

  • bored_again (unregistered)

    There once was a man who wore glasses. Who wrapped all his tables in classes. With an interface to explain. From implementing I will refrain. I'll be laughing till they burn me to ashes.

  • (cs) in reply to mott555
    mott555:
    public interface ITDWTFCommentSelector { string GetFristComment(); string GetFristButNotActuallyFristComment(); string GetAintFristCommentAndMassage(); string FILE_NOT_FOUND(); }

    Sure, I'll take a massage

  • Chris P. Peterson (unregistered)

    My eyeballs are bleeding!

  • Sayer (unregistered) in reply to PiisAWheeL
    PiisAWheeL:
    Chris:
    For all those who don't know the german language, the pun explained: Quellcode, from Quelle (source) and Code (code) Quäl-kot, from quälen (to torture) and Kot (excrement)
    Martin:
    For those few readers who are not fluent in colloquial german: quäl-kot translates to "torment feces"

    captcha: genitus - is the perception of sound within the human genitals in the absence of corresponding external sound

    Damn... and it sounded tastey, like something you might enjoy eating.

    "Sir, Do you know what you would like to order? Todays special is the quäl-kot." "Is the quäl-kot fresh this time of year?"

    As long as he doesn't order the kot kopf

  • Andy (unregistered) in reply to LegacyCrono
    LegacyCrono:
    Chronomium:
    Ah, I see the problem. Either selectTable0() or selectTable32() is missing.
    No, it's selectTable9c() that is missing.

    Nope, selectTable9_3quarter() is missing.

    Beside Quäl-Kot I've seen a lot Aufquell-Text (bloating source code).

    ~Andy

  • ur (unregistered) in reply to D-Coder
    D-Coder:
    I <3 scala:
    Russ:
    Pedant:
    Acronym seems to have not crossed the English barrier either, its not an acronym it's an abbreviation.

    Err... WTF is an acronym. An acronym is taking the first letter of each word to form a new word. An abbreviation is the shortening of a single word, such as shortening "associate" to "ass."

    Acronyms have to form a pronounceable word.

    "Wuh-tiff!"
    Actually "Wtf" is quite apt, as the sound of something going over your head yet still contriving to swat you on the nose on its way past.

  • Coder (unregistered) in reply to Russ

    WTF is technically not an acronym, since it doesn't form an existing word. (An example of an actual acronym would be COOL for Cool Object-Oriented Language.) As such, WTF is an initialism.

  • Another Idiot on teh Interblag (unregistered) in reply to TheSHEEEP
    TheSHEEEP:
    ... and it is an interface, which means that someone wanted other people to inherit this.. mess.

    Hey I just write the interfaces. If you ogres can't understand the brilliance of my design, maybe someone else should implement them.

    This is some awesome code architecture. Don't knock what you can't grok.

  • Tasty (unregistered) in reply to Chris
    Chris:
    For all those who don't know the german language, the pun explained: Quellcode, from Quelle (source) and Code (code) Quäl-kot, from quälen (to torture) and Kot (excrement)

    Qual-kot or qual-gott (torture God)? This sounds like a treatise by Nietzsche.

  • (cs)

    I agree that this code must be quelled!

  • Leo (unregistered) in reply to Coder
    Coder:
    WTF is technically not an acronym, since it doesn't form an existing word. (An example of an actual acronym would be COOL for Cool Object-Oriented Language.) As such, WTF is an initialism.

    Doesn't have to be an existing word, just something that is pronounced as a word, and not as individual letters.

  • Nagesh (unregistered) in reply to Roger "Douche" Jr
    Roger "Douche" Jr:
    TRWTF is Germany...

    Seriously, not a WTF... I see crappier code everyday

    Right. Ain't US and India being enough??? EU is destory worldwide economy.

  • (cs) in reply to guest
    guest:
    fab:
    is WTF considered an adjective?

    we can talk about/laugh/cry at 'WTF code' or 'WTF stories', so it must be an adjective sometimes.

    That doesn't follow. A noun phrase formed from two nouns doesn't automatically promote one of the nouns to an adjective. You might get annoyed at a network outage, but neither network nor outage is an adjective.

  • (cs) in reply to I <3 scala
    I <3 scala:
    Acronyms have to form a pronounceable word.

    "WTF" is onomatopoeic. It is the sound of coffee being sprayed over keyboard.

  • Herr Nageshhoff (unregistered)

    Oh my god, this is the most boring comment board ever!

  • Mr Clever Ideas (unregistered)

    sigh This design just screams "1990s", doesn't it. It would be far better to turn the query strings into fields, and have TableSelector instances created by factory objects put together using composition.

  • James C. L. (unregistered)

    Acronym : a word (as NATO, radar, or laser) formed from the initial letter or letters of each of the successive parts or major parts of a compound term; also : an abbreviation (as FBI) formed from initial letters : initialism

    http://www.merriam-webster.com/dictionary/acronym

  • (cs)

    We all see such examples of code in source code repositories of projects we work with. It is nice to know that national originality of person does not matter when it come to mess up code.

  • (cs) in reply to Mr Clever Ideas
    Mr Clever Ideas:
    *sigh* This design just screams "1990s", doesn't it.
    Not particularly, no.

Leave a comment on “The Table Selector”

Log In or post as a guest

Replying to comment #:

« Return to Article