- 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
Stupid Software! I was trying to quote the Confunction Junction, What's My Function reference and it cut it off. I cannot understand why this stupid forum software cannot... oh never mind. <sigh> what's the use???
"Plastics"
Admin
Admin
For those of us who don't speak assembly, can you give us a play-by-play on that code snippit?
(CAPTCHA = stfu... are you trying to say something about my post before I write it?)
Admin
From what i can tell from Googling, it's the equivalent of calling to a system call on linux, so something like this:
; open(filename,O_WRONLY|O_APPEND)
mov eax, 5
mov ebx, filename
mov ecx, 1025
int 0x80
mov ebx, eax
and from what i can tell, (eax, 3) is read a single byte from the keyboard.
Admin
lobotomy
Admin
I'm reasonably sure the question was rhetorical. -50DKP for even answering this question.
Admin
Admin
Maybe the customers were complaining that the thing didn't take up enough disk space and thus couldn't possible work.
Like that other WTF with the delay :)
Admin
void** RedundantDatabaseQuery(char* query){ /* Redundancy is good! */
void** redundantResult;
*(redundantResult) = DatabaseQuery(query);
*(redundantResult+sizeof(void*)) = DatabaseQuery(query);
*(redundantResult+2*sizeof(void*)) = DatabaseQuery(query);
return redundantResult;
}
Admin
It reads one byte from standard input into the variable named va682. This is pretty much the only way of doing that in assembly (well, the people who like letters more than numbers might replace 3 by SYSCALL_READ, 1 by STDIN, etcetera). But the fact that he uses assembly in an application, makes me suspect that the author of this code is a braindead dinosaur.
Admin
<quote>I'm reasonably sure the question was rhetorical. -50DKP for even answering this question.
I would even say this is a FCUKING 50 DKP MINUS!!
</quote>
Admin
I used to work somewhere where the customer support database had done that. All keys had a string prefix prepended to them to "type" the key. Twice when I was there they had to add more zeros to the indexes... when CUST999 got hit, and then when CUST9999 got hit, etc...
Oh, and the joys of doing sorts on all string data vs. integer? Wonderful!
Admin
i see! they mispelled mov[e] three times! someone needs to read their dos books...
captcha=gene is an anarachist
Admin
..or even:
Please, don't use printf for non-const strings...it makes me nervous.
It also remainds me of the bug I recently introduced: printf("%lld\n",0);
Admin
Yes
:-)
Was your question a rhetoric question?
Admin
Are you saying that there is a system in place which is functionally similar, but not exactly what we asked for? What good is that? We don't want your stuff if it doesn't conform exactly to our notions of what is expected. You don't really expect us to *gasp* learn how your product works, do you?
You will give us the smileys. We spoke to Steve, our tech guy, and he said he could draw up some smileys in a couple of hours, so we expect your product to be fully finished tomorrow.
Yes, I do realise that it's already 3.15p. Isn't that what you have a development team for?
Admin
This design pattern simplifies your backup strategy
Admin
if its well commented then you wont have any problems
Admin
Output: OVERFLOW!
Admin
I really hope you're being sarcastic.
Admin
No, no, no. It must be 43. I think.
Admin
"I fired up our diagramming software"... wtf?
Admin
Well fo me the thing is, that even if alex is "out of town" he could still post this "WTFs".. Unles he is at the south pole (i heard they already got WiFi at north pole)...
I woud like to see what did these tables rly do, because then this "WTF" could be a real WTF. Now it is just a piece of screenshot that could be funny, but doesnt tell much though :(
-- captched
Admin
That's a pretty good point - why didn't he just do a look up programmatically? No need for a database at all.
Admin
I certainly wouldn't mind a little more context here. The only problem I can see, but it could just be that you didn't include it in the snippet, is that the current values of the registers weren't pushed onto the stack or otherwise saved so that they could be later restored. Other than that, the only thing I can see is that this wasn't a an assembly project, so your objection is simply that assembly was used...but given that it was "years and years ago," that would be a major assumption.
Admin
I've always tried to avoid reduncancy, repetition, and tautology.
Admin
The only fact of seriously answering this question is a WTF in itself. I am always amazed to see that some WTF readers are probably good WTF creators themselves!
mynab
Admin
Yanks eh?
Admin
Ok, class, let's try a slightly more advanced question: If Cn_IDKEY == "Pointless" then what would the entire record look like?
(CAPTCHA is "awesomeness")
Admin
With only the first 45 rows to judge, and assuming that the submittor has indeed looked at the rest of the table, there is an obvious assumption. However, I'm not completely convinced that anyone is so absolutely stupid as to create a table of multiple synchronized incrementing columns. With that tiny shred of faith in my fellow humankind, I want to believe that somewhere in that table after record 45 the apparent pattern breaks as the data added after this database was redesigned necessitated this mess in some manner.
Can we get some verification that the obvious is true, thus lowering my opinion of our species yet further?
Admin
Mabey we are looking are the worlds first advanced enterprize 1:1:1:1... integer look up table.
What'll they think of next?
Admin
Yes. Reduncancy is bad. I worked with a bloke called Duncan once, and he was a knob.
Simon
Admin
My God, you're even dumber than the guy who wrote this. The question was obviously rhetorical. I bet you think you're mighty smart for identifying the "pattern" too...
Admin
DRY: dont repeat yourself
This is fun, because on the last DUNE books, Duncan Idaho whas the character cloned and cloned again to server the emperator worm.
--Tei
Admin
Admin
me 2!
Admin
GREAT! GLAD TO HEAR IT! I mean you would try to get ME hopping around for NOTHING!
And HEY, I wrote something not FAR different from this(but it had only TWO such columns) to allow for versioning of addresses, and saving space?trouble. Another I saw, that I didn't design, had it for handling versions of products. BTW THAT application had records that said (1,1 2,2 3,3 4,4)! Most products USUALLY have only one variant. If THE fourth product had two versions, it might continue(5,4 6,5 7,6 8,7 etc...) Of course, the NINTH product could have a HUNDRED versions, or even 10,000! Those are only the two I was DIRECTLY involved with at some point in the past year. It isn't THAT unusual. I guess the REAL WTF is why don't YOU know that?
Steve
Admin
multiple spasms and a lifelong curse of the hiccups!!
Admin
Well your assumption may be correct but you need to hold a meeting presenting your assumption, then you need to meet with all the dumbassed business anaylsts to see if this meets the requirements of the client. While in the meantime developing all the required documentation about your assumption. To later have the business anaylst come back to you and tell you that your assumption does not meet the requirements, because the client has it's head up their anas and won't be able to tell you yea or nay. Only in the end to have your assumptions be correct and the business anaylst just cost the client 160 million dollars and they have yet to receive the final working product. Umm ... wait that would the Assenture way!! To answer you question NO!!!
Admin
Better YET, can we find out if s/he even LOOKED at the code? Were there options that the customer might have had and wanted, or is considering, that might be relevant? Was the OTHER person asked why s/he did this? As stupid as it may appear at first glance,. they may have actually considered things that YOU are not!
It is like the line "if ($a==1) {$b=1;} etc..." where $b is used in a SQL statement, and $a is passed in a cookie or as a parm and is ALWAYS equal to $b, or using a resister of 100k ohms instead of a coil with the SAME resistance. The first seems STUPID, until you realize that SQL injection may occur. The second seems stupid until you realize about inductance. HECK, I once saw NOPS(do NOTHING) in a program that was running slowly. They turned out to be VITAL! Sometimes what is obvious is NOT the correct answer.
Steve
Admin
Found on a file server recently:
/Public/Documents/Redundancy policy.doc.doc
Admin
Or compression - you could store the entire database in a two-line VB macro. You could fit thousands of databases on a single floppy disk!
Admin
You said it dude.
They're everywhere...
Admin
The real wtf is that it is NOT RECORD 494, it is ROW 494. Clue: if you missed the prose, the screenshot has the word TABLE in the titlebar.
Don't any of you know what databases are???
By the way, I am burning in the suspense - could somebody puhleeze tel me what IS in row 494?
Admin
All at the same time of course, comma separated.
Either that, or captcha: null is a hint...
Admin
NAW! The ONLY databases I worked with are Mysql and Mssql and msql and Access
and Informix, oracle,db2,teradata, postgres,postgressql, netezza,sybase,ingres, and a few others.
Actually, record doesn't necessarily mean it is non database. So I use them interchangeably. Who cares. I sometimes use field instead of column, also.
Frankly, it doesn't matter here if it is a table, or a truly flat file.
Steve
Admin
Actually, if I'm reading it correctly, it reads one byte from standard output.
Admin
/me sees the light :)
Admin
Oooooh, I take my yesterday's comment about the reading the code back! Sorry, now I'm enlightened! :)
Admin
Ahh well... four times actually. And if memory serves me dos always spelt move as r-e-n-a-m-e. I think I know who really needs to brush up on their dos skillz :-)