Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: What is code readability?

by Anonymous Monk
on Jan 03, 2007 at 12:27 UTC ( #592748=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2020-07-13 02:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?