Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: 78/80 chars perl line still a meaningful rule

by ww (Bishop)
on Oct 19, 2012 at 03:54 UTC ( #999858=note: print w/ replies, xml ) Need Help??

in reply to 78/80 chars perl line still a meaningful rule

Count the chars in a typical line in a newspaper column. It will vary a bit with the format of the paper, but generally won't exceed 40-50.

There may be a (retro-justification) reason for that: a good deal of research on comprehensibility identifies something in the 40-60 range as optimal (given the head and eye movement issues cited by talexb) and that isn't far off from AM's offering at Re^2: 78/80 chars perl line still a meaningful rule.

But code is NOT prose and that fact may be an argument for even shorter lines in code (allowing for occasional longer ones if those don't split reasonably. Generally, tho, I find that a 2 or 3 char indent on an extended line (ie, one with a CR that isn't really supposed to end the line).

Comment on Re: 78/80 chars perl line still a meaningful rule

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (16)
As of 2015-11-24 22:09 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (663 votes), past polls