|
Posted by Benjamin Niemann on 10/30/05 02:19
mbstevens wrote:
> Jonathan N. Little wrote:
>
>> With respect to CGI, Perl is more abstract but compact with the CGI.pm
>> than PHP. But I must say that PHP's ability to intersperse bits of code
>> thought static HTML with the common namespace has made it a better
>> choice for dynamic page creation. I still prefer Perl for for the
>> 'behind the scenes' management functions...
>>
> Actually that's one of the things that bother me about PHP.
> The w3c goes through all the trouble to separate markup from display
> with CSS, and along comes PHP, and starts mixing programming code with
> markup.
That was the reason that drove me away from PHP. PHP is nice to quickly hack
some 'dynamism' into a HTML document. But this 'mix html & php' approach
leads to a total mess for more complex applications. Of course you can use
templates and strict code/html separation in PHP, too. But experience shows
that one is too often faced with projects that started small (where the
'PHP approach' is acceptable) but evolved in pretty complex applications.
> Handling pages through Perl templates is much cleaner. HTML::Template
> Mason and the Template Toolkit are really nice.
>
> The lack of a facility like CPAN is also a hindrance to PHP. Perl can
> be used to write anything from neural networks to higher math and
> controlling the Gimp with little more than a use statement.
I would argue for Python though ;) But pleeease don't get me involved into
another language war....
--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://www.odahoda.de/
Navigation:
[Reply to this message]
|