It is very easy to write illegible code in any language and Python is no exception to that rule.

It is very easy to write incomprehensible code in any language and Python is no exception to that rule.

It is very easy to write inefficient code in any language and Python is no exception to that rule.

It is very easy to write unportable code in any language and Python is no exception to that rule.

Perl is not holy, but neither is any other programming or scripting language. I'd even say there is no perfect language. Each language will serve its own public and audience. I've been confronted with problems with both languages in the past, and if you look though what you say is write-once code (and there are enough ways to make that readable fast if needed), I have found that fixing failures in perl is waaaaaaay easier than fixing problems in python. But of course YMMV.

Perl is a brilliant language, ideal not only for beginners, but for experts and wizards as well. Python on the other hand is an ugly language that cannot be moulded into something beatiful because it thinks "There Is Only One Way To Do It" would be ideal for anyone (but me). Python syntax might be easy (easier) to read than Perl's syntax (for beginners that is), but that is by no means a guarantee that that syntax is better, more efficient or easier to maintain. As python only gives you one wheel, if that wheel doesn't work you're fucked, as there is no other wheel available. The only options in that case imho are 1. give up, 2. use perl. That is why python programs are left to die and perl programs keep evolving.

Just my view on the matter. And no, I do not hate Python. There is a best tool for every problem. Quite often that is not Perl, but most often it is not Python.


Enjoy, Have FUN! H.Merijn

In reply to Re^2: perl python compare by Tux
in thread perl python compare by bhupeshwalde

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.