Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

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

by huck (Parson)
on Jun 07, 2018 at 22:54 UTC ( #1216151=note: print w/replies, xml ) Need Help??

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

My first programming experience was in APL/1500 via a 2741. APL could have arbitrarily long lines that would just wrap.

Next i went to cards and the FORTRAN limit of 66 for the code (5 for label, one for comment, 66 for code, 8 for seq). As i moved to dumb terminals, decwriters, IBM 2780/3780/3270/3279, Tek4010/4014, and others the 80 char limit still made sense. But these days i have migrated up, a max of 120 seems common, sometimes 130 or 140. My default window size is 120, and sometimes get a left/right slider. But i try to keep most of the code under 80. I find its lines with lots of static text that grow past that.

But i see nothing wrong in keeping it below 80, as it does make it easier to read and enforces a cleaner design to the code. Long lines of code, can be hard to follow

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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2021-02-25 00:26 GMT
Find Nodes?
    Voting Booth?

    No recent polls found