Think that's sums up "the PHP factor". Discussions with Java/.NET types re. PHP typically end in "but it works" or "but I'm already finished" from the PHP side.
Who really cares how pretty the code is as long as it is fast, efficient and produces good error-free results?
That is the bottom line isn't it? If it works properly than fine. Once it is working, no one is going to see the code regardless of how "pretty" it is.
That's another summing point of view.
What is it about PHP that makes it so good for web projects? On the face of it, it looks like half-*** Perl or or scriptlet-based JSP pages. I mean all the bad things we're supposed to be getting away from with MVC and JSTL is included in PHP. Yet, the language is used quite efficiently and well. Yahoo uses it for a ton of projects, all the best web-based BBS systems are written in PHP and now WordPress impresses as well.
Very true. It's not just coding styles in PHP as well. Things also start to get awkward when you start asking things like "So can I really lock down PHP with safe mode?".
You tackle PHP in a very theoretical way. It was never meant to have anything like object orientation in it, it started off very much as a templating language. You touch on the improved OO of PHP5 - and yes, while it is going to be almost like Java, it will never be quite like it. After a couple of years of OO programming, I still think of myself as a beginner when I approach, for example, OO patterns - really fascinating. But, if PHP was a tree, you are grabbing the branches with your discussion, rather than looking at the root, as that is where the problem lies.