- 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
For sure....
Bachelor Science, Majoring in Business Information Technology.
I scoff at any degree that adds 'Business' to the title....
Admin
Yes, quite a few "technical" books are very poor (or worse) quality. Fortunately there ARE some that are very nicely written: http://www.amazon.com/Programming-Language-2nd-Brian-Kernighan/dp/0131103628/ref=sr_1_1?ie=UTF8&s=books&qid=1270587120&sr=1-1 Unfortunately this is an exception to the rule (SIGH). If more books of a technical nature were written as this example, technical libraries would be MUCH smaller due to the consise nature of the content. For now we can only dream.
Admin
Noone able to find an equivalent Steve? Well, that is a coincidence, that a perfectly anonimized (?) name like Gary comes up with such results....
Admin
Not knowing recursion is inexcusable. Why the "recursion is ivory tower" thing pops up on here every week (unless I'm being trolled?) just makes me weep. It's first week stuff. That there are even people out there in the profession who are so intellectually lazy to have avoid recursion for years and years explains pretty well why a site like TDWTF exists in the first place.
Admin
Maybe the poor fool forgot Perl and PHP were actually two distinct languages that are for the most part completely different.
Gary: But they both use the dollar sign thingy...
Admin
O my, I actually worked with the first author listed, after the book was written. I was shocked he had actually helped write a book. He then told me they had asked him to write another on cakePHP, I asked him "oh you know cakePHP?" his answer, "oh no I don't but I'll learn it before starting the book."
Admin
Don't go! He's probably this guy.
captcha: genitus - how appropriate
Admin
Pick one.
Admin
Haha, you haven't tried reading some of the games design bilge. Awful, incorrect, plagiarist, and often by the makers of the engine.
Mastering Unreal Technology in particular.
CAPTCHA: suscipit
Admin
(if (simple (syntax)) (love (I LISP)) agckdie)
Admin
From the book:
[image]
Stupid spam filter thinks my comment is spam! Well, it isn't!
Admin
No, no. More like this:
(if (hasProperty simpleSyntax LISP) (iLove LISP) agckdie)
Seriously, though. LISP has the simplest syntax of any language. It has only one data structure- the list. A list has only one rule- the first element in a list must be a function name. The value of a list is the result of applying the function to the other elements in the list.
There's obviously a lot more to the language- closures, macros, etc., but the actual syntax is simplicity itself.
Admin
if ($value) { // Thing to do }
Is perfectly valid in PHP.
Admin
Admin
Not really true. It has one syntax element, the op-code, and two data structures- addresses and registers. It's still syntactically simple, but op-codes are far less expressive than s-expressions.
"Give me an s-expression and a place to run it, and I shall move the Earth." - Lispimedies of Syracuse.
Addendum (2010-04-06 18:32):
Not really true. It has one syntax element, the op-code, and two data structures- addresses and registers. It's still syntactically simple, but op-codes are far less expressive than s-expressions. And this is all assuming one of the more common architectures.
And, of course, on a LISP Machine, many LISP operations are executed directly in hardware, obviating the need for machine code entirely. There are similar things for Forth and C.
"Give me an s-expression and a place to run it, and I shall move the Earth." - Lispimedies of Syracuse.
Admin
Wow, so… my edit broke, then. Ignore the first part, read the addendum.
Admin
I think what OP was saying (albeit not so clearly) that the 3 forms were equivalent in perl, however PHP doesn't allow the variations (only the original if)
Admin
Wow, I used to work with a "Gary" as well. Our Gary didn't comment on everybody's code, but he was just as incompetent. He talked his way past management as well, even insisted on a very special keyboard that he needed (which I'm using now, it's actually pretty good). He kept asking the simplest things and never got his head around objects. Apparently at some point he just stopped learning, even commenting sometimes "I don't need to know this." When one of his really simple projects, a simple multi-step sign-up form, bombed completely, he was finally let go.
Representative lines:
and
Last I heard he was programming iPhone apps. Which is amazing, since apparently he learned something new. But even the description in the AppStore has apologetic undertones a la "App depends on 3rd party service, if it don't work, me no fault."
Admin
Somebody fails at reading comprehension.
(Hint: isset() is not 'if'.)
I see your LISP and raise you Forth. Forth doesn't even need the parentheses! (Imagine an RPN calculator generalized to a complete programming language, and that's basically Forth.)
Now, if we're only talking about languages that are actually usable by human beings, I'll agree and say that LISP has the simplest syntax. :)
Admin
"Vulputate" is when you cut off your fox.
Admin
Admin
Forth is one I haven't played with. I'm working on playing with Haskell in my free time.
Admin
Me neither, I got as far as Therd and lost interest....Sekond was pretty cool, though!!
Admin
Admin
Recursion's inherently hard for some people because it requires you to think inside out.
Now, concurrent processing, that requires you to think and not think simultaneously.
Admin
11 jobs in 10 years looks like one weak "spark" to me...
Admin
Disclaimer: I know nothing about PHP.
On to the point, does PHP have pointers? If it was a pointer, then at least the isset would make sense, right?
Admin
Nope, PHP doesn't have anything like a pointer, just the "assign by reference" semantics that most dynamic languages have.
Admin
Well, it explains why a lot of books are nothing more than paraphrased Help files. I prefer to spend money buying software to learn first hand, rather than books about the software.
Admin
Sadly I understand recursion but can't use it were I work. We use MUMPS which does not handle it well(tends to die).
Admin
did anyone else misread "homey" as "horny"?
Admin
Gets the mumps....
Admin
Aww man! You scared him away!
Admin
This story is a fake, too big.
A book about PHP that wouldn't speak about arrays ???
What's more, the featured PHP statement really looks like one which is invented by an average coder that would think like "what would be the worst possible statement ?"
I mean, why would Gary have written that ? What would he be trying to do ? Even retarded, even drunk, even the baddest coder ever wouldn't write this. This never happends in real life.
But now you have 300 comments on ThedailyWTF, here's the glory...
Admin
You must be new here
Admin
After reading all these comments on how difficult recursion supposedly is compared with loops and arrays, I suddenly feel so 'smart'... though I used loops in BASIC, when I switched to HyperTalk, for ages I didn't realise loops still existed (I guess I couldn't find 'wend' in the documentation?) and did all looping by recursion. I even had to put in some extra code to avoid the 'too much recursion' errors when I recurso-looped too many times. My only excuse is I was 14 at the time and it was only my second programming language.
With WTF skills like that, I could have been a star.
Admin
This is a very WTF attitude. I have also had a lot of jobs in the last 12 years, back in the late 90s the contract market was like that. There was also a dot-com crash in 2001 and you were lucky to get any work at all. In the mid-2000s a lot of companies were starting to outsource their work out. The decisions are usually made by someone upstairs with regards to head-counts and has nothing whatsoever to do with the person's programming ability at all.
I also have no reason to believe that this is the same Gary, in fact the person in the real story probably wasn't even called Gary, they change names here...
Admin
Other stories are credible. This one is not.
With most of other stories, you can tell "Well, I can see how he went wrong", most are about wrong solutions to known problems.
He it's as credible as a ten-years old child who says "hey, I know a guy who's so stupid that one day, he forgot how to walk"...
if echo(isset($bob + 1000))... Who can believe this ? I mean, what can be the context ?
Admin
Admin
Advanced PHP for Flash? Thats like "Get the plague while you still have cancer. And gonorrhea for dessert!"
Admin
Admin
I kinda see your point, but human stupidity knows no bounds.
I once worked in a team which hired the self-proclaimed "best Perl programmer in the country". When he had finished his first piece of work, I had the job of reviewing it (review, mind you, this was supposed to be tested code), and the code he handed over was so screwed up that it wouldn't even compile. He was escorted out of the building the next day, still protesting that he was a better programmer than all of us....
Admin
Was it this guy?
http://en.wikipedia.org/wiki/John_of_Nepomuk
Inviolability of the confessional is TRWTF
Admin
But here, I cannot even find one single case in which the stupidiest guy on earth could write something like "echo if(isset($bob + 1000));". Please tell me just one case, one weirdest way of thinking.
Second thing, it would mean that the guy had never launch his code during all those X weeks. Because if he writes this, then he has for sure written such things everywhere in his code. Actually, it would mean that the guy has never written PHP before, simply. Even programming, because he doesn't even know what is an "if" here...
And when you don't know what is an "if", then you don't know what is an array either.
Admin
And yes, human stupidity HAS bounds. Sometimes it transcends your imagination, that's all :D
Admin
Finaly, now i know who to blame for me being fired ! Rick, i will get my revenge !
Admin
Beginning PHP, Apache, MySQL?
Admin
God help us. How can geeks shake their reputation for not knowing how to behave around women if they get to Therd and lose interest. The goal is in sight man!
Admin
((((((((((((((((((((((((((((((((((((((((( ))))))))))))))))))))))))))))))))))))))))) ((((((((((((((((((((((((((((((((((((((((( )))))))))))))))))))))))))))))))))))))))))
Admin
That line was copied directly from the submission. I don't know the context either, but having seen similar code in the past, I find it quite plausible.
chortle That pretty much sums up my feeling on PHP and Flash. More the Flash than the PHP.
Strings and arrays aren't really needed in LISP. And quote, quasiquote aren't syntax- they're functions that have an optional syntactic sugar. You could remove the sugar without changing the language.
But mostly, I love LISP because I secretly love parentheses.