Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2018-12-18 19:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many stories does it take before you've heard them all?







    Results (80 votes). Check out past polls.

    Notices?