- 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
frist for the frist time?
Admin
surely you mean /^(F|f)(R|r)(I|i)(S|s)(T|t)$/
Admin
TRWTF is that this REGEXP is readable.
Admin
This brings me back to the horrors of creating offensive word filters for forums.
Now that was some regex. Pages of the stuff.
Admin
That could be written much more readable:
/(australia)|(australiA)|(australIa)|(austraLia)|(austrAlia)|...
Admin
Readable? That's how you know it's an invalid regex...
Admin
And if we entered it's official name of "Commonwealth of Australia", can we get the deal?
Admin
TRWTF is that they didn't use a combobox for the country.
Admin
I love how the function just returns without returning false. Looks like it will just allow you to post Australia anyways.
Admin
In its own way, the script "works". It was probably written to some very specific requirements document (probably the greater WTF!). But it "works", and as the saying goes: "If it works it is aesthetic." (no matter how awful the implementation).
It probably remained in production because someone said "If it works don't fix it!" (TRWTF!).
Admin
Yep. Definitely a different place, that one. Also, "New Zealand" or "Australia " and even " Australia".
Addendum 2016-07-06 14:42: The comment actually trimmed the double space in "New Zealand". There is supposed to be double space there.
Maybe their system also had that?
Admin
Another of these geographical conundrums that some websites present, designed to irritate New Zealanders bigtime, I expect: New Zealand _is_outside Australia. UK residents in Northern Scotland have similar problems: many British courier companies insist that the region does not form part of the "UK Mainland", regardless of what cartography might show.
Admin
Apparently they want people who use the wrong site to emigrate, since all it does is pop up a box to tell you to go elsewhere (no link! better memorize it!) and then focus on the country so you can change their address. Was it really too hard to just redirect to the other site?
Admin
You think that's bad, tell some Catholic Dubliners in a pub how they're the greatest Brits you've ever met. Or for bonus glassing, the greatest Englishmen.
Admin
If you want to go through a large number of cases 2^9 + 2^10
Admin
TRWTF is that it doesn't reject "ɐᴉlɐɹʇsn∀".
Admin
Read the below pdf, page 6.
http://stg-tud.github.io/eise/WS11-EiSE-08-Software_Quality.pdf
Admin
Wow, the pdf they ripped it from even has a screencap of thedailywtf.com. I don't know how they thought no one would notice.
Admin
So TRWTF is the shoddy formatting of the spacing between the words in the alert due to lack of care where the substrings are joined together, yeah?
Admin
Love the bug in the anchoring.
Admin
So, when they originally posted this in 2009, they were ripping off a PDF that, by all indications was written at least later than 2010, probably 2011 by its naming. Interesting theory.
Admin
That pdf's examples all seem to come from thedailywtf ... bear in mind according to the site, http://stg-tud.github.io/eise/ it was published in at most 2011/12 private bool trueandorfalse(bool _booInpt) - http://thedailywtf.com/articles/The-Clever-Coder function checkContactCountry(inputBox) - http://thedailywtf.com/articles/RegExp-From-Down-Under
Admin
There are a bunch of economic treaties between Australia and NZ that go partway to making a common market out of them. There's nothing stopping an Australian buying or renting property across the Tasman and using that as their residential address; pop over every couple of weeks or so to pick up the mail.
(On-topic aspect left as exercise for the reader)
Admin
The biggest fail is the message. Even from here in USA I can hear New Zealanders screaming, "I don't live in Australia you ________!"
Admin
Agreed. This is what I was attempting to convey in my previous post. Not sure I succeeded.
Admin
Wow, they hadn't even heard of character classes.