To the author: doesn't the fact that you have to point out all of these things to avoid say something to you about core issues with the language?
To the author: doesn't the fact that you have to point out all of these things to avoid say something to you about core issues with the language?
To you: doesn't the fact that you myopically dismissed the entire article due to a single paragraph say something about you? Why are you looking for a flamewar where one doesn't exist?
I get it -- you don't like PHP. That's your prerogative, and you're of course entitled to it, but this article isn't just another skirmishing ground for the flamewar that is "PHP SUCKS" vs. "NO IT DOESN'T". Rather, it looks to me to be more of a braindump from a PHP dev looking to enlighten new PHP devs with what he's learned.
Is that so patently offensive to you that you have to attempt and interject the played-out flamewar that is now a decade old?
Do we really expect the language elitists to actually read articles now? Just say something bad about PHP here and you'll get 20 instant upvotes. We're getting as bad as reddit here.
As someone who uses PHP, I found this article very enlightening.
I think PHP is to a large degree a victim of its own success. The runtime's ubiquity means that a lot of very incompetent people are fiddling around with things they don't understand. If you look at, say, PHP-related questions on Stack Overflow, you'll notice they are of extremely low quality that have nothing to do with PHP itself, but have everything to do with the person behind them not understanding the simplest things about programming.
I know I've fallen into many of the traditional PHP traps simply due to what I call language laziness. "Why do it this way when the other way is so much faster". PHP allows you to do quite a few things wrong very quickly.
I'm a closet PHP fan, but not compared to "better" languages like Python.
What? Can you give a single example?
The author is just giving some good advice to PHP programmers. If you don't like it, just don't read it.
There have been numerous responses already that debunk many of the claims presented there. Suffice it to say, you came to this with your mind already made, and nothing is going to change it.
So, why bother?