<br><font size=2 face="sans-serif">PHP is &quot;hated&quot; because it is improperly used. &nbsp;It is improperly used because it is easy to get started with ... and quickly becomes difficult to reorganize.</font>
<br>
<br><font size=2 face="sans-serif">One should not put large amounts of code into web pages. &nbsp;This leads to copy-n-paste coding, which is the exact opposite of Code Reuse. &nbsp;Take a look at most PHP open source projects and you'll see that they are struggling to *remove* PHP from their pages. &nbsp;If PHP in pages is such a good idea...why does Smarty exist?? &nbsp;A templating system for a template language???</font>
<br>
<br><font size=2 face="sans-serif">I'm not saying that there isn't good PHP...but just like Visual Basic, it is easy to get started, but often improperly used. &nbsp;Basically, it comes down to people starting on a project before they've figured out what they are trying to do. &nbsp;By the time they get an idea, they already have dozens (hundreds?) of pages which HTML and PHP intertwined and they aren't willing (unable?) to rework the code to clean it up....this leads to non-internationalized, non-browser-agnostic, invent-the-wheel-each-time websites.</font>
<br>
<br><font size=2 face="sans-serif">Not to say that Perl (or any other language) can't be similarily abused...but PHP has way too many examples of how *not* to write PHP that its hard to get newbies to learn the right way to write PHP...thus PHP is &quot;hated&quot;.</font>
<br>
<br><font size=2 face="sans-serif">Don't get me wrong, I use PHP in a number of scenarios...but always have to cringe when it comes to string manipulation &nbsp;;-)</font>
<br><font size=2 face="sans-serif"><br>
greg.fenton<br>
----<br>
Greg Fenton<br>
Consultant, Solution Services<br>
iAnywhere Solutions</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>&quot;Marko Vidberg&quot; &lt;marko@isfoundhere.com&gt;</b></font>
<br><font size=1 face="sans-serif">Sent by: kw-pm-bounces@mail.pm.org</font>
<p><font size=1 face="sans-serif">06/23/2004 01:40 PM</font>
<br><font size=1 face="sans-serif">Please respond to marko</font>
<br>
<td><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; To: &nbsp; &nbsp; &nbsp; &nbsp;kw-pm@mail.pm.org</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; cc: &nbsp; &nbsp; &nbsp; &nbsp;</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Subject: &nbsp; &nbsp; &nbsp; &nbsp;[kw-pm] why the hatred for PHP?</font>
<br>
<br></table>
<br>
<br><font size=2><tt>I coded in Perl for a number of years at my work for all our web projects,<br>
then we switched everything to PHP and I like it much better. &nbsp;I will<br>
still use Perl for my quick and dirty command line scripting but for web<br>
development how can you beat PHP?<br>
<br>
<br>
_______________________________________________<br>
kw-pm mailing list<br>
kw-pm@mail.pm.org<br>
http://mail.pm.org/mailman/listinfo/kw-pm<br>
</tt></font>
<br>
<br>
<br>