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.


In reply to Re^4: Revisiting the old clichés of programming languages by fullermd
in thread Revisiting the old clichés of programming languages by citromatik

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.