|
To add to the noise here: all people bashing here, please remember webdev landscape around the time PHP got started (or around the time it got to version 3, which looked somewhat a real language). I started using PHP as a switch over from Perl (which had some powerul but cumbersome templating engines, and boiled down to much more boilerplate than PHP for the same task) or C-based CGI (that was not fun). So, I see PHP as an enabler to webdev to the masses. It was really hard to do "dynamic web pages", as these were called back in the days, in anything else, and it was a breeze in PHP. I believe this is why many people started doing it, which in turn resulted in developing better frameworks for better languages (like Rails, Django, etc.). Comparison with IE6 has been drawn. IE6 was the best browser in its day. The trouble is, it stayed dominant for far too long. The same could be said for PHP. If it was massively replaced by other alternatives by, say, the time PHP5 came out (which IMHO looks as the first PHP version that considered itself as a serious language; php<3 were gross hacks, php3 was nice, php4 was service pack to php3), then many woes now attributed to it would never have existed. I personally use Django nowadays for any new projects I do, having done stuff in PHP before. I have a hate/hate relationship with PHP, I consider it a very bad language as languages go, but it's still invaluable for quick hacks, in which boilerplate for other system takes more to generate than writing the 10 or so lines of PHP. |