Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^5: Poster child applications?

by BrowserUk (Patriarch)
on Aug 26, 2007 at 05:43 UTC ( [id://635092]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Poster child applications?
in thread Poster child applications?

Why do people consistently choose PHP over Perl?

First off, I'm not at all sure that you are right in that assertion.

It might be true, or it might not, but the truth is, I simply don't care. If you think that PHP is a 'better' choice than Perl for writing your web application, then by all means use PHP. I won't try to stop you.

And I won't argue with your reasoning either. Whether you think it's better because 'everybody is using it'; or because you found a pre-existing application or framework that works for your application; or because you're one of the thousands of intelligent, well-educated, but otherwise 'newbie' programmers that are getting into web programming every year and simply find PHP easier to get into.

In fact, even if you decided to cut to the chase and take all ambiguity and subjectivity and chance out of the equation by setting up a suitable research project to decide definitively, which was better. You know, take two teams, of equal numbers of experienced PHP & Perl web programmers; Set them up in controlled conditions before handing them both a brief for (say) a shopping site. Something reasonably meaty. Say 1,000 suppliers; 10,000 products; automated CC processing for say 5 major cards; two different physical locations with one each of a front-of-house web-server and back-of-house DB & MIS machines; load sharing between the FOH machines and DB replication between BOH machines.

If you did all that and came here with definitive proof that the PHP set-up was faster to program and more reliable in production, then I might listen carefully to the information and bear it in mind if I ever had to program a similar web application. But until then, I will continue to use Perl for most of what I do, and other languages, but not PHP, for those parts of my projects that need that.

But when you come here and tell me that: "loads of people are using PHP instead of Perl and we should do something about that". I'll say: Why? Why should I care what other people find best for their coding? And why do you?

and asked about a project to increase the visibility of Perl and got called an idiot for his trouble.

I didn't call anyone an idiot. I simply pointed out that popularity of a coding language is no measure of its effectiveness, and fitness for purpose. And to choose your programming language on that basis is a very questionable decision.

I wear spectacles and have done for many years. Over the last few years, the commercial, high volume, fast throughput chains of opticians have succeeded in making glasses a fashion item. And with that, they brought about the vogue for wearing heavy framed, narrow lensed spectacles. Made them the 'in thing'. So much so, and so successfully that it became almost impossible to find light-weight, wire-framed, full-lensed glasses in many chains, because no one would buy them as they were seen as 'old fashioned'.

The problem is, if you talk to a ophthalmologist who's livelihood isn't derived from those high-volume, fast throughput chains, they will tell you that heavy framed, narrow lenses are trouble. They are almost impossible to fit with bi-focal or vari-focal lenses. They can cause physical strains because of the need to rotate the head up and down and side to side, rather than just the eyes as nature intended. But still, millions bought into the narrow is new, modern, fashionable.

Of course, now everyone has the narrow ones, the marketeers will look to sell us 1980s style snooker glasses. Or 1950s elasticated side, small rounds. Or whatever else they manage to capture the popular psyche with. Cos that's what they do.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^6: Poster child applications?
by Gavin (Archbishop) on Aug 26, 2007 at 10:05 UTC
    "Why do people consistently choose PHP over Perl?"

    From a strictly newbie point of view starting to learn both Perl and PHP one of the things that immediately struck me with PHP was the built in functionality that allowed database manipulation and subsequent display in web pages so readily.

    This gives a learner instant gratification that they have a working solution/answer and I think that initial buzz sticks, they then continue to use it regardless whether it is the best option or not.

    Again from experience of “taught languages” as opposed to “self taught” it is unusual for a University student in the UK to get the opportunity to learn both. It is far more likely that PHP will be an option Perl being offered only on very few courses Artificial Intelligence and perhaps Information Systems for example.
Re^6: Poster child applications?
by Cap'n Steve (Friar) on Aug 26, 2007 at 06:45 UTC
    I agree that it's a little strange to care how popular your favorite language is, but it's definitely a human trait to want to be part of the "winning team" and I think a lot of people on this site do care. I guess you can justify it by saying that the more popular Perl is, the more job opportunities you'll have.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-24 22:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found