- 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
I'm waiting a 4chan style raid against that poor guy
Admin
I started losing faith in tech books around the time I read O'Reilly's "Linux System Administration". I skimmed through it at the store thinking, "hmm this looks pretty decent", and bought it.
Later on I thoroughly read the chapter on NTP, which included a description of the algorithm and some other interesting bits. At the end of the chapter was a half-page or so on how to actually set it up. So how do you use NTP? You set up a cron job like this:
0 0 * * * rdate <server>
headdesk
Closer examination of other topics yielded other oddities, but that's the one I remember. It spent the next couple years bouncing around on the passenger floorboards of my truck, being used as a footrest. It was good at that.
Also, my captcha is surprisingly close to "fellatio". Coincidence or prophecy?
Admin
True, it could be that, but that print statement still has nothing to do (no variable or expression except the magical $_).
Granted if it was Perl he could have been using that (I would call that extremely bad style in anything but oneliners). But I do not think that $_ is in PHP (although I do not work with PHP at all, so I could be wrong)
Yours Yazeran
Admin
Gary sounds like a typical dailywtf.com commenter :)
Admin
The real Nepomuk
http://en.wikipedia.org/wiki/Johann_Nepomuk_Hiedler
Admin
It's thedailywtf.com, and you forgot the period at the end of the sentence. Good thing I'm here to police these crappy comments.
Admin
NO WONDER THAT PHP BOOK WAS TERRIBLE! It all makes sense now!
Admin
Hi there, mystery editor. I like your name.
Admin
just a matter of context, obfuscating and non-space-whitespace in function names. watch this working example:
http://www.sui.li/if.php http://www.sui.li/if.phps
Admin
I nominate you for the official code explainer of the Daily WTF.
Admin
And if you look at his LinkedIn page, you can see that he has had 11 jobs in as many years :)
http://uk.linkedin.com/in/garymailer
Admin
One of the worst programmers (though a very nice person) I ever worked with went on to publish several programming books. I thought about purchasing one or more out of curiosity but I didn't want to waste my money. Strange how those who "can't do" seem to think they can teach.
Admin
You really think you can only put a variable in an if()?
You're hardly the person to be commenting on others' code now, are you.
Admin
Admin
Admin
Aside from being about the 10th person to bring up that book, did you ever think not only might "Gary" have been changed from the real name ("Steve"), but PHP could have also been changed (from Perl)?
Admin
Those that can't teach, sell.
Admin
All right, I give up. Why "Linear Failure Structure"?
Admin
A linear failure structure is a programmer that doesn't understand linear data structures.
Admin
I demand to know real names here. After all, we as developers have an obligation to our fellow programmers to know what books are written by useless hacks.
So... what's the book he wrote?
Admin
On second thought, I blame your reading comprehension skills.
Admin
...wouldn't that be a "linear structure failure"?
You're just trying to confuse me!!1!
Admin
Gary?
http://www.amazon.com/Beginning-Apache-MySQLWeb-Development-ebook/dp/B000QCS446/ref=sr_1_1?ie=UTF8&s=digital-text&qid=1270574434&sr=8-1
We even get a picture?
Admin
Admin
well i wont say it is all bad ... but most of the "learn in 24 hrs", "teach yourself in 30 days", and their ilk are uniformly bad, though i won't be surprised if there are exceptions.
and boy .. this gary mailer guy does seem to be a bragger kind of chap ... doesn't he ?
Admin
real name : Rollatomasi
Admin
"I can't get my head around arrays."
In my mind's voice, I read that as "I can't get my head around a raise." Obviously never kept a job (see other messages in this thread) long enough to get a salary increase.
Admin
Why would you use PHP or Perl on a CD-ROM website?
Admin
Admin
It's not surprising to see things like this. Garies are everywhere. I met a guy who was hopeless with programming. No hope, and eventually was let go. By some miracle or random chance, he was later working (or posing) as an expert in enterprise architecture. How the hell did that happen is one of those mysteries that are beyond human comprehension.
Admin
The problem, as usual, is management and their ignorant, bass-ackward direction. When I did a similar project, we developed the CD first. When it was done, I just took one copy, popped it in the optical drive of the web server, and bazinga! web site!
Yeah, it was a little slow, and fortunately we never took off to the point of having more than one user at a time...
Admin
Except, in the WTF that is PHP, they don't have to be identical cars. You can have a train containing some freight cars, some dining cars, a couple of cabooses, oh, and why not a tugboat or two while you're at it?
Yeah, yeah, I know, same with any weakly typed language.
Admin
Admin
You're hardly the person to be commenting on others' comments now, are you.
Admin
That goes for strongly-typed languages too. In C#/Java you can have and array of Objects, in VB you can have an array of variants, in C/C++ you can have an array of void pointers.
Admin
Pretty good dissection, Crash, with one small exception...
Some languages allow reversed condition/statements for various perverse and unnatural reasons. Perl and LISP are two.
All of these do the same thing in Perl: if ( $condition ) { statement; } $condition and statement; statement if $condition;
However PHP does not allow this, which suggests that "Gary" probably had exposure to another language and somehow brewed a confused awareness of general syntax!
Captcha: bene, as in NB: "Nota Bene" means "note well"
Admin
Admin
Mmm, I think you're mistaken about LISP. (if) is a function that takes three parameters: the condition, the s-expression to evaluate if true, and the s-expression to evaluate if false.
LISP does have a "when" and an "unless", however. (if (> a 5) b c) (when (> a 5) b) (unless (> a 5) c)
//I love LISP because its syntax is so simple.
Admin
Hey, great find! After all these posts it's amazing that you were the first person to come up with that.
Admin
Admin
Admin
And I thought the last guy who posted this was mind-boggling, but there you go and outdo him several hours later. What is this, a one-upmanship contest in posting stupidity?
Admin
I have a co-worker with an array fetish. He's a big fan of 2D arrays, so we see a lot of code that looks like this:
lblIDField = arrResults(i,j,10) + arrResults(i,j,15) + ": " + arrResults(i, j, 0)
//Most of this is in... Classic ASP shudder
Admin
Actully, I think the quote is:
Those who can't teach, adminstraight.
Admin
Admin
Arrays are obsolete. Today they are only used where a file system is not available, such as in embedded systems.
-Harrow.
Admin
I thought it was, those who can't teach, teach gym.
Admin
Years later huh?
Pre-broadband days you say?
Well, a lot can happen, given enough time. It's easy to just sit here and laugh, thinking Gary is still the dumb clutz he was at that time. But him getting fired might have been the spark he needed to take developing more seriously.
Admin
Admin
Gary, is that you?