Click here to Skip to main content
15,881,764 members

Survey Results

Do you limit the width of your source code?   [Edit]

Survey period: 26 Jan 2009 to 2 Feb 2009

76 columns? 100 columns? Anything and let word wrap deal with it? How do you swing?

OptionVotes% 
Yes, so that it can be printed easily1126.08
Yes, so it fits on my screen89548.61
Sometimes yes, sometimes no51628.03
No31817.27



 
General79 Pin
Asday25-Jan-09 20:24
Asday25-Jan-09 20:24 
I started limiting the width because of Python PEP0008, but then I realised it's a damn good idea. I've got a line somewhere that's something like:

atta = charset[source]["stats"]["baseattack"] + weaponset[charset[source]["equipment"]["weaponID"]]["attackboost"] + armourset[charset[source]["equipment"]["armourID"]]["attackboost"]


Or at least, it would be, without limiting it to 79 characters.

My current reason is, if I ever do work on joint projects, or anyone wants to read my code, it's rude to make them scroll sideways. Sideways scrolling is the work of the devil.

EDIT: Haha, I also now realise the irony that someone will need to scroll sideways to see the entire line. Oh well, the presence of a horizontal scrollybar at the bottom of the screen is proof enough, of my point.
JokeRe: 79 Pin
ed welch25-Jan-09 21:15
ed welch25-Jan-09 21:15 
GeneralRe: 79 Pin
Asday25-Jan-09 21:31
Asday25-Jan-09 21:31 
GeneralRe: 79 Pin
ed welch25-Jan-09 23:28
ed welch25-Jan-09 23:28 
GeneralRe: 79 Pin
Asday25-Jan-09 23:34
Asday25-Jan-09 23:34 
GeneralWhat, the massive penis didn't do that? Pin
Naruki26-Jan-09 18:57
Naruki26-Jan-09 18:57 
GeneralRe: 79 Pin
Schmuli25-Jan-09 22:43
Schmuli25-Jan-09 22:43 
GeneralRe: 79 Pin
Asday25-Jan-09 23:07
Asday25-Jan-09 23:07 
GeneralRe: 79 Pin
zwickerr27-Jan-09 6:34
zwickerr27-Jan-09 6:34 
GeneralRe: 79 Pin
PIEBALDconsult27-Jan-09 6:25
mvePIEBALDconsult27-Jan-09 6:25 
GeneralThe width of my screen. Pin
sucram25-Jan-09 19:33
sucram25-Jan-09 19:33 
GeneralRe: The width of my screen. Pin
Jason Barry26-Jan-09 2:48
professionalJason Barry26-Jan-09 2:48 
GeneralRe: The width of my screen. Pin
sucram26-Jan-09 19:22
sucram26-Jan-09 19:22 
GeneralHey, I'm #1 Pin
Jay Riggs25-Jan-09 18:06
Jay Riggs25-Jan-09 18:06 
GeneralRe: Hey, I'm #1 Pin
bob_K7IQ25-Jan-09 18:45
bob_K7IQ25-Jan-09 18:45 
GeneralRe: Hey, I'm #1 Pin
Reelix25-Jan-09 19:08
Reelix25-Jan-09 19:08 
GeneralRe: Hey, I'm #1 Pin
PIEBALDconsult25-Jan-09 20:24
mvePIEBALDconsult25-Jan-09 20:24 
General80 Pin
Great Crested Dave25-Jan-09 20:33
Great Crested Dave25-Jan-09 20:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.