Note that Python's ideal/philosophy is not TIOWTDI (as is too-often straw-manned) but "There should be one-- and preferably only one --obvious way to do it.". This is more restrictive than TIMTOWDI but is somewhat aligned with "Easy things should be easy; hard things should be possible". The key bits there are:

* "do it" - solve a particular problem.
* "should" - language and library should be comprehensive
* "obvious" - there should be a canonical way to solve a particular problem (even though there will be an infinity of other solutions, and a functionally equivalent technique may be the correct solution for a different problem).
* "preferably only one" - Having only one canonical way to solve a particular problem encourages regularity of code. Regularity of code decreases the friction in picking someone else's code up.

These are hardly ideals unique to Python, nor (unfortunately) does Python always live up to them.

There is a price to Python's regular indentation and there are legitimate concerns people have with it, but 90%+ of complaints about Python's indentation are, frankly, kneejerk stupidity. The obvious way to structure a program in Python is to use four space indents, and editors do, but you can use whatever indentation you like as long as you indent sanely, and use line continuation/brackets if necessary. If you're masochistic you can program anything without indentation, but it's Very Very unpleasant.


In reply to Re^4: Some thoughts around the "is Perl code maintainable" discussion by MonkOfAnotherSect
in thread Some thoughts around the "is Perl code maintainable" discussion by oyse

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.