- 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
Actually, the way to open a link in a new window makes sense. The reason is that "target" attibute isn't valid in some XHTML doctype (I believe it's Strict, which else right). So in order to keep validity it has to be done this way.
Admin
How the hell someone creates a 83-parameter function and doesn't see anything wrong with that?
One can achieve only so much FAIL, FAIL, FAIL .
Admin
There's a cogent reason for defining SLASH = "/" and PERCENT as "%". They're control characters. When you want to build a string using them, in certain contexts, you don't want to muddy the waters by having to remember to escape them. Often more trouble-free to do it this way.
Admin
Agreed. That one isn't a WTF.
Admin
How the hell someone counts the parameters to an 83-parameter function and doesn't see anything wrong with that? Get back to work immediately!
Admin
true1: twice as false as any plain, regular false booleans out there.
I'll propose John D. to change the code to
for thrice the falseness.
Admin
Admin
link text
I don't know more than HTML basics, so I assume there is a way to do this without Javascript? Otherwise, I don't see the wtf.
Admin
The X-Backside-transport FAIL FAIL comes from IBM WebSphere DataPower SOA and it says it when it can't service the request.
Admin
Hmm, that seems to be missing something...
Much better.Admin
Clearly, the programmer in example 3 had practice for the company softball team on his mind.
Admin
Yes, but this is not valid XHTML way
Admin
Admin
Admin
Admin
Johnny B Guid... tee hee.
Admin
Admin
/**
That ain't so bad. Probably just a text when a var. is empty. although something like String blankText = "none"; or would have been better.
Admin
The "target" parameter is not valid in XHTML 1.0 Strict, so using it like that would not pass validation.
You have to consider your use-case with HTML, basically. Which makes HTML the real WTF here.
Admin
If you read TDWTF via RSS, TRWTF was the bizarre indentation of the various paragraphs in this article.
Admin
Anyone who got beyond the value assignment part of the tutorial understands that the value of NONE is initialized to "none" in this line. Relevant information would be the meaning of the variable in the code below and why it is initialized to "none".
Admin
Can someone explain what's wrong with the JS validation?
Looks like they are doing some crappy validation on the client side before sending it to the server for true validation.
Admin
Admin
Also, value for NONE ain't being constant.
Admin
The HTML 4.0 specification took away the target attribute, but it added another attribute: rel. This attribute is intended to specify the relationship between the document that contains the link, and the target of the link. The specification defines a bunch of standard values for this attribute (e.g. next, previous, chapter, section), most of which have to do with relationships between small sections of a larger document. However, the spec leaves the developer free to use nonstandard values for site-specific purposes.
http://www.sitepoint.com/standards-compliant-world/
Admin
Another thing you could nag about is the lack of localization, but this might not be required when the target demographic of the website are only english-speakers.
Admin
Indeed. The variable names suck, and the inconsistent use of the the return-value flag is sloppy, but those don't make this a WTF.
Admin
Yup. I've done this before when we're trying to achieve XHTML 1.0 Strict doctype.
Admin
Perhaps there is no further explanation as to the purpose of this string elsewhere in comments or design docs. That would be bad. I see no problem, though, in a) indicating the intention of the variable where it is defined, and b) not documenting the entire system at this particular location.
Admin
Links which open in new windows are TRWTF.
Admin
Sort of like software documentation in that respect, then.
Admin
I wondered about that, too, but it's also possible from what we see that dataok is a global variable (well, in which case it's not necessary to return it, unless it's to cancel the event bubbling up).
But yeah, spot-on with the rest of the analysis (and in all likelihood, with this part, too).
Admin
I like how they need a byte to describe the sex of a client. That's very… modern of them…
Admin
And the question is, "Why?"
OK, if you have to do it to satisfy the client, then you gotta do what you gotta do to get paid. But the requirement (opening in a new window, not XTHML compliance) is and will always be TRWTF.
Admin
For Type 1 Guids, there are some valid reasons for wanting all of the Guids from the same source. For Type 3 Guids, the reasons are different, less important, but still exist [however, I would be accused of being pedantic if I pointed out why...<grin>]
Admin
Kinky.
(And only with ClientPermission, please ... )
Admin
It is totally cause he could've put t13 with the rest of the required fields. I mean... WTF...
CAPTCHA: oppeto - You say oppeto, I say oppato
Admin
not bad indeed. it's just a workaround of not having language constructs like symbols in ruby.
Admin
Admin
This one is clearly cargo-cult programming:
if ( resData.state() == RESOURCE_STATE_ACTIVE ) { elapsedTime.setBase( resData.startTime() ); if ( elapsedTime.diff() >= maxDuration ) { // Do one more validity check, the paranoid programmer knows // the state may have changed since the last check. if ( resData.state() == RESOURCE_STATE_ACTIVE ) { resourceActiveTooLong( resData ); } } }
I'm strongly reminded of the test-lock-test pattern you often see with singleton creation.
Admin
I applaud them for acknowledging more than 2 sexes, completely logical in some cultures.
It gets creepy when really personal details about the guarantor gets recorded.
Seems like provision for secret agencies as well, neat.
Tinfoil hats looking good now, eh?
Admin
Akismet won't let me post the code, but you also have the situation where you want to conditionally compile something like a platform-specific path separator.
Admin
Maybe a bunch of slider controls would do the trick.
Captcha: genitus. How fitting.
Admin
Object Orientation took a core dump and cried at Giga B's submission
Admin
BS, this won't even "build". (That's is .NET's equivalent to "compile")
The function doesn't return a value.
Admin
As a .Net developer, I ABHOR the "throw ex" construct: It strips the exception of its stack trace, making debugging harder.
Admin
Bunch of crap.
Each code sample shown here with no explanation is like showing me a picture of an empty chair in front of a computer and then allowing me to guess what is wrong with the picture.
What a damned waste of time.
Admin
So much satisfaction in one line of code ... who hasn't wanted to do this at one time or another?
Admin
Three minor WTFs in one function! That's got to be some kind of record.
TRWTF is using a system that has makes you write the forms in one language AND validate them in another language AND validate them again in another language.
Maybe in a few years web developers will be able to use native HTML5 form validation?
Admin
"target" isn't valid in HTML 4.0 Strict either.