Click here to Skip to main content
13,259,194 members (51,235 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.09
I format my code carefully but not obsessively87155.98
I do the minimum formatting that will keep it readable1207.71
I never bother doing any formatting.191.22



 
GeneralTeam Settings file Pin
Mark Focas19-Jan-07 17:27
memberMark Focas19-Jan-07 17:27 
GeneralI don't like to break into a new line until the semi-colon ... Pin
Xiangyang Liu18-Jan-07 10:52
memberXiangyang Liu18-Jan-07 10:52 
GeneralRe: I don't like to break into a new line until the semi-colon ... Pin
wittend22-Jan-07 7:48
memberwittend22-Jan-07 7:48 
GeneralNot a 5-cent cigar, but . . . Pin
Balboos18-Jan-07 10:48
memberBalboos18-Jan-07 10:48 
GeneralRe: Not a 5-cent cigar, but . . . Pin
PJ Arends20-Jan-07 20:43
memberPJ Arends20-Jan-07 20:43 
GeneralRe: Not a 5-cent cigar, but . . . Pin
Balboos22-Jan-07 3:07
memberBalboos22-Jan-07 3:07 
GeneralCheckin reason: Whitespace fixes [modified] Pin
Anders Dalvander17-Jan-07 21:04
memberAnders Dalvander17-Jan-07 21: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 7:25
membergleat18-Jan-07 7:25 
GeneralRe: Checkin reason: Whitespace fixes Pin
Jon Rista19-Jan-07 10:35
memberJon Rista19-Jan-07 10:35 
GeneralRe: Checkin reason: Whitespace fixes Pin
PIEBALDconsult19-Jan-07 17:46
memberPIEBALDconsult19-Jan-07 17:46 
GeneralHow hard is it ..... Pin
Mr.Prakash16-Jan-07 23:27
memberMr.Prakash16-Jan-07 23:27 
GeneralRe: How hard is it ..... Pin
jhwurmbach17-Jan-07 6:17
memberjhwurmbach17-Jan-07 6:17 
GeneralRe: How hard is it ..... Pin
Mr.Prakash17-Jan-07 6:20
memberMr.Prakash17-Jan-07 6:20 
GeneralRe: How hard is it ..... Pin
jhwurmbach17-Jan-07 6:24
memberjhwurmbach17-Jan-07 6:24 
GeneralRe: How hard is it ..... Pin
Mr.Prakash17-Jan-07 6:39
memberMr.Prakash17-Jan-07 6:39 
JokeCode Pfft Pin
S Douglas16-Jan-07 0:52
memberS Douglas16-Jan-07 0:52 
QuestionRe: Code Pfft Pin
Vikram A Punathambekar17-Jan-07 7:14
memberVikram A Punathambekar17-Jan-07 7:14 
AnswerRe: Code Pfft Pin
S Douglas18-Jan-07 3:03
memberS Douglas18-Jan-07 3:03 
GeneralRe: Code Pfft Pin
Vikram A Punathambekar18-Jan-07 6:55
memberVikram A Punathambekar18-Jan-07 6:55 
GeneralTo many comments Pin
Gammill15-Jan-07 20:34
memberGammill15-Jan-07 20:34 
GeneralRe: To many comments Pin
S Douglas16-Jan-07 0:42
memberS Douglas16-Jan-07 0:42 
GeneralRe: To many comments Pin
Kevin McFarlane16-Jan-07 12:07
memberKevin McFarlane16-Jan-07 12:07 
GeneralRe: To many comments Pin
Gammill16-Jan-07 16:34
memberGammill16-Jan-07 16:34 
GeneralRe: To many comments Pin
Ed Gadziemski21-Jan-07 9:28
memberEd Gadziemski21-Jan-07 9:28 
GeneralRe: To many comments Pin
Gammill21-Jan-07 11:51
memberGammill21-Jan-07 11:51 

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.


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