- 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
Does this comment exist?
Admin
CREATE TABLE [CustomerComment] (
)
Admin
CREATE TABLE [BarberShop] (
... snip ...
[HairOnTheFloor] BIT NOT NULL
)
Admin
That's why the Paradox database went down -- it couldn't represent tautology.
Admin
So... did John do this or is there something missing like maybe one of the words "predecessor", "coworker", "team lead" or "boss"?
Admin
Fortunately, John’s something has solved this problem by inventing a new SQL data type..
FTFY, at a high level.
Admin
The first rule of the tautology club is the first rule of the tautology club
Admin
Yes.
Admin
What's a tautology?
Admin
You've clearly never heard of the famous Saint John's.
Admin
I was thinking that John's's legal name is "John's". Or maybe it's short for Johnas? Which leaves us to wonder why Johnas posted a WTF that he invented?
Admin
You forgot adding a unique constraint on CustomerComment.IsComment.
Admin
I'm guessing someone got mixed up on the concepts of constraint and default constraint.
John's what?Admin
A miserable little pile of secrets.
Admin
Admin
Admin
One word tautology: "factoid".
Admin
Erm, actually, you could only implement DoesThisRowNotExist with the given constraint - and IsValidOrNotValid would be impossible, as it would always be false...
Me? Pendantic???
Martin
Admin
CREATE TABLE catch22 ( a INTEGER NOT NULL CONSTRAINT aRule CHECK (a = 1 AND b = 0), b INTEGER NOT NULL CONSTRAINT bRule CHECK (a = 0 AND b = 1))
Admin
Today's news: database is poorly designed; sky remains blue.
No it isn't.Admin
I am the president of the tautology club, because I am the president of the tautology club.
Admin
Tautology: the study of the tension of the string in a dangling object.
captcha: odio - A massive event in which competitors ride Garfield's chum and try to stay on as long as possible, much to the delight of several spectators dressed in ritual 'John' attire.
Admin
[quote user="Ziplodocus"][quote user="Alargule"]ritual "John's" attire.[/quote]
FTFY
Admin
"In logic, a tautology is a formula which is true in every possible interpretation."
Admin
And thus the evil robots were blown up and the Earth was saved.
Admin
Adequate enough isn't tautology. It just implies that your aim is mediocrity (or the worst possible implementation that still works).
Admin
FTFY
Admin
WHAT?! No embedded comment? FAIL!!
Admin
A tautology.
Admin
That's so you can fulfill the order:
Admin
This isn't a WTF, it's just a standard sanity check. They're just encoding the business rule that customers' orders should never be fulfilled. Now, thanks to that forward-thinking, should a bug in the code ever accidentally fulfil a customer's order, it'll raise an error condition.
That's just robust coding.
Admin
Wow, no one has linked the xkcd yet. Shocking! Granted, someone referenced it, but still...
Admin
Is there a spectrum of adequacy? I would say adequate is an absolute. As good as necessary. I would, however argue that enough is the tautologic word in the case of Adequate Enough
Admin
The second rule is the same as first, except that it is second.
Admin
In most languages, an "if (true) {}" block creates a new scope. Hardly a tautology.
Admin
Admin
Ah, to be paid by the line.
Admin
It is when creating the new code block sans the "if (true)" creates the same scope.
Admin
Of all the things for me to reply to:
FTFY.
Admin
Admin
Admin
But enough talk! Have at you! Mwa-ha-ha! teleport
The real translation of that is SO much better...
Admin
if you feel the need to seriously compete with this for trollishness, then you're really whooshed aren't you?
Admin
Admin
I don't see anything wrong, or even paradoxical, about this code. You simply state that in every row inserted, a must equal one and b must equal zero. Also, a must equal zero and b must equal one. Hence, whatever you try to insert in the table, you will only get a constraint violation error.
I do not see any (at least no obvious) way to implement the paradox Remy Porter probably had in mind in procedural code.
Admin
Admin
How embarrassing... I was about to post in defense of the if(true) construct, but realized I was actually thinking of while(true). Oops!
Admin
Admin
You wouldn't have won if we'd beaten you. You can observe a lot by just watching. It's like deja-vu, all over again. It ain't over till it's over. A nickel ain't worth a dime anymore. Congratulations. I knew the record would stand until it was broken.
Admin
That WTF was very unique.