Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by johngg (Canon)
on Jun 07, 2018 at 22:30 UTC ( #1216147=note: print w/replies, xml ) Need Help??


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

For the first seven or so years of my career I was a Fortran programmer so I was used to a 72 character limit so moving to 80 characters seemed like a luxury. I still try to keep code lines under 80 characters as it avoids problems with line wrapping and, to my eye, is neater and easier to read. I try where possible to set tools up with a longer default line length but still limit my code to less than 80. I'm also an advocate of plenty of white space and will write my $var = $hash{ key }->[ $sub ]; rather than my $var=$hash{key}->[$sub];. Again, it is easier to see what is going on, at least to my old eyes.

Cheers,

JohnGG

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2018-09-19 20:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Eventually, "covfefe" will come to mean:













    Results (170 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!