- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
It does exactly what it says on the tin
Admin
It would have indeed been more elegant if you could invoke a single method with the name of the table stored in an enum.
Admin
Ah, I see the problem. Either selectTable0() or selectTable32() is missing.
Admin
The only way this could be worse, is if each function relied on having the result from the previous function as a parameter.
Admin
public interface ITDWTFCommentSelector { string GetFristComment(); string GetFristButNotActuallyFristComment(); string GetAintFristCommentAndMassage(); string FILE_NOT_FOUND(); }
Admin
I guess you can fix it when you replace Table with WoodenTable.
Admin
... and it is an interface, which means that someone wanted other people to inherit this.. mess.
Admin
Needs a selectTable2a and selectTable2b, that way I could make a horribly abused joke about is it Table2b or not 2b?
Admin
Since it's an interface, how many different ways of selecting table x are there?
Admin
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)
Admin
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
Admin
i think you mean table2b or tableFILE_NOT_FOUNDb.
Admin
I'm still wondering what "famous three-letter explicit adjective" crosses language barriers...
Admin
Admin
Admin
is WTF considered an adjective?
Admin
Perhaps "acronym" does NOT cross language barriers. :)
Admin
Ohh. Adjective must be German for acronym.
Admin
we can talk about/laugh/cry at 'WTF code' or 'WTF stories', so it must be an adjective sometimes.
Admin
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?"
Admin
Yeah, I needed that help. Google Translator only gave me "Torment-kot"--which gave me an all new WTF.
Admin
Acronym seems to have not crossed the English barrier either, its not an acronym it's an abbreviation.
Admin
Torment Faeces sounds like the daily experience of working at my programming shop.
captcha: usitas, or lositas
Admin
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."
Admin
TRWTF is Germany...
Seriously, not a WTF... I see crappier code everyday
Admin
Doing it right! Don't you see how easily extensible this interface is?
Admin
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
Admin
Acronyms have to form a pronounceable word.
Admin
O, quael-koter!
Captcha: caecus, because a wink is as good as a nod.
Admin
Admin
26A'th! (sorry...)
Admin
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.
Admin
Sure, I'll take a massage
Admin
My eyeballs are bleeding!
Admin
As long as he doesn't order the kot kopf
Admin
Nope, selectTable9_3quarter() is missing.
Beside Quäl-Kot I've seen a lot Aufquell-Text (bloating source code).
~Andy
Admin
Admin
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.
Admin
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.
Admin
Qual-kot or qual-gott (torture God)? This sounds like a treatise by Nietzsche.
Admin
I agree that this code must be quelled!
Admin
Doesn't have to be an existing word, just something that is pronounced as a word, and not as individual letters.
Admin
Right. Ain't US and India being enough??? EU is destory worldwide economy.
Admin
Admin
"WTF" is onomatopoeic. It is the sound of coffee being sprayed over keyboard.
Admin
Oh my god, this is the most boring comment board ever!
Admin
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.
Admin
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
Admin
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.
Admin