Click here to Skip to main content
11,578,524 members (60,059 online)

Survey Results

Do you format your code?   [Edit]

Survey period: 15 Jan 2007 to 21 Jan 2007

Indentation? Whitespace? Lining up the equal signs? Do you make your code pretty or just type it in and not care how it looks?

OptionVotes% 
I am extremely pedantic about ensuring my code is formatted perfectly54635.09546 votes, 35.09%
I format my code carefully but not obsessively87155.98871 votes, 55.98%
I do the minimum formatting that will keep it readable1207.71120 votes, 7.71%
I never bother doing any formatting.191.2219 votes, 1.22%



 
GeneralTeam Settings file Pin
Mark Focas19-Jan-07 16:27
memberMark Focas19-Jan-07 16:27 
GeneralI don't like to break into a new line until the semi-colon ... Pin
Xiangyang Liu18-Jan-07 9:52
memberXiangyang Liu18-Jan-07 9:52 
GeneralRe: I don't like to break into a new line until the semi-colon ... Pin
wittend22-Jan-07 6:48
memberwittend22-Jan-07 6:48 
GeneralNot a 5-cent cigar, but . . . Pin
Balboos18-Jan-07 9:48
memberBalboos18-Jan-07 9:48 
GeneralRe: Not a 5-cent cigar, but . . . Pin
PJ Arends20-Jan-07 19:43
memberPJ Arends20-Jan-07 19:43 
GeneralRe: Not a 5-cent cigar, but . . . Pin
Balboos22-Jan-07 2:07
memberBalboos22-Jan-07 2:07 
GeneralCheckin reason: Whitespace fixes [modified] Pin
Anders Dalvander17-Jan-07 20:04
memberAnders Dalvander17-Jan-07 20:04 
One of the checkin reasons I use is: "Whitespace fixes."
It says it all how pedantic I am about formatting code.

Some free tips for all of you that love whitespace fixes is to use find/replace (and regex):

Removing whitespace at the end of lines:
Find ":b+$"
Replace with ""

Normalizing whitespace between words:
Find "{[^:b]}:b:b+{[^:b]}"
Replace with "\1 \2"

(Only for my own code that is... I don't go and "fix" other peoples code unless I need to add something in the source file.)

GeneralRe: Checkin reason: Whitespace fixes Pin
gleat18-Jan-07 6:25
membergleat18-Jan-07 6:25 
GeneralRe: Checkin reason: Whitespace fixes Pin
Jon Rista19-Jan-07 9:35
memberJon Rista19-Jan-07 9:35 
GeneralRe: Checkin reason: Whitespace fixes Pin
PIEBALDconsult19-Jan-07 16:46
memberPIEBALDconsult19-Jan-07 16:46 
GeneralHow hard is it ..... Pin
Mr.Prakash16-Jan-07 22:27
memberMr.Prakash16-Jan-07 22:27 
GeneralRe: How hard is it ..... Pin
jhwurmbach17-Jan-07 5:17
memberjhwurmbach17-Jan-07 5:17 
GeneralRe: How hard is it ..... Pin
Mr.Prakash17-Jan-07 5:20
memberMr.Prakash17-Jan-07 5:20 
GeneralRe: How hard is it ..... Pin
jhwurmbach17-Jan-07 5:24
memberjhwurmbach17-Jan-07 5:24 
GeneralRe: How hard is it ..... Pin
Mr.Prakash17-Jan-07 5:39
memberMr.Prakash17-Jan-07 5:39 
JokeCode Pfft Pin
S Douglas15-Jan-07 23:52
memberS Douglas15-Jan-07 23:52 
QuestionRe: Code Pfft Pin
Vikram A Punathambekar17-Jan-07 6:14
memberVikram A Punathambekar17-Jan-07 6:14 
AnswerRe: Code Pfft Pin
S Douglas18-Jan-07 2:03
memberS Douglas18-Jan-07 2:03 
GeneralRe: Code Pfft Pin
Vikram A Punathambekar18-Jan-07 5:55
memberVikram A Punathambekar18-Jan-07 5:55 
GeneralTo many comments Pin
Gammill15-Jan-07 19:34
memberGammill15-Jan-07 19:34 
GeneralRe: To many comments Pin
S Douglas15-Jan-07 23:42
memberS Douglas15-Jan-07 23:42 
GeneralRe: To many comments Pin
Kevin McFarlane16-Jan-07 11:07
memberKevin McFarlane16-Jan-07 11:07 
GeneralRe: To many comments Pin
Gammill16-Jan-07 15:34
memberGammill16-Jan-07 15:34 
GeneralRe: To many comments Pin
Ed Gadziemski21-Jan-07 8:28
memberEd Gadziemski21-Jan-07 8:28 
GeneralRe: To many comments Pin
Gammill21-Jan-07 10:51
memberGammill21-Jan-07 10:51 
GeneralRe: To many comments Pin
Jeffry J. Brickley16-Jan-07 8:50
memberJeffry J. Brickley16-Jan-07 8:50 
GeneralRe: To many comments Pin
Gammill16-Jan-07 15:29
memberGammill16-Jan-07 15:29 
GeneralRe: To many comments Pin
wittend22-Jan-07 7:45
memberwittend22-Jan-07 7:45 
GeneralRe: Formating Code Pin
Vasudevan Deepak Kumar15-Jan-07 16:54
memberVasudevan Deepak Kumar15-Jan-07 16:54 
GeneralExtremely Fastidious Pin
Behind The Scene15-Jan-07 10:59
memberBehind The Scene15-Jan-07 10:59 
GeneralWhat if... Pin
M i s t e r L i s t e r15-Jan-07 9:29
memberM i s t e r L i s t e r15-Jan-07 9:29 
GeneralRe: What if... Pin
Patrick Sears15-Jan-07 10:08
memberPatrick Sears15-Jan-07 10:08 
GeneralRe: What if... Pin
Gary R. Wheeler16-Jan-07 14:33
memberGary R. Wheeler16-Jan-07 14:33 
GeneralRe: What if... Pin
gleat18-Jan-07 6:23
membergleat18-Jan-07 6:23 
GeneralRe: What if... Pin
PIEBALDconsult19-Jan-07 16:57
memberPIEBALDconsult19-Jan-07 16:57 
GeneralRe: What if... Pin
WillemM18-Jan-07 6:08
memberWillemM18-Jan-07 6:08 
GeneralRe: What if... Pin
PIEBALDconsult19-Jan-07 17:12
memberPIEBALDconsult19-Jan-07 17:12 
JokeWhy is it... Pin
Grimolfr15-Jan-07 7:12
memberGrimolfr15-Jan-07 7:12 
GeneralRe: Why is it... Pin
WillemM15-Jan-07 22:55
memberWillemM15-Jan-07 22:55 
GeneralRe: Why is it... Pin
Gammill16-Jan-07 15:43
memberGammill16-Jan-07 15:43 
GeneralRe: Why is it... Pin
MatrixCoder16-Jan-07 10:58
memberMatrixCoder16-Jan-07 10:58 
GeneralPedantic is an unterstatement Pin
David Wulff15-Jan-07 5:33
memberDavid Wulff15-Jan-07 5:33 
GeneralRe: Pedantic is an unterstatement Pin
Roger Wright15-Jan-07 6:43
memberRoger Wright15-Jan-07 6:43 
GeneralRe: Pedantic is an unterstatement Pin
Steve_Harris17-Jan-07 0:40
memberSteve_Harris17-Jan-07 0:40 
GeneralRe: Pedantic is an unterstatement Pin
PIEBALDconsult19-Jan-07 17:02
memberPIEBALDconsult19-Jan-07 17:02 
GeneralT Pin
Vikram A Punathambekar17-Jan-07 6:12
memberVikram A Punathambekar17-Jan-07 6:12 
GeneralRe: T Pin
David Wulff17-Jan-07 6:36
memberDavid Wulff17-Jan-07 6:36 
GeneralRe: T Pin
Vikram A Punathambekar17-Jan-07 17:27
memberVikram A Punathambekar17-Jan-07 17:27 
GeneralRe: T Pin
David Wulff17-Jan-07 23:52
memberDavid Wulff17-Jan-07 23:52 
GeneralRe: T Pin
Steve_Harris18-Jan-07 1:34
memberSteve_Harris18-Jan-07 1:34 

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

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


Advertise | Privacy | Mobile
Web04 | 2.8.150603.1 | Last Updated 10 Aug 2007
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid