Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^4: Revisiting the old clichés of programming languages

by fullermd (Priest)
on Jan 27, 2009 at 09:34 UTC ( [id://739134]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Revisiting the old clichés of programming languages
in thread Revisiting the old clichés of programming languages

I would go with more yes than no, personally. (Note: I write PHP for a living. Try not to hold it against me :)

Yes, PHP has serious inbuilt failings. But in general, outside of a relatively few places, PHP doesn't get its denigration for them; it gets it for the lousy code written. And most of that (again, with a few outstanding exceptions) isn't lousy because of language failures, but because of programmer failures.

I would say the primary reason for that is that the PHP crowd is full of people who aren't programmers who learned PHP, but rather people who picked up PHP and became programmers. It's so easy! You just take that static webpage you already have, change the extension, and cram a <?php in one place to add a randomized quote, or show the current time, or do SSI a bit more expensively (but these days, more portably). Bam! Suddenly, you're on the path to writing programs, without any programming background.

Most of the PHP you run across was written by people who didn't have a programming background when they wrote it. That's why it's got all the failings it has. PHP may make it easy to do some stupid things, but its failings aren't directly at fault in most of those situations.

If the programmers involved had picked up equivalent knowledge of perl or python or lisp instead and were using it, they'd have written code that was equally broken. They just generally don't, because you don't tend to learn most languages unless you're a programmer (or consciously trying to become one). PHP's positioning makes it an excellent gateway drug for people who don't even know it's a drug.

  • Comment on Re^4: Revisiting the old clichés of programming languages

Replies are listed 'Best First'.
Re^5: Revisiting the old clichés of programming languages
by ikegami (Patriarch) on Jan 27, 2009 at 13:58 UTC
    I haven't dealt with any such code. I only dealt with professional, clean PHP code, and I still didn't want to touch it.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://739134]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-04-16 22:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found