- 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
Last! (Unlikely.)
Admin
How long until the first anti-VB comment? I guess 3 posts.
Admin
Could've been worse - it could have been buried with cursors for each stored proc that handled each of the tmp tables...
Admin
This ain't because of the tool, it's because of The Tool (developer)
Admin
I'm sure the person that wrote that would be able to write absolute crap in any programming language.
Admin
The words "huge favor" are code for "what we hired you for."
CAPTCHA:stfu
How do you NOT include the original message? Frist time poster, long time lurker...
Admin
Internet jesus wept.
"Heya Francesco, We-a need you for theese-a job! The last-a pro-a grammer, he-a wears a lotsa concrete footawear!" [image]
Admin
So, the comments were all directly from the babelfish?
So, if group 1 = 3 then the 3rd 2nd function = 1
If group 2 = 3 then the 3rd 2nd function = 3
And if group 1 = 2 then the 3rd 2nd function = 2
Guess that covers all three possibilities. Would have been better written as:
<FONT color=#000000>Public Function RockPaperScissors(superfluoParametro As Variant) If ("rock" = "scissors") Or (antony = True) Then miaFunzioneSecondo_3 = "rock" ElseIf ("paper" = "scissors") Or (antony = True) Then miaFunzioneSecondo_3 = "scissors" ElseIf ("rock" = "paper") Or (antony = True) Then miaFunzioneSecondo_3 = "paper" End If End Function</FONT>
<FONT color=#000000>And whats up with all variants and no error handling? </FONT>
<FONT color=#000000>There's got to be double digit WTFs here!</FONT>
Admin
I like how he sets a variable of his name to true so that he can debug other parts of his program that depend upon the output of this function.... Ok, so I don't LIKE it, but at least it's obvious enough so that it can't be considered THAT BAD of a wtf (still bad tho, and the rest is HORRENDOUS!). lol... At least let's just hope that's what he was doing lol....I'd really like to see the other 6000 lines of the query though lol... bheh... lol...
On a side note: looks like we are back to pretty decent, and not abstract WTFs!
P.S. No, I don't blame VB on this one, I blame the developer. Even VB programmers have better design than this lol.
Admin
lol
Admin
lol
A few months ago, the person in the cube next to mine had a similar problem. He needed someone to make a few changes to a PowerBuilder application. He was stuck trying to use a coder we all call Hammer ( for what he did to our baseline) . Hammer made the changes and used all default computer generated variable names. The data window was used by many parts of the application and was basically unuseable.
CAPTCHA=perfection
priceless!
Admin
<FONT face=Tahoma>Now that's genuine WTF...
And what's wrong with the temp table lmmtj1MancaAllPubb that it needs to be commented? Why drop lmmtj8MancaAllPubb twice? Where's lmmtj3MancaAllPubb and lmmtj4MancaAllPubb? Oh my head...
</FONT>
Admin
and eleven different projects named NewProject1 through NewProject17.
Shouldn't this be NewProject1 through NewProject11?
Admin
What happened to the other 5 projects?
Admin
duh, in italy, there are no numbers 4 through 9
Admin
you mean 6
Admin
The other 5 obviously never made it into production, so they never integrated them into the NewProjectXX framework. They're probably out there, and they probably still have whatever crappy default name they had when they were created.
Wait...
Admin
Or maybe Antony took them with him..... Job Security.
Admin
Or maybe some people drove into their business in three different mini coopers and stole the other 6 projects. After all this is "The Italian Job"
Admin
Now I learned VB but it seems to me that miaFunzioneSecondo_3 will always equal to 1 after going through the above code. wtf???
Maybe I'm not seeing it properly, I'll place the code on a wooden table and.....
Admin
I meant to say Ia neve learnde to speaka ina V-a B-a
Admin
or to type English for that matter
Admin
Did I miss the part where "antony" is ever set to true? I'm guessing no.
Admin
Only if 'antony' is set to True.
Admin
No. That's some godawful global or modular-level variable.
Admin
It's quite obvious. The projects were as follows:
1) NewProject1
2) NewProject2.6
3) NewProect4.2
4) NewProject5.8
5) NewProject7.4
6) NewProject9
7) NewProject10.6
8) NewProject12.2
9) NewProject13.8
10) NewProject15.4
11) NewProject17
Admin
And thank god they didn't drop table #lmmtj1ManacaAllPubb ... then the procedure would crash.
Admin
I like folks who think outside the box...
Admin
I blame VB for encouraging people to use typeless variables - who knows what grouppo1-3 are?
Variants suck (in anything other than a <100 line script).
But I like the parameter name.
I bet there was a lovely On Error statement somewhere - how about a special WTF dedicated to error handling?
Admin
Did Francesco exclaim "MI SCUZI!" when he learned that Antony was also "Brillant"?
Admin
Indeed, vb is a great language. It just makes more sense! Just consider this:
If VB Is Nothing Then
compared to if(VB == null)
Set VB = VB.next
compared to VB = VB.next
Do While Not VB.next Is Head
compared to while(VB.next != head)
It's much closer to natural language, and I think it really is the way to go. I think an improvement would be Set VB To VB Dot Next and Do As Long As Not VB Dot Next Is The Head Of A List. Especially "The" and "A" is missing from most languages, giving them a childish apperance.
CAPTCHA: billgates
Admin
I discovered, in our code, an error handler that sent an e-mail to our group notifying us of the error.
This would not normally be a bad thing, but it was in a CATCH block that caught errors in sending an e-mail.
Admin
Admin
My poor friend, you have been reading too many of these. I fear that you have lost sensitivity. There must be a 12 step program for such ailments. Bottles or cans will do...<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
My question to you all is this? How do you gracefully get out of these ‘welcome to hell’ type jobs? I am in the middle of one right now…<o:p></o:p>
Admin
If you see 11 different projects, named form 1 to 17, then maybe there are also some, not-so-different projects. A safety copy, perhaps. As to the function presented, it's obvious that the aim of that function is to find the duplicated value - so it might be used to find those copies. I must admit that using 'Or debug_please_work' technique is not new to me. However, I'd rather not use my name for that purpose - it could annoy the compiler/debugger and in such a moments you'd prefer to calm the beast. The thing that bugz me is...if the script deletes some tables...than it's probably they were used during The Process, but the only process that I've learned about so far, that requires so much "Foto"s, requires also a special kind of tables...wooden
Admin
How can this query ever run?
Admin
You can really only fake your own death about once a decade before the authorities start to get wise.
Admin
and believe it or not, my situation is with a system that is 'new' and designed like this wtf....
load, aim at foot, pull trigger...
-SPT
Admin
Obviously the key to the whole procedure is in this line
Admin
I bet Antony = true when he's back from his honeymoon
Admin
I haven't seen anyone point out that setting antony=true will always get the first result (miaFunzioneSecondo_3 = 1). You'll never fall through to the elseif's, so why did he bother including the other "Or (antony = True)" statements?
captcha : you have been eaten by a grue :)
Admin
oops, just found where Carnildo noticed this... carry on!
Admin
Well, we know one trick that works... get married. Re-marry if need be.
Admin
<font face="Courier New">goggles:
db 90h
jmp goggles
</font>
Admin
- timbaland & magoo
Admin
<FONT face=Tahoma>thatsa spicy meataball!</FONT>
<FONT face=Tahoma></FONT>
<FONT face=Tahoma>lol, had to...</FONT>
Admin
So it seems that Francesco is getting f**ed at work while Antony is getting f**ed on his honeymoon.
Admin
see, if only you all spoke italian, you would realize 'lmmt' makes the entire program make sense....
Admin
I have pretty much respect for people like Francesco because they have the perseverance to hunt down 6271 lines of code in a stored procedure just to find out that their colleague obviously is an idiot.
Admin
...explain