| « Prev | Page 1 | Page 2 | Next » |
|
Forty Two (or six times nine) |
|
This is truly a Kafka-esque WTF.
|
|
Who is Keyser Soze ?
|
|
A little eccentric, but I think it's pretty cool actually. I remember reading that story in highschool...
Just like the story, the code turned into a cockroach... or maybe it's not like the story, because cockroaches don't die. |
|
Who is John Galt?
|
|
cockroach = bug ... coincidence?
--------------------------------------- Chance favors the prepared mind. - L. Pasteur |
|
Well that is definitely a BUG in the program :)
|
|
At least they thoroughly documented it.
|
|
At least it was well commented.
|
|
People who dream up these sorts of names should be dragged in from their day off and made to debug an application with similarly obscure names under the eyes of an agitated client. Repeat until lesson learned.
|
Amen |
Re: Who is Gregor Samsa?
2006-07-11 15:17
•
by
Whacky Waving Inflatable Arm Flailing Tube Man
|
|
I'm thinking the name has more to do with the cockroach reproduction frequency, since this is an infinite recursion error. Could just be coincidence too...
|
|
I know in my days I've embedded snippets into CVS/subversion logs, and comments.
One time I put the entire intro from an episode of the twilight zone, and another time, the six million dollar man. "Submitted for your approval: one Max Phillips, a slightly the worse for wear maker of book, whose life has been as drab and undistinguished as a bundle of dirty clothes. And though it's very late in his day, he has an errant wish that the rest of his life might be sent out to a laundry to come back shiny and clean, this to be a gift of love to a son named Pip. Mr. Max Phillips, Homo sapiens, who is soon to discover that man is not as wise as he thinks, said lesson to be learned in the Twilight Zone." On a bugfix commit ;) I thought it was rather nice. Also: "Gentlemen, we can rebuild him. We have the technology. Better than he was before. Better, stronger, faster." On a commit to improve the performance of the innermost loop in a part of our application that was slowing down too much. PS object creation is slow, don't loop around it. |
And a Hallelujiah. Stuff like this is funny when you're writing it, but there should definitely be a price to pay when someone else has to deal with your "cleverness" later. |
|
its open source it can't have bugs oh and you haven't seen the spec </sarcasm> |
|
Sometimes I feel the same way as Gregor Samsa when I have to use XSLT...
"What has happened to me?", he thought. It was no dream....he was being forced to write XSLT!!! Oh Noos!!!11" |
|
This is a good one. We need more open source code WTF's. I know there a lot of them out there, as I've always been a huge open-source advocate.
|
Just make sure that object cleans up everything it needs to after every loop. I was caught off guard by this one day, an email class that I wrote, and used many times, but used only to send 1 email at a time. I had to send an email to about 20 clients about a problem with their orders placed over the weekend after a stored proc didn't get updated (#1 WTF) on Friday (#2 WTF) Seconds before running the script, the project manager wanted a CC on every email, and before then, I had the object creation inside the loop. After this request, I moved the object creation outside of the loop. The horror exposed itself after running the script and the send() function did not clear out items like Message Body, To, CC, BCC fields. Client #1 got the email perfectly. Client #2 got Client's #1 email, plus his appended to the message body Client #20... well, got to see all Client#1-Client19's messages and email addresses in the To: field. I almost hurled, then fixed the class.
|
From: Xalan Developer |
lol...#20 mustve had a VERY long Email to read |
From: The Apache Software FoundationDear Xalan Developer, Thank you for your past request. The Apache Software Foundation provides organizational, legal, and financial
Formerly known as the Apache Group, the Foundation has been incorporated as
to build and sustain the literal foundation upon which our open-source software projects are based. Like the other projects, we will need help to achieve this goal, and several groups have already contributed their time and effort to good effect. However, it is often difficult to find volunteers to perform the essential grunge work behind the scenes. We are in the process of putting together a support organization, using funds contributed by the Apache community, that will provide the administrative assistance needed to keep the projects moving at full steam.
|
|
A new take on literate programming...
|
|
oh, come on, this is no wtf :P
...that Apache Xalan, an XSLT processor... XSLT, which is a language for transforming XML documents... ...he found himself transformed... |
|
AHHH! The flashbacks!
http://thedailywtf.com/forums/thread/52710.aspx |
This is a very clever WTF. I mean, the guy wakes up as a cockroach and there is ZERO explanation of it. Even Samsa himself adjusts pretty quickly. Meanwhile, the reader is muttering to himself "wtf?" Same thing with The Trial, just drops the reader into the middle of a bizarre world with no explanation. It's a close analogy to most of the stories here, where somebody gets pulled into maintain code without any explanation of what's going on, and the deeper they dig... Why they would intentionally do this in public code is beyond me, though. Maybe some obscure design philosophy? |
|
And how simple it would have been to switch one line:
protected static String DEFAULT_TRANSLET_NAME = "GregorSamsa"; becomes protected static String GREGOR_SAMSA = "DefaultTransletName"; You can even keep the clever comment. |
|
I do this sort of thing all the time. But I never substitute cute remarks for proper comments.
Well... hardly ever. I have labeled the cleanup section of a unit with the comment "What am I, your mother?" but it was pretty obvious that it was just a cleanup section. -Wang-Lo. |
|
Actually, as soon as I saw the title I knew this had to do with The Metamorphosis. The real WTF is that he wasn't a cockroach. He was some other kind of beetle, according to novelist/entomologist Vladimir Nabokov. Really, Alex, spreading such falsities....tsk, tsk. |
|
Alex!! What has thou done?
**Apparently at this very moment, our dear Paula has taken notice and started writing comments of similar nature in her code. That unfortunately, has resulted in the exclusion of the unnaturally Brillant tragedy of the single system.out.println statement** |
I love this section of code, seeing as how the code is almost always added (checked in) to a repository that already tracks this. /* Change Log: Enter Comments Below 2002-11-01: USER A Fixed Bug with... ..... 2006-07-11: SMART-A$$ Go check the CVS logs and compare if you want to know what was done. DUH! No, we would rather have a huge list of changes dating back years that cause us to scroll numerous pages before we can get to the actual code. */ |
Damnit Jim, I'm a Philosopher, not an entomologist! |
What is the purpose of creating classes at runtime other than a WTF generator? |
"Nobody writes jokes in base 13." - DNA |
|
What's truly frightening about this is how widespread xalan is. It's the default transformer of Java.
Every time I see source from an Apache project, my confidence in all Apache projects dwindles. |
|
He is Franz Kafka! Franz Kafka! Be careful if you get him pissed… Franz! Franz Kafka! He’ll smite you with metaphor fists Right now he can, he’s just a man A warrior of words taking a stand He is Franz Kafka! Oh look, but there he is, what will he say? I’m a lonely German…a lonely German from Prague! Kafka! Kafka! Kafka! |
|
http://en.wikipedia.org/wiki/Gregor_Samsa You'll notice that the Wikipedia knew about this class all along! |
|
all along? well, a couple hours maybe
|
It's all the rage these days. runtime classes + reflection. Why write code when you can write code to write code (to write code(to write code(to write code( ... ))))? |
:-$ |
That's my favorite reference I've seen on this site... ever. Good stuff. BTW, have you seen this GoatCheez: http://en.wikipedia.org/wiki/Dethklok Where is Carmen San Diego? |
Oh I can't wait at all. I'm a HUGE metal fan. I think Dethklok will be one of the greatest shows ever. He is Franz Kafka! |
|
gregor samsa was NOT transformed into a "cockroach". This is a point of controversy, as the cockroach was a result of an overzealous first translation into english, and many (rightly) believe that it ruins the experience of reading it for the first time.
A more accurate translation is that he was transformed into a "bug" or "Monstrous Vermin" |
|
Reminds me of a programming test I did two or three weeks ago. It was the day before the soccer match Germany-Sweden, so, living in Germany, the task was to do a match-tracking tool (goals, time...). The lecturer predicted the actual result with his example, letting Germany win by 2:0.
I couldn't resist and wrote the text of the Swedish national anthem as only comment (except of registration no and my name). Still got the best grade :-) but Sweden lost :-(. |
|
I did this once.... Only it was sent to 9000 people.
Needless to say, the server was bought to it's knees and the hosting company was not happy. At all. |
|
Oh, the wonders of programmers completely stripped of any talent.
I think the author of that class ought to be identified (no, I haven't bothered to look it up), and ridiculed as the pretentious dinwit he is for failing to pick a self-explanatory name for his class (any, and I mean, ANY monkey of a programmer can do that), while at the same time trying to appear clever by namedropping characters from last century's most tedious, overrated, dystopian. |
|
I will really interested to know how the user of xalan library will reproduct the problem?
Can anyone show me the code that will trigger the problem? |
| « Prev | Page 1 | Page 2 | Next » |