- 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
FIRST!
this text for fooling the spam bot!
Admin
should be FRIST here, no cannot because, I wasn't fast enough yet!
Admin
256 is 80 in hex so there's a new WTF where a hex number is read as a decimal number and someone needed a constant
Admin
What is that rubbish? Lines of five, seven and five give a real haiku.
Admin
Admin
Admin
In Hyderabad, if you are writeing code this teribal, you are ending up on unemployment bench.
[image]Admin
Oh - DCRoss posted a second before me. Base 32 as "hex"??
Admin
Lead flies from the tube, Brass, spirals down towards the ground, As does the victim.
Admin
The JUnit test case makes sense, at least a bit. If you start a JUnit test class without any test, it fails with an exception. But if you want to have a super class for your tests, it usually does not contain any tests, and JUnit will accuse this. Solution: Just implement such a non-sense test and be fine.
Admin
Should let you all know That Haiku-style comments suck
Admin
The theory that a haiku contains 17 syllables and that there's anything special about this is singularly a geek meme.
That this is also considered a form or poetry demonstrates that most geeks should stick to what they're good at.
For future reference, things you might find in a good haiku: . 17 morae . a seasonal reference . a juxtaposition separated with a "cut"
Admin
Insert missing line
Admin
5.8.5. Fail. Brass falls down towards the ground
Admin
I bow down in awe at your skill to summarise Wikipedia.
Admin
I was counting towards as 1 syllable... sometimes my memory gets retarded on me. Anything else you want to nitpick at today?
Its been a while, maybe it was brass spirals towards the ground.... I no longer care.
Admin
FRIST!
// Edit as necessary... #define FRIST 16
Admin
Haha, that comment Had me in fits of laughter Do another one!
Admin
Pretty sure "for the elusive '!' operator" was meant
Admin
Admin
Admin
Admin
FTFY
Admin
Admin
Towards is one syllable to me, also. I'm U.S. Midwest, overlaid with North Florida/South Alabama. Stand your ground!
Admin
Yea, I think its 1 syllable too, but the internet disagrees with me.....But then again, I don't pronounce the 'T' when I say mountain. My grandma on the other side of the country adds an 'R' when she says wash. Its 'warsh' to her. I still have trouble understanding people in Boston. Regional dialects and accents can be fun.
Admin
Ah, so you pronounce it as if it rhymes with cord.
Admin
And don't get me started on the pronunciation oddities of folks from that large country north of Mexico. (Hint, I'm originally from the small country between Ireland and the North Sea. My accent has been well stirred by time there, 9 years north of Mexico, and several years in the north of France. I sound a bit like a Ch'ti when speaking French, I'm sure.)
There is, of course, the more general problem of bath versus bahth, tomahto versus tomayto, etc.
Admin
By the way, I'm surprised nobody has bothered that guy who complains anytime someone posts an xkcd yet - you all missed the perfect opportunity to post a relevant one that I bet you has never been relevant to any previous tdwtf post. Much like Fahrzin's: xkcd.com/153
That said, akismet apparently dislikes xkcd, too; it thinks I'm spamming on his behalf. Wonder if more words would help?
answer: yes.
Admin
As previously stated: The Real WTF is using XML.
Admin
That tmpnum one ... just looks like some interpolation is being done. Further info needed, but doesn't seem as WTFish as all that.
Admin
Fixed.
Admin
I pronounce it more like "tword" so sorta...
Admin
The invertBool thing is the result of too many idiots enforcing OO rules that everything has to be a method, lest you have a procedural program.
Admin
(Yes, I know it's not haiku, but I could be arsed to write a correct one now)
Admin
So...the replacement for the '!' operator includes the '!' in its code. WTF.
Captcha: wisi - What I see is. I don't normally post captchas, but to give this a spin on Descartes: "I see, therefore you are."
Admin
Admin
(I'm getting there, much better than my limerick)
Admin
While the variables could certainly be named better, to me this looks like someone is trying to position something some percent of the way in a range. tmpnum's 4, 5, and 7 are the lower bounds of the range and 2, 3, and 6 are the upper bounds. tmpnum and tmpnum1 are the percentages.
Of course, variables like 'left', 'right', and 'percent' might have been helpful.
Admin
tmpnum6 = tmpnum2 + tmpnum * (tmpnum4 - tmpnum2); tmpnum7 = tmpnum3 + tmpnum * (tmpnum5 - tmpnum3); tmpnum8 = tmpnum6 + tmpnum1 * (tmpnum7 - tmpnum6);
Its part of a drum machine chang1 chang2 tata0 tata1
feel the beat
Admin
Why all this bother About temp variables Just shut the f*ck up
Admin
Oh, or:
Yes, this could be part of a 2-axis lookup. Incidentally, the math is the same in both cases.I wonder what other problems fit this code?
Admin
Admin
It actually may be a Canary test. It is an odd way of doing it (not naming it Canary test), but could serve the same purpose.
Google TDD Canary tests...
Admin
TRWTF is that someone considers Haiku so amazing as a poetic art form that we all know what it is.
Admin
The lack of a comma on the first line disturbs me.
Admin
Admin
Admin
Admin