Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: The REAL reason for why they choose PHP over Perl.

by phaylon (Curate)
on Jun 12, 2006 at 10:45 UTC ( [id://554780]=note: print w/replies, xml ) Need Help??


in reply to Re^2: The REAL reason for why they choose PHP over Perl.
in thread The REAL reason for why they choose PHP over Perl.

Depends on the POV. If you're a programmer, sure Perl gives you better tools, if you're not biased. If you're just a wannawebpage newbie, things like lexical scoping with my, closures, map, grep, contexts and alike are things you can't imagine to be useful. You just want HTML escaping, mysql (and all other supported database drivers) all other tools you use stuffed right into the namespace of your mywebpage.php4.

Sure PHP has bigger usages and *is* and *can* be professionally used. But in my view that's neither the majority nor the part that started this hype.


Ordinary morality is for ordinary people. -- Aleister Crowley
  • Comment on Re^3: The REAL reason for why they choose PHP over Perl.

Replies are listed 'Best First'.
Re^4: The REAL reason for why they choose PHP over Perl.
by adrianh (Chancellor) on Jun 12, 2006 at 14:57 UTC
    But in my view that's neither the majority nor the part that started this hype.

    The vast majority of Perl, on the other hand, is produced by programming gods, and is always a thing of beauty :-)

    Seriously though - I agree completely. It's just that PHP is neither:

    • Half as bad as many people say it is - especially since PHP 5
    • Only used by incompetents.
      It's just that PHP is neither: Half as bad as many people say it is - especially since PHP 5

      Well, IIRC there are still no namespaces, it's still thousands of functions from hundreds of libraries I did not invite partying in my basement. The calling conventions are still organized like Alice's wonderland and there are no closure-like things. Calling "call_user_func" with an array just doesn't count :)

      Of course, it's still a question on how to define "bad." It's surely not bad per se, as nothing is, but it is for me personally for a number of reasons (some stated above).


      Ordinary morality is for ordinary people. -- Aleister Crowley
        Well, IIRC there are still no namespaces, it's still thousands of functions from hundreds of libraries I did not invite partying in my basement. The calling conventions are still organized like Alice's wonderland and there are no closure-like things. Calling "call_user_func" with an array just doesn't count :)

        But with fairly decent OO support we can stick things in classes, which gets around the lack of name spaces most of the time. Lack of anonymous functions and closures is a pain - as is the huge mess of inconsistently named subroutines.

        No it's not the best language in the world. It's definitely not my favourite language by quite some way. Neither is it a completely inappropriate choice for professional work.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-04-25 09:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found