Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Perl Popularity

by Abigail-II (Bishop)
on Dec 16, 2003 at 23:55 UTC ( [id://315179]=note: print w/replies, xml ) Need Help??


in reply to Perl Popularity

Seriously - PHP, wtf? Did I miss something?

Or do other languages hide similar gems? (Don't tell me PHP does, I won't believe you ;P )

Why complain that Perl isn't getting the attention you think it should be getting, if you yourself are eager to bad-mouth other languages.

Abigail

Replies are listed 'Best First'.
Re: Re: Perl Popularity
by kal (Hermit) on Dec 17, 2003 at 07:52 UTC
    If you read carefully, I'm not bad-mouthing other languages. Other language. Specific. PHP. I'm not slagging Python, Ruby, or any other of the interpretive bretheren (although I admit to not liking them - Python's whitespace in particular is a deal breaker). PHP at a basic level is a similar language to Perl. PHP has emerged from a specific problem domain, and is now being thought of as a general purpose scripting language. My thoughts on PHP mirror RMS' thoughts on TCL - it seems to be a pointless diversion. If people think PHP is easier to learn than Perl, I think they're wrong. However, that can't be happening through critical analysis, because apart from the specific case of code-in-web-page, Perl wins over PHP. Something else is causing people to think PHP is more suitable for work than Perl, to the extent they discuss it as above.

      If people think PHP is easier to learn than Perl, I think they're wrong.

      I think they're right. Pick through a copy of the Camel and see how many times they write something like "but be careful not to do x, because that actually does y, and the Earth will crash into the sun". PHP is derived from Perl, but avoids a lot of the shortcuts Perl implemented, so there is less for a new programmer to learn. However, this minefield of shortcuts is what makes Perl so nice to program in once you figure it all out.

      Additionally, PHP supports a lot of core functionality that is good for web programming. For instance, although I consider PHP's database layer to be broken, the fact is that it's in the core. The same can't be said for Perl's DBI. Likewise, Perl's CGI.pm is a beast of a module, even if all you really need is param(), header(), and maybe cookie(). PHP web programming tutorials cover those things in their first few chapters, but how many CGI/Perl tutorials out there are still teaching you to parse params by hand?

      ----
      I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
      -- Schemer

      : () { :|:& };:

      Note: All code is untested, unless otherwise stated

        Not sure about the Camel - I'm not sure there is a whole load of "don't cross the streams" stuff, although perhaps they do introduce some advanced stuff a little early. But, for example, if you didn't introduce arrays (I don't think PHP has them? Only hashes?) you save a whole load of oddness like $#array. Comparing the languages like-for-like, I think Perl is as easy if not easier in many respects. Maybe there ought to be a 'Really Simple Perl' Guide...

        I agree with the benefits of PHP, though. I hate the language, but my rant about it was that there is a real hole it's filling that Perl cannot touch currently, and I don't think it's anything to do with right tool for right job-ism. Your example of CGI is right on the money.

Re: Re: Perl Popularity
by BUU (Prior) on Dec 17, 2003 at 03:00 UTC
    Because it's fun bad mouthing other languages, duh.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-03-29 05:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found