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

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.



Log In?

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (11)
As of 2018-11-20 15:22 GMT
Find Nodes?
    Voting Booth?
    My code is most likely broken because:

    Results (225 votes). Check out past polls.