Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

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.

Replies are listed 'Best First'.
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?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2022-01-22 12:10 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (62 votes). Check out past polls.