Click here to Skip to main content
15,891,033 members

Survey Results

How wide is your sourcecode?   [Edit]

Survey period: 7 Aug 2006 to 13 Aug 2006

We get a lot of submissions with code that is over 200 characters wide. Do people really code like that?

OptionVotes% 
80 characters wide or less30221.90
100 characters wide or less26319.07
120 characters wide or less18713.56
Some value greater than 120 characters836.02
Depends on the IDE I'm using1097.90
Depends on the monitor I'm using23116.75
No maximum line length20414.79



 
GeneralRe: 80-90 Pin
Rama Krishna Vavilala7-Aug-06 15:22
Rama Krishna Vavilala7-Aug-06 15:22 
GeneralRe: 80-90 Pin
Michael Dunn7-Aug-06 15:48
sitebuilderMichael Dunn7-Aug-06 15:48 
GeneralRe: 80-90 Pin
John R. Shaw8-Aug-06 6:26
John R. Shaw8-Aug-06 6:26 
GeneralMostly 81 characters Pin
Hamed Musavi7-Aug-06 2:04
Hamed Musavi7-Aug-06 2:04 
GeneralMultiple Choice for Depends? Pin
Ed.Poore6-Aug-06 22:23
Ed.Poore6-Aug-06 22:23 
GeneralRe: Multiple Choice for Depends? Pin
Weiye Chen7-Aug-06 20:33
Weiye Chen7-Aug-06 20:33 
GeneralComments stretch the lenght out Pin
Gammill6-Aug-06 19:04
Gammill6-Aug-06 19:04 
GeneralRe: Comments stretch the lenght out Pin
Shawn Poulson7-Aug-06 4:11
Shawn Poulson7-Aug-06 4:11 
It's the other way around for me. Comments are strictly 80, but sometimes the code goes wider because it's easier to read. This is typical of code where you need to make.a.lot.of.object.derefences.with.long.member.names(with,lots,of,needless,parameters), such as in .NET and Win32 API calls.

I know better than to design my own structures like that.

---
Shawn Poulson
spoulson@explodingcoder.com

GeneralRe: Comments stretch the lenght out Pin
Paul Watson7-Aug-06 23:57
sitebuilderPaul Watson7-Aug-06 23:57 
GeneralRe: Comments stretch the lenght out Pin
PJ Arends8-Aug-06 16:21
professionalPJ Arends8-Aug-06 16:21 
GeneralRe: Comments stretch the lenght out Pin
David Veeneman9-Aug-06 3:42
David Veeneman9-Aug-06 3:42 

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.