Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: PHP (and Perl) at Yahoo!

by grantm (Parson)
on Oct 29, 2002 at 20:55 UTC ( #208872=note: print w/ replies, xml ) Need Help??


in reply to PHP (and Perl) at Yahoo!

Interesting article - it really looked like they were determined to select PHP from the outset. mod_perl clearly won all their benchmarks (except for higher memory usage) but they chose PHP. They were worried about unreadable code (a potential problem they foresaw with Perl) but they chose PHP - and they found code in HTML makes for unreadable and hard to change code.


Comment on Re: PHP (and Perl) at Yahoo!
Re: Re: PHP (and Perl) at Yahoo!
by moxliukas (Curate) on Oct 30, 2002 at 13:25 UTC

    I am programming PHP for a living and it is a bit strange that everyone points out that PHP mixes HTML with code and that is a bad thing. Me personally never mixes code and HTML. There are template engines to do the code separation (Smarty comes to my mind, and a Lithuanian phemplate engine). So mixing PHP and HTML rarely happens, especially when you do big websites in OO style (PHP OO support is still very limited though)

      I agree one hundred percent that abstracting your code out into OO modules with templates to render the HTML is the most sensible way to manage code for big web projects - but if you're going to do that, why use PHP? That's a serious question - I don't understand why someone would want to turn their back on the wealth of pre-written code in CPAN in order to use a language which was 'designed for the web' only to use that language in the exact same way they would have used Perl. In Yahoo's case, the decision is even more impenetrable since they already have a large investment in Perl code.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://208872]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2014-10-22 00:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (112 votes), past polls