- 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
How about something latin and sexy?
http://tinyurl.com/yckewje
Admin
So which travel agent is this, STA? I'm too lazy to actually make up a holiday and go through the booking process to check.
Admin
When dealing with things like Australia and New Zealand, one must remember that Australia thinks of New Zealand as a subsidiary This is how people in the USA think of Canada.
To which I comment: You mean it isn't?
Admin
The problems are:
Admin
Do you think maybe Paula wrote it?
Admin
Admin
Вы действительно знаете русский язык или притворяетесь с помощью словаря/википедии/гугла/etc?
Admin
Admin
Why are you guys writing in Wingdings?
Admin
Admin
Admin
that made my day... i can't stop laughing
Admin
The Australian who wrote that first worked for either AT&T or SCO; when working on Altos' SCO UNIX/386 years ago, I ran into this regexp which did an extensive dictionary check on changed passwords:
/[Pp][Aa][Ss][Ss][Ww][Oo][Rr][Dd]/
Curiously, at my very next job I met a manager who claimed to always use the word "password" as his password.
Admin
OMG! LOLZ forever WOOT!
Admin
That's amazing. I've got the same combination on my luggage.
Admin
I assume they would have done that if only tourists never needed to log into their travel website while in Australia.
LOL - now THAT would be a WTF.
Admin
I see what you did there. +1
Admin
SHENANIGANS!
Admin
Odd:
Admin
Admin
Admin
Оно и видно. Смотри, как правильно:
Или, если использовать возвратный постфикс, то так:
Но лучше:
Admin
I'd say New Zealand is part of Australia, the continent. The Bahamas is part of North America, just not the United States of America.
Admin
Admin
http://intertran.tranexp.com/InterTran?from=eng&to=ltt&type=url&url=http://thedailywtf.com/Comments/RegExp-From-Down-Under.aspx?pg=3#286999&Submit=Translate
(You'd get a proper link, but apparently I'm a spammer.)
Admin
I call those big islands down under Nieuw Holland and Nieuw Zeeland. That's what Tasman called them after all.
Admin
Folks, there's a good chance that the author knows how to write a more succinct regex. That's not the WTF.
TRWTF is premature optimization. In particular, character classes are about 1.5x faster than an equivalent expression using ignorecase. See the following: http://weblogs.asp.net/justin_rogers/archive/2004/03/20/93379.aspx http://stackoverflow.com/questions/32010/is-regex-case-insensitivity-slower
Admin
Uhhh...excuse me? Since when? Javascript is normally enabled by default.
Admin
lynx says no...
Admin
Admin
The real problem is letting the user type in the name of the country -- you can't possibly check for every variation.
Left the opportunity to do so, I would probably type in "Aotearoa" -- a perfectly legal and legitimate alternative for "New Zealand", and commonly used within NZ.
Admin
The regex is pretty bad, but more to the point, who would have a input box to type the country rather than a dropdown!?! oh dear!
Admin
You should know! We've been writing in them for the last 12 WTFs!
Admin
Fortunately, by the time they're going senile retiring to Australia raises the average IQ of both countries. :)
(Also, some people take those jokes a little too seriously...)
Admin
There's no 'L' in Ostraya.
Admin
Dude, WTF? By mentioning Excel you've given yourself away, VBS tosser. I am LMAO @ U
Admin
Every programmer have a different way to do the same thing, but not all have a compiler in the brain that warn him about his stupid code..
Captcha: sino.. spanish of "ifnot" lol
Admin
Expedia, is that you? :-|
Admin
Dude!
if (inputbox.value.toUppercase() == "AUSTRALIA") alert ("You cannot be in Australia");
Admin
Sure the guy that did this use Regex for everything! Learned an obscure thing and tried to use it everywhere cause it took him years to figure it out!
Admin
Or, you know, you want to book your American girlfriend tickets to see you. Basically, where you are has nothing to do with where you live.
And, for all the regex hating, this would be equally a WTF if he were trying this via string parsing or token checking or whatnot. It's an awful regex, but TRWTF is that he didn't realize what kind of problem he had.
Admin
Just write the country name in another language. Isn't French an international postal standard language along with English? So AUSTRALIE or NOUVELLE-ZÉLANDE.
Admin
Even if it is not enabled in Lynx by default, it is still normally enabled by default. Since most users on the Internet are using Internet Explorer or Firefox, it is normally enabled by default.
http://www.w3schools.com/browsers/browsers_stats.asp
Admin
So there are now two new countries on Earth:
Australiaa and New Zealandd
Admin
I believe you will like it, shopping will bring endless pleasure
Admin
100% 925 sterling silver; made according to original edition at 1:1 ratio Good quality with attractive price Many choice for your consideration on our web site There must one
Admin
Either that, or var test = inputbox.value; test = test.toUpperCase(); if (test != "AUSTRALIA") alert ("You cannot be from Australia to use this site");
Admin
Another example of why, when I become dictator of the world, I will ban Regular Expressions and CSS. These so-called "technologies" have no business in a world of programmers with the ability to think logically.
Admin
Hahahahahaahahahahhaha you're hilarious... I most certainly hope you're joking. But if you're not, please produce some more of your code on this site. Look forward to it!
Admin
299