Women in Technology

Hear us Roar



Weblog:   Perl versus PHP 5
Subject:   Is it really a competition?
Date:   2004-08-19 08:09:12
From:   daniellindsley
I don't think Perl needs to do anything. PHP 5 is first getting features that Perl has had for years. Perl is far more robust and complete, with a much better license and more flexibility.


My problem with this discussion comes in here: I see Perl and PHP having two totally different focuses. Perl is extremely good at system administration and real data processing, amongst many other things. PHP is extremely good at integration with web pages and databases, amongst many other things. When I want to build a full-featured program, I head toward Perl because that is what it was originally designed for and inherently best at. When I want to build a dynamic web site, I go to PHP because that is what it is designed for and inherently best at.


Yes, you can perform system administration with PHP and you can build good dynamic web content with Perl (thank to relatively flexible architectures and the insane desires of the developers for their language to be "THE END ALL") but the point is that it's simply not as easy. And programmers should be about easy, both for us and for end-users. That's why we're using computers (make complex math and communication easier) and why we don't write web pages using assembler or binary.


And yes, I do realize I've oversimplified. I can't wait to see the flames on this...

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • Is it really a competition?
    2004-08-19 20:55:58  elanthis [View]

    "When I want to build a full-featured program, I head toward Perl because that is what it was originally designed for and inherently best at."

    As I recall, Perl was originally a better sed. Being an actual programming kind of just happened.

    Which, lo and behold, is precisely what is (sort of) happening with PHP.

    The advantages of CLI PHP are rather numerous, for some people. I use it a lot for web site utilities as it can use the support "libraries" I've written for the web sites themselves. Another huge advantage is that if you already know PHP, it's much easier to write an app in PHP than it is in Perl. PHP also has much easier to use OO facilities than Perl, which is important to some people.

    And really, trying to make Perl good for everything is just going to make it suck everywhere. Use the right tool for the job. PHP is great for dynamic web site content. Perl is best for other tasks. Which is fine. There's nothing wrong with knowing or using multiple languages.
  • Is it really a competition?
    2004-08-19 13:03:15  vdubberly [View]

    i don't think brian posed this as a competition, i think he is doing what alot of us should probably do more of. namely trying to imporove his community by looking at what has been effective for other communities. it's not "how can PERL be better than PHP", it's "how can PERL learn from PHP." what has made PHP so popular and is there something we can learn from in that?

Showing messages 1 through 2 of 2.