The Table Selector

« Return to Article
  • VR 2012-06-21 09:04
    It does exactly what it says on the tin
  • Severity One 2012-06-21 09:04
    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 2012-06-21 09:04
    Ah, I see the problem. Either selectTable0() or selectTable32() is missing.
  • bjelleklang 2012-06-21 09:17
    The only way this could be worse, is if each function relied on having the result from the previous function as a parameter.
  • mott555 2012-06-21 09:17
    public interface ITDWTFCommentSelector
    {
    string GetFristComment();
    string GetFristButNotActuallyFristComment();
    string GetAintFristCommentAndMassage();
    string FILE_NOT_FOUND();
    }
  • noname 2012-06-21 09:20
    I guess you can fix it when you replace Table with WoodenTable.
  • TheSHEEEP 2012-06-21 09:22
    ... and it is an interface, which means that someone wanted other people to inherit this.. mess.
  • Anketam 2012-06-21 09:23
    Needs a selectTable2a and selectTable2b, that way I could make a horribly abused joke about is it Table2b or not 2b?
  • snoofle 2012-06-21 09:25
    Since it's an interface, how many different ways of selecting table x are there?
  • Chris 2012-06-21 09:28
    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 2012-06-21 09:33
    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 2012-06-21 09:34
    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 2012-06-21 09:41
    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...
  • LegacyCrono 2012-06-21 09:42
    Chronomium:
    Ah, I see the problem. Either selectTable0() or selectTable32() is missing.

    No, it's selectTable9c() that is missing.
  • Stan 2012-06-21 09:45
    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 2012-06-21 09:45
    is WTF considered an adjective?
  • Maltz 2012-06-21 09:53
    fab:
    is WTF considered an adjective?


    Perhaps "acronym" does NOT cross language barriers. :)
  • fwip 2012-06-21 09:56
    Ohh. Adjective must be German for acronym.
  • guest 2012-06-21 09:58
    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.
  • PiisAWheeL 2012-06-21 10:00
    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 2012-06-21 10:01
    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 2012-06-21 10:03
    Acronym seems to have not crossed the English barrier either, its not an acronym it's an abbreviation.
  • QualKotBoy 2012-06-21 10:03
    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 2012-06-21 10:08
    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 2012-06-21 10:10
    TRWTF is Germany...

    Seriously, not a WTF... I see crappier code everyday
  • Robot 2012-06-21 10:11
    Doing it right!
    Don't you see how easily extensible this interface is?
  • pedagogical pedant 2012-06-21 10:17
    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 2012-06-21 10:23
    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 2012-06-21 10:27
    O, quael-koter!

    Captcha: caecus, because a wink is as good as a nod.
  • D-Coder 2012-06-21 10:29
    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 2012-06-21 10:32
    26A'th! (sorry...)
  • bored_again 2012-06-21 10:36
    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.
  • @Deprecated 2012-06-21 10:39
    mott555:
    public interface ITDWTFCommentSelector
    {
    string GetFristComment();
    string GetFristButNotActuallyFristComment();
    string GetAintFristCommentAndMassage();
    string FILE_NOT_FOUND();
    }


    Sure, I'll take a massage
  • Chris P. Peterson 2012-06-21 10:41
    My eyeballs are bleeding!
  • Sayer 2012-06-21 10:44
    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 2012-06-21 10:46
    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 2012-06-21 10:49
    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 2012-06-21 10:51
    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 2012-06-21 10:52
    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 2012-06-21 11:06
    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.
  • Zylon 2012-06-21 11:08
    I agree that this code must be quelled!
  • Leo 2012-06-21 11:16
    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 2012-06-21 11:20
    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.
  • pjt33 2012-06-21 11:22
    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.
  • Roby McAndrew 2012-06-21 11:30
    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 2012-06-21 11:39
    Oh my god, this is the most boring comment board ever!
  • Mr Clever Ideas 2012-06-21 11:47
    *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. 2012-06-21 11:51
    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
  • Nagesh 2012-06-21 11:54
    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.
  • Zylon 2012-06-21 12:05
    Mr Clever Ideas:
    *sigh* This design just screams "1990s", doesn't it.

    Not particularly, no.
  • Dan Tastik 2012-06-21 12:39
    It's still much much clearer and straight forward than Hibernate, especially if they make you use Spring with it too
  • QJo 2012-06-21 12:39
    bored_again:
    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.


    There once was a fool who wrote limericks
    But as for scansion was particularly dimericks
    There were more syllables than were needed
    And without humour were these limericks seeded
    And he couldn't ever get the final line to rhymericks.
  • Rhyme Time 2012-06-21 12:45
    Did you know that nothing rhymes with the adjective "gullible"?
  • atk 2012-06-21 12:46
    Maltz:
    fab:
    is WTF considered an adjective?


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


    Acronym denotes something pronouncable, like RADIUS. You mean abbreviation, of which acronym is a subset.
  • The Bruce Dickinson 2012-06-21 12:48
    Guess what? I got a fever, and the only prescription is more XML!
  • grammar nazi 2012-06-21 12:49
    I hate to be pedantic, but WTF is an initialisation and not an acronym. AIDS is an acronym because you say it like a word. But since you pronounce each letter of WTF, it's not an acronym.
  • @Deprecated 2012-06-21 13:19
    grammar nazi:
    I hate to be pedantic, but WTF is an initialisation and not an acronym. AIDS is an acronym because you say it like a word. But since you pronounce each letter of WTF, it's not an acronym.


    So what's your take on 'SQL'?
  • trtrwtf 2012-06-21 13:25
    @Deprecated:
    grammar nazi:
    I hate to be pedantic, but WTF is an initialisation and not an acronym. AIDS is an acronym because you say it like a word. But since you pronounce each letter of WTF, it's not an acronym.


    So what's your take on 'SQL'?


    Pronounced "squeal".
  • TurdCrawler 2012-06-21 13:44
    TheSHEEEP:
    ... and it is an interface, which means that someone wanted other people to inherit this.. kot.


    FTFY
  • Nagesh 2012-06-21 13:53
    trtrwtf:
    @Deprecated:
    grammar nazi:
    I hate to be pedantic, but WTF is an initialisation and not an acronym. AIDS is an acronym because you say it like a word. But since you pronounce each letter of WTF, it's not an acronym.


    So what's your take on 'SQL'?


    Pronounced "squeal".


    that is sound pigs make.

    you should call it "Cee Quell" said with soft s and hard k sound.
  • Homer 2012-06-21 14:03
    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...
    D'oh?
  • Meep 2012-06-21 14:20
    Martin:
    For those few readers who are not fluent in colloquial german: quäl-kot translates to "torment feces"


    Trust the Germans to have a phrase for that.
  • Meep 2012-06-21 14:20
    grammar nazi:
    I hate to be pedantic, but WTF is an initialisation and not an acronym. AIDS is an acronym because you say it like a word. But since you pronounce each letter of WTF, it's not an acronym.


    It's "initialism."
  • qbolec 2012-06-21 14:28
    Rhyme Time:
    Did you know that nothing rhymes with the adjective "gullible"?

    Yes, but that's negligible
  • JJ 2012-06-21 14:31
    @Deprecated:
    grammar nazi:
    I hate to be pedantic, but WTF is an initialisation and not an acronym. AIDS is an acronym because you say it like a word. But since you pronounce each letter of WTF, it's not an acronym.


    So what's your take on 'SQL'?

    Personally:

    S

    Q

    L
  • qbolec 2012-06-21 14:32
    I thought about:
    LOL as in lol cat, or lol code (101 code?)
    WOW as in wow wow wow
    BAD as in bad code (bed code?)
    CPP as in c++ code

    Anyway, I must admit that WTF crossed at least Polish border, but we usually pronounce it voo-te-eff (with e as in tent).
  • Unicorn #8157 2012-06-21 15:22
    @Deprecated:
    grammar nazi:
    I hate to be pedantic, but WTF is an initialisation and not an acronym. AIDS is an acronym because you say it like a word. But since you pronounce each letter of WTF, it's not an acronym.


    So what's your take on 'SQL'?
    Officially, it's supposed to be pronounced like an initialism. However, pronouncing it as "sequel" is common and the initial name was SEQUEL back in the 70s and changed due to a trademark problem. Some oddballs do, as noted previously, say "squeal" like a pig. "Cee quell" makes no sense to my ears, however and have never heard any one else pronounce it like that. (And if you think "cee quell" is equivalent to "sequel" then your William Shatner impression must be a hoot.)
  • Zylon 2012-06-21 15:48
    It's pronounced "squill", doi.
  • Matt Westwood 2012-06-21 15:59
    qbolec:
    I thought about:
    LOL as in lol cat, or lol code (101 code?)
    WOW as in wow wow wow
    BAD as in bad code (bed code?)
    CPP as in c++ code

    Anyway, I must admit that WTF crossed at least Polish border, but we usually pronounce it voo-te-eff (with e as in tent).


    But "bad" means "bath" in German. Doesn't quite work the same way.
  • Matt Westwood 2012-06-21 15:59
    Unicorn #8157:
    @Deprecated:
    grammar nazi:
    I hate to be pedantic, but WTF is an initialisation and not an acronym. AIDS is an acronym because you say it like a word. But since you pronounce each letter of WTF, it's not an acronym.


    So what's your take on 'SQL'?
    Officially, it's supposed to be pronounced like an initialism. However, pronouncing it as "sequel" is common and the initial name was SEQUEL back in the 70s and changed due to a trademark problem. Some oddballs do, as noted previously, say "squeal" like a pig. "Cee quell" makes no sense to my ears, however and have never heard any one else pronounce it like that. (And if you think "cee quell" is equivalent to "sequel" then your William Shatner impression must be a hoot.)


    yeah well who the fuck is William Shatner and who gives a shit anyway?
  • KattMan 2012-06-21 16:24
    Matt Westwood:

    yeah well who the fuck is William Shatner and who gives a shit anyway?


    He is.. just like.. Matt Westwood... only he... cusses.. less!
  • Jerry 2012-06-21 16:29
    qbolec:
    Rhyme Time:
    Did you know that nothing rhymes with the adjective "gullible"?
    Yes, but that's negligible
    Your opinion is nullable.
  • da Doctah 2012-06-21 16:44
    Leo:
    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.


    Right. Examples of acronyms that form pronounceable words that did not previously exist include SCUBA, LASER and RADAR.

    The status of UFO depends upon what country you're in; in the US it's an initialism but in the UK it's an acronym. Same with CICS and in some circles, URL.
  • Born Oklahoma Proud 2012-06-21 16:55
    Nagesh:
    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.


    F--- off, idiot. When I want your (wrong) opinion, I'll ask for it.
  • oheso 2012-06-21 17:27
    grammar nazi:
    I hate to be pedantic...


    Patently false.
  • Shutterbug 2012-06-21 17:31
    Please feature Roby's comment. It just made me "WTF" all over my keyboard

    There you go, it's a verb
  • Shutterbug 2012-06-21 17:34
    Roby McAndrew:
    I <3 scala:
    Acronyms have to form a pronounceable word.


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


    ** MUST LEARN HOW TO QUOTE **

    Please feature Roby's comment. It just made me "WTF" all over my keyboard

    There you go, it's a verb
  • Ralph 2012-06-21 17:49
    da Doctah:
    The status of UFO depends upon what country you're in; in the US it's an initialism but in the UK it's an acronym. Same with CICS and in some circles, URL.
    People who say "ooorrlll" instead of U R L make me want to HURL.
  • Matt Westwood 2012-06-21 17:56
    KattMan:
    Matt Westwood:

    yeah well who the fuck is William Shatner and who gives a shit anyway?


    He is.. just like.. Matt Westwood... only he... cusses.. less!

    Cusses less? He must be a bit of a cunt, then.
  • Friedrice the Great 2012-06-21 17:58
    Rhyme Time:
    Did you know that nothing rhymes with the adjective "gullible"?


    "Thurible" comes close.
    http://en.wikipedia.org/wiki/Thurible
  • Matt Westwood 2012-06-21 17:59
    Ralph:
    da Doctah:
    The status of UFO depends upon what country you're in; in the US it's an initialism but in the UK it's an acronym. Same with CICS and in some circles, URL.
    People who say "ooorrlll" instead of U R L make me want to HURL.


    And certain political movements in the UK want to pronounce UK as an acronym. "What's it like there?" "UK! Don't ask!"
  • Eric Sarjeant 2012-06-21 18:16
    Actually - it's a tad bit messier than that - it's an interface which means someone wants you to _implement_ this mess. So you need to know is expected for table4a as well as table4b.

  • AndrewH 2012-06-21 18:52
    Anketam:
    Needs a selectTable2a and selectTable2b, that way I could make a horribly abused joke about is it Table2b or not 2b?


    I notice the lack didn't stop you
  • Coyne 2012-06-22 02:40
    This is far too complex. It should be just one method:


    public interface ITableSelector
    {
    string selectTable(string s);
    }


    That way, the code could be improved by designating a table with a string, such as:


    string s = ITableSelector->selectTable("4b");


    See, the way it was in the article, it's too hard to conceal which tables are being selected where.

    (Shudder.)
  • Über pedant 2012-06-22 02:43
    pedagogical pedant:
    It's not an abbreviation, [...] it is without doubt an initialism:
    http://en.wikipedia.org/wiki/Acronym_and_initialism#Nomenclature

    I love a nice bit of pedantry, and of course the best kind is nitpicking the pedantry of other pedants.

    From the start of the article you linked to:
    "Acronyms and initialisms are abbreviations..."
  • Flann O'Brien 2012-06-22 02:56
    QJo:
    bored_again:
    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.


    There once was a fool who wrote limericks
    But as for scansion was particularly dimericks
    There were more syllables than were needed
    And without humour were these limericks seeded
    And he couldn't ever get the final line to rhymericks.


    Said a Sassenach back in Dun Laoghaire
    "I pay homage to nationalist thaoghaire,
    But wherever I drobh
    I found signposts that strobh
    To make touring in Ireland so draoghaire."
  • nerd4sale 2012-06-22 06:13
    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.

    Almost, COOL was "Common Object Oriented Language".
    http://en.wikipedia.org/wiki/Information_Engineering_Facility

    And why is the DailyWTF calling this spam? I'm sure as hell not going to recommend that anybody use cool:gen.
  • QJo 2012-06-22 08:29
    Flann O'Brien:
    QJo:
    bored_again:
    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.


    There once was a fool who wrote limericks
    But as for scansion was particularly dimericks
    There were more syllables than were needed
    And without humour were these limericks seeded
    And he couldn't ever get the final line to rhymericks.


    Said a Sassenach back in Dun Laoghaire
    "I pay homage to nationalist thaoghaire,
    But wherever I drobh
    I found signposts that strobh
    To make touring in Ireland so draoghaire."

    +1

    Hadn't heard that one before.

    There once was a Yank in the UK
    He'd been there since back in Y2K
    While the girls made him smile
    The food was quite vile
    And the beer was utterly pUK
  • Andrew 2012-06-22 08:57
    Born Oklahoma Proud:
    Nagesh:
    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.


    F--- off, idiot. When I want your (wrong) opinion, I'll ask for it.
    You must be new here. I've got to side with real Nagesh on this one. TDWTF has taught us "Good ol' down home" American coders can do worse. Also Chinese.
  • Sayer 2012-06-22 10:03
    Matt Westwood:
    KattMan:
    Matt Westwood:

    yeah well who the fuck is William Shatner and who gives a shit anyway?


    He is.. just like.. Matt Westwood... only he... cusses.. less!

    Cusses less? He must be a bit of a cunt, then.


    No, you seem confused. Shatner is the one of you who's not a cunt.

    vereor: should my browser be auto-filling the CAPTCHA?
  • Robbert 2012-06-22 14:34
    I'm Austrian and back at school our teacher often mentioned code pieces which translates to Code Stückerl, but Code is pronounced like Kot which means shit. The whole class always giggled when the teacher mentioned working with shit chunklets.
  • Ach 2012-06-23 14:42
    Swiss-German is such an ugly language :p
  • TS 2012-06-23 17:44
    I really wonder what's returned when you select one of these gorgeous tables in the interface. Maybe the name of the only column in that table? Or "ok" and "not ok"?
  • College Student 2012-06-23 20:10
    My eye started twitching when I read that.
  • Seattle Slattern 2012-06-24 12:59
    Born Oklahoma Proud:
    Nagesh:
    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.


    F--- off, idiot. When I want your (wrong) opinion, I'll ask for it.


    <b>You can't still say fuck?</b>
  • Seattle Slattern 2012-06-24 13:01
    Andrew:
    Born Oklahoma Proud:
    Nagesh:
    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.


    F--- off, idiot. When I want your (wrong) opinion, I'll ask for it.
    You must be new here. I've got to side with real Nagesh on this one. TDWTF has taught us "Good ol' down home" American coders can do worse. Also Chinese.


    Everyone messes up code. That's plain fact. As plain as everyone on this planet screws, except for the Pope, of course.
  • Woodchild 2012-06-25 06:40
    I'm one of Christian's co-workers, and yes, we really have methods like selectTable2a() etc. It is only one of a whole bunch of interfaces like this.
  • Fake Fake Nagesh 2012-06-25 16:05
    Matt Westwood:
    Unicorn #8157:
    @Deprecated:
    grammar nazi:
    I hate to be pedantic, but WTF is an initialisation and not an acronym. AIDS is an acronym because you say it like a word. But since you pronounce each letter of WTF, it's not an acronym.


    So what's your take on 'SQL'?
    Officially, it's supposed to be pronounced like an initialism. However, pronouncing it as "sequel" is common and the initial name was SEQUEL back in the 70s and changed due to a trademark problem. Some oddballs do, as noted previously, say "squeal" like a pig. "Cee quell" makes no sense to my ears, however and have never heard any one else pronounce it like that. (And if you think "cee quell" is equivalent to "sequel" then your William Shatner impression must be a hoot.)


    yeah well who the fuck is William Shatner and who gives a shit anyway?


    He discoverd...strange new worlds...while Chris...topher Columbus dis...covered a world that was already discovered! [/epicrapbattlereference]

    CAPTCHA: caecus - A circus for cakes
  • SG 2012-07-03 06:29
    Severity One:
    It would have indeed been more elegant if you could invoke a single method with the name of the table stored in an enum.


    I'm glad you've never seen your suggestion put to use in an enterprisy application.


    void SelectTable(TableEnum targetTable)
    {
    switch(targetTable)
    {
    case TableEnum.ONE:
    // snip 20 lines
    case TableEnum.TWO:
    // .....
    //.......
    case TableEnum.NinetySix:....
    }
    }
  • TheCPUWizard 2014-04-13 11:39
    Russ:
    An abbreviation is the shortening of a single word, such as shortening "associate" to "ass."


    I know this is an old thread...but....

    Many years ago [1993] I was working on one of the first CD-ROM based subscriptions. It was produced by a major technical print publication house, so of course, it had a "publisher". He had an assistant, a quite attractive young lady...

    At one trade show, here badge was printed as "Publisher's Ass".....Not surprisingly she got rather upset.