On Jun 9, 2005, at 10:10 AM, Jacob Cameron wrote:


You should grab a book on PHP before dismissing it.� Like ColdFusion you cannot just start coding without knowing how the language works or how to debug in it.

I actually know PHP really well from the standpoint of the language itself, and I'm not dismissing it, just pointing out some things.� Quite honestly I just never bothered to look into the configuration issues for a couple of reasons.� First, it's not *that* big of a deal and in most cases if I'm looking at blank space where there should be something I know it's probably just a typo, and with the parsing error I know what line it's on most of the time so again, not a huge deal, just an annoyance.

Also, in many cases people don't have access to their php.ini files, so if you're on shared hosting that doesn't let you edit this or if you're building on someone else's server and they don't give you access, you're stuck with what you get.� Sure, you can install everything locally, replicate the environment, etc. but if there's already a dev server set up for you and there's a minimal budget for the project (which is often the case with PHP projects), I'd rather spend my time cranking out the code instead of worrying about the configuration.

The other thing I run into time and time again with PHP projects is the horrendous junk code that others have written in PHP that I get hired to clean up.� This is a danger with CF as well, but I think PHP is worse because it is free and is so popular.� It's often just bad architecture regardless of the language in which it was written.� I'm working on a PHP project right now where the guy didn't even use includes for navigation--he literally cut and paste the code onto every page of the site.� Also, I don't think I've yet to come across a pre-existing PHP project that actually uses objects, which is interesting since that's one of the features that PHP proponents tout.� They're in there, they're good (more features than CFCs actually), I use them when I'm starting a PHP project from scratch, but I think they're widely underused in general which can make for some ugly, ugly code.

Matt
--�
Matthew Woodward


Reply via email to