Don't get me wrong, I'm coding some Php right now for a client and I love it. But this article Php sucks by Jonas Maurus makes some good points.
Yeah, he has some points for sure. But the benefits of PHP (easy to start with, and still able to handle complex tasks, open source and available to free server systems to name a few) make the decision very easy for me.
I agree that there are some very valid points there. But, for moderately difficult to simple tasks, php is still better than anything else for web applications.
You can't blame the language for spagetti code. Anyone can write poor code in any programming language.
Php has some bad points, like not forcing variable declaration which can make it hard to track bugs. At least you have to spend more time and code very carefully.
his not making several thousand a month thanks to PHP obviously anyways if you cant program dont program! ive seen some bad PHP, Java, C, C++, Scheme code in last few years and most of the time its just down to sheer laziness on the programers behalf alot of people dont worry about things like SQL injection untill their script is hacked, or worry bout slow forums because their database aint properly indexed
PHP can be a powerful language in the hands of a competent programmer. I'm sick of all of these "language wars" that are posted by people trying to get attention. PHP serves its own purpose just as Java and C serve their own. Every language has its both strengths and weaknesses, and to point out one language and say that it is somehow inferior by only providing negative information is both opinionated and ignorant. All this amounts to is FUD, and the person who wrote it is narrowminded and perhaps arrogant.
PHP rocks. It's easy to learn, program, implement, huge user base, lots of free code samples, encourages Open Source progects, eneables us to have powerful & affordable web apps... should I go on? Heck, COBOL is still being used by large banks and financial institutions so why shouldn't we be using PHP? to each his own...