Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


#ActualRavyne

Posted 08 January 2013 - 01:48 PM

However, I like having the width of the screen, as well; code rarely stays within the 80 columns that are recommended, as far as I've seen.

 

 

QFE - Width only seems so excessive now because our monitors have given us so much of it, but they haven't given us so much that we can comfortably cut it in half, either (maybe with the new 21:9 monitors dry.png ). The 80-column idea is really just a hold-over from the days when screens and text terminals could only show 80 columns with reasonable fonts. Not that we should let our lines run on forever, but in modern times we can afford more than 80 columns, and I think doing so is a better use of screen real-estate than some of the creative formatting folks sometimes do to keep lines short (e.g. placing each parameter to a function call on its own line).

 

Personally, I usually set two column indicators in my IDE -- one at 100 columns and the other at 120. The first is "soft" -- tells me I should think about wrapping this line up soon -- and the second is "hard" I usually will break up a line that's longer than that. Even still, all my screens are plenty wide (My desktop screen is 2560x1200, flanked on either side by 1600x1200s in portrait orientation), and my laptop is 1920x1080. I don't cut my code off hard at 120 columns for *my* benefit, but for benefit of anyone else that might have to read it.


#1Ravyne

Posted 08 January 2013 - 01:47 PM

However, I like having the width of the screen, as well; code rarely stays within the 80 columns that are recommended, as far as I've seen.

 

QFE - Width only seems so excessive now because our monitors have given us so much of it, but they haven't given us so much that we can comfortably cut it in half, either (maybe with the new 21:9 monitors dry.png ). The 80-column idea is really just a hold-over from the days when screens and text terminals could only show 8 columns with reasonable fonts. Not that we should let our lines run on forever, but in modern times we can afford more than 80 columns, and I think doing so is a better use of screen real-estate than some of the creative formatting folks sometimes do to keep lines short (e.g. placing each parameter to a function call on its own line).

 

Personally, I usually set two column indicators in my IDE -- one at 100 columns and the other at 120. The first is "soft" -- tells me I should think about wrapping this line up soon -- and the second is "hard" I usually will break up a line that's long than that. Even still, all my screens are plenty wide (My desktop screen is 2560x1200, flanked on either side by 1600x1200s in portrait orientation), and my laptop is 1920x1080. I don't cut my code off hard at 120 columns for *my* benefit, but for benefit of anyone else that might have to read it.


PARTNERS