http://qs321.pair.com?node_id=592748


in reply to What is code readability?

Python readable, eh? One thing that currently stops me from further learning is missing some 'end' tag in various block definitions. Ruby has 'end', Perl has '}', but Python has nothing, except new indentation order. That kind of nihilism scares me :-)

Replies are listed 'Best First'.
Re^2: What is code readability?
by swampyankee (Parson) on Jan 03, 2007 at 16:51 UTC

    I'm in the group that finds Python less readable than Perl (or Ruby). I find Python's white space rules far too reminiscent of IBM's JCL. Perhaps oddly, I also find COBOL less than readable, mostly after being confused by nested block if's ending on a single period.

    emc

    At that time [1909] the chief engineer was almost always the chief test pilot as well. That had the fortunate result of eliminating poor engineering early in aviation.

    —Igor Sikorsky, reported in AOPA Pilot magazine February 2003.
Re^2: What is code readability?
by Errto (Vicar) on Jan 03, 2007 at 19:46 UTC
    This gets exactly to brian's point. Languages are not inherently more readble than others because of these design choices. I have not used Python, but I absolutely love Haskell, which has a similar layout rule to Python's. To me, knowing that my (or more importantly, someone else's) module won't even compile if a block is indented inconsistently is a great relief. For others, it may not be so significant.

      If only that were true...

      if DEFCON == 1: soundAlarm() launchMissiles() #oops