- 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
Admin
TRWTF is php of course.
Admin
"2dn" => "Sceond"
Admin
Full of rage, Bruce shakes his fist at the computer screen. "Don't make me angry, mildly-WTF code. You wouldn't like me when I'm angry", he states. Next thing you know, Bruce's right index finger grows to twice its normal size. The transformed digit has become green and veiny. "HULK SMASH! WHERE 'SUBMIT WTF' BUTTON?! ARRRGGHHH!!!"
Admin
Give that coder a military programming contract. They're ready!
Admin
I don't see the problem. I have to get up at the crack of Wyoming every day.
Admin
But what about the other 49 states? I personally need to know when it's Texas o'clock!
Admin
It's obviously code language for use in a Spy system
Admin
Admin
"WTF" => "Brillant!"
Admin
TRWTF is "" => "".
Admin
What programming language uses '=>'?
Admin
That is not a line ಠ_ಠ
Admin
Admin
Our beloved PHP does.
Admin
WY, indeed!
Admin
As well as Perl as a "fat comma".
Admin
For some reason, it reminds me Balmer's "Except in Nebraska!"
Admin
Perl does, for initializing hashes, only it doesn't use the "array" keyword to do it.
Admin
Admin
I have a son who's a comma, and obesity is no laughing matter.
In Australia it is easier....
$times = array( "" => "", "12:00:00" => "beer o'clock", "17:00:00" => "happy hour", "01:00:00" => "last drinks, I'll take a slab to go...", "VB" => "only if you have nothing else");
Admin
TRWTF is that people don't get the 24hour clock. And no, it's not "Military time", the military just happens to use it.
Admin
Except the military in Wyoming, that is.
Admin
Who's ready, the coder, or the military? (Actually, I don't want that code anywhere close to lethal weapons.)
Admin
Scala too:
scala> def format(input: String) = input match { | case "12:00:00" => "12:00 pm" | case "18:30:00" => " 6:30 pm" | case "WTF" => "Wyoming" | } format: (input: String)java.lang.String
scala>
scala> println("12:00:00 -> " + format("12:00:00")) 12:00:00 -> 12:00 pm
scala> println("WTF -> " + format("WTF")) WTF -> Wyoming
Admin
Admin
Any array can be defined by =>
$foo = array(1, 2, 3, 4); // Equals $bar = array(0=>1, 1=>2, 2=>3, 3=>4); // 5.4 $foobar = [1, 2, 3, 4];
Secundum - You came in just after first, but require a photo finish to prove you are secundum.
Admin
TRWTF is they forgot:
"12:01:00" => "12:01 pm" "12:02:00" => "12:02 pm" "12:03:00" => "12:03 pm" "12:04:00" => "12:04 pm" "12:05:00" => "12:05 pm" "12:06:00" => "12:06 pm" "12:07:00" => "12:07 pm" "12:08:00" => "12:08 pm" "12:09:00" => "12:09 pm" "12:10:00" => "12:10 pm" "12:11:00" => "12:11 pm" "12:12:00" => "12:12 pm" "12:13:00" => "12:13 pm" "12:14:00" => "12:14 pm" "12:15:00" => "12:15 pm" "12:16:00" => "12:16 pm" "12:17:00" => "12:17 pm" "12:18:00" => "12:18 pm" "12:19:00" => "12:19 pm" "12:20:00" => "12:20 pm" "12:21:00" => "12:21 pm" "12:22:00" => "12:22 pm" "12:23:00" => "12:23 pm" "12:24:00" => "12:24 pm" "12:25:00" => "12:25 pm" "12:26:00" => "12:26 pm" "12:27:00" => "12:27 pm" "12:28:00" => "12:28 pm" "12:29:00" => "12:29 pm"
Admin
You forgot "Beer O'Clock"! Amirite?
Admin
Now do it again and include the seconds or it's not funny.
Admin
Some inside joke WTF should not be published. I am finding hard to get joke here.
Admin
We require timing down the the millisecond.
Captcha: Oh Yes Wyoming
Admin
Now do it again and include miliiseconds or it's not funny.
Admin
Now do it again and include spider monkeys or it's not funny.
Admin
Yes, urite, they sure did.
And no. It's not needed as it's always "Beer O'clock" somewhere.
<<downs beer>>
Admin
Admin
"Wye Knot?"
Admin
So long as it's "Wye Knott," this is good. (thanks, Heinlein)
Admin
Admin
Admin
Admin
Don't you get it?
If the date() function returns Wyoming, it will surely be the end of $times
Admin
M... O... U... S... EEEEEEEEEEEEEEEEEEEEEEEEEEEEE!
Admin
Of course, Wyoming is TRWTF.
Admin
Admin
Admin
"WH"? I say why not oming! taps cigar
Admin
Admin
The only acceptable time format is clearly MM hh ss.
So 30 6 10 reads "Thirty minutes past six and 10 seconds" like some Americans might say it.
Admin
At Dairy Queen they have rainbows on fire! Now that's funny.