Python is a newer language and definitely has a strong advocacy surrounding it. I've heard Python users upbraiding Perl users because they think their language has a better OO model. (Personally, I really like the freedom that Perl gives you in its OO model, though some things like interfaces and the ability to use enforced public and private methods, perhaps through pragmas, should at some point find their way into the Perl lexicon.) In a couple of years, Ruby will be the up-and-comer and its advocates will be upbraiding Python users for not using the "most OO" language.
But what is true now and what will be true in five years is that they're all fine languages, each with strengths and weaknesses, and any one of them will do what any of the others do about as easily in the hands of an experienced programmer.
(The only exception to this is the CPAN, which allow Perl users to stand on the shoulders of giants. Undoubtedly in a few years Python and Ruby will have their own versions of the CPAN well-stocked with valuable contributions, though Perl definitely has the first-mover advantage here.)
So when I am asked what language is the best, my response is to ask several questions: What are you going to try to do? What do other people you know (and who could give you help or mentorship when you need it) use? Which community do you find to be the most open and helpful?
I've tried Python and keep coming back to Perl. Personally, I think the freedom it gives me as a programmer is important. The CPAN is incomperable in every sense of the word. And it's just turned out to be the most practical choice in most situations.
But one is not clearly better than another by any means. In fact, they're really two sides of the same coin. And your choice should reflect your goals and preferences, not some esoteric argument about style that hardly matters to the efficacy of a programmer in either language.
My primary hope as I watch the communities evolve around Perl and Python is that they do not get mired in squabbling about who is the best (like identical twins calling each other ugly) but that they take the spirit of the open source community to heart and cooperate on such projects as Parrot to their mutual advantage.
In reply to Re: Perl vs Python
by Starky
in thread Perl vs Python
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |