Blaming the language for bad code is asinine. Blame bad (or inexperienced, or just plain lazy) programmers. I write PHP stuff. I also write Perl, C, C++, C#, Pascal, JS, and recently VHDL. I have written Java and Ruby code as well, but no longer do. Overall PHP is only as bad as the developer makes it. If I could change one thing about it, it would be getting the built in functions more consistent in return types and argument order for similar functions. I'm constantly referring to the documentation
I think the problem with PHP is the community. You can write good/bad code in any language. I spent some time trying to like PHP (admittedly not trying very hard) and repeatedly found things that drove me crazy.
Sometimes it was just the way you were encouraged to do things (Wordpress)
Sometimes I found ridiculous security holes (wordpress plugins)
Or practices that I just think are terrible (IIRC I was digging in Joomla code and found an "echo" buried several method calls deep)
PHP is fine (Score:5, Insightful)
Re: (Score:0)
I think the problem with PHP is the community. You can write good/bad code in any language. I spent some time trying to like PHP (admittedly not trying very hard) and repeatedly found things that drove me crazy.
Sometimes it was just the way you were encouraged to do things (Wordpress)
Sometimes I found ridiculous security holes (wordpress plugins)
Or practices that I just think are terrible (IIRC I was digging in Joomla code and found an "echo" buried several method calls deep)
Re:PHP is fine (Score:5, Funny)
The problem with the PHP community is that it's filled with the kind of people who feel it's good idea to work on PHP.