http://www.perlmonks.org?node_id=439538


in reply to Re: thoughts on creating modular perl for web application
in thread thoughts on creating modular perl for web application

A lot of places use PHP as a glorified rendering layer on top of a Perl backend.
I am curious, but why? Why use a hammer to bang a 3" nail in most of the way, and then use a screwdriver to hit on the nail head to drive it the last quarter inch? Why not just use the hammer all the way?

Or, just throw away the hammer and turn the screwdriver around and make it into a hammer. Would justify the adage, "No pain, no gain."

--

when small people start casting long shadows, it is time to go to bed
  • Comment on Re^2: thoughts on creating modular perl for web application

Replies are listed 'Best First'.
Re^3: thoughts on creating modular perl for web application
by dragonchild (Archbishop) on Mar 15, 2005 at 12:06 UTC
    Because PHP started life as a Perl templating module. :-)

    Being right, does not endow the right to be rude; politeness costs nothing.
    Being unknowing, is not the same as being stupid.
    Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
    Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

      Because PHP started life as a Perl templating module
      Interesting. I had no idea. The funny thing is, afaik, Perl has way more templating options than PHP. I know of only one in the PHP world -- Smarty. Other than that, PHP code ends up being a mess of logic and display all munged together, much like Cold Fusion or ASP code does.

      --

      when small people start casting long shadows, it is time to go to bed
        I have to chuckle every time I hear about Smarty (even though I haven't seen it). The idea that a templating language would need another templating language is just ludicrous. {grin}

        -- Randal L. Schwartz, Perl hacker
        Be sure to read my standard disclaimer if this is a reply.

Re^3: thoughts on creating modular perl for web application
by Hero Zzyzzx (Curate) on Mar 15, 2005 at 15:35 UTC

    The rap is that PHP is very easy to embed in HTML and it has a reputation of being "easier" for non-programmers to use. Whether or not that's true is up for interpretation, but that's the rap.

    One example that I'm extrapolating is MacWorld.com because it's listed as a Bricolage site but has some deeper pages (like this one) with PHP extensions. Extensions don't mean much because you can tweak apache to do whatever you want, but that's my theory and I'm sticking to it.

    -Any sufficiently advanced technology is
    indistinguishable from doubletalk.

    My Biz