Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: To <=80 char code line length or not

by hippo (Bishop)
on Jun 08, 2018 at 09:27 UTC ( [id://1216176]=note: print w/replies, xml ) Need Help??


in reply to Re: To <=80 char code line length or not
in thread To <=80 char code line length or not

I think it's a lucky coincidence that the console width is near the optimal width for eye movement.

I think it's an excellent design choice that the console width is near the optimal width for eye movement.

While it's not a cast-iron rule, I do tend to keep code lines under 80 chars. It's easier to read, easier to debug, prints neatly on pretty much any output device and encourages critical thinking. All IMHO. For collaborative code, perltidy is the winner.

perlcritic (at least version 1.125) seems perfectly happy with absurdly long lines, which is somewhat surprising.

  • Comment on Re^2: To <=80 char code line length or not

Replies are listed 'Best First'.
Re^3: To <=80 char code line length or not
by LanX (Saint) on Jun 08, 2018 at 13:10 UTC
    Maybe I'm repeating myself, but the problem here is that code is actually a twocolumn format!

    (At least mine which IS often documented to the right.)

    So it also depends on the documentation style, one can have a 80 column model and reserve comments to separate lines.

    edit: I agree about perltidy , which has enough option flexibility to pacify a quarreling team. ;-)

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-03-29 15:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found