Click here to Skip to main content
15,892,161 members

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 16:27
Mark Focas19-Jan-07 16:27 
GeneralI don't like to break into a new line until the semi-colon ... Pin
Xiangyang Liu 刘向阳18-Jan-07 9:52
Xiangyang Liu 刘向阳18-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
wittend22-Jan-07 6:48 
GeneralNot a 5-cent cigar, but . . . Pin
W Balboos, GHB18-Jan-07 9:48
W Balboos, GHB18-Jan-07 9:48 
What's really needed is some newer nicer monospace fonts.

One part of my formatting I really insist upon is char allignment. Courier sucks, and the other monotypes I've found haven't improved things much. A good font, of course, is really very important for code formatting - the purpose of both is to improve readability (a broad context to readability).


A pet peeve is how the MS IDE code generator adds pointer (i.e., C++). They leave that astrisk floating out in the middle of space between the type declaration and the member name. Why couldn't they just pick one side or the other? And, maybe - just maybe - as a little something showing consideration for old timers, place it up against the member name. A search&replace fixes it up, but, the satisfaction of making it "look right" still took yet another unnecessary effort.

One thing I do appreciate with formatting: I adjust the settings so that char's and strings (meaning single or double quoted items) have a bright yellow background. This is a great help in avoiding the forgetting closing a quote or accidentally having more of them than you intended; the large gaps of yellow (or lack there of) making them rather obvious.

Alas, I digress.







"The difference between genius and stupidity is that genius has its limits." - Albert Einstein

GeneralRe: Not a 5-cent cigar, but . . . Pin
PJ Arends20-Jan-07 19:43
professionalPJ Arends20-Jan-07 19:43 
GeneralRe: Not a 5-cent cigar, but . . . Pin
W Balboos, GHB22-Jan-07 2:07
W Balboos, GHB22-Jan-07 2:07 
GeneralCheckin reason: Whitespace fixes [modified] Pin
Anders Dalvander17-Jan-07 20:04
Anders Dalvander17-Jan-07 20:04 
GeneralRe: Checkin reason: Whitespace fixes Pin
Rajasekharan Vengalil18-Jan-07 6:25
Rajasekharan Vengalil18-Jan-07 6:25 
GeneralRe: Checkin reason: Whitespace fixes Pin
Jon Rista19-Jan-07 9:35
Jon Rista19-Jan-07 9:35 
GeneralRe: Checkin reason: Whitespace fixes Pin
PIEBALDconsult19-Jan-07 16:46
mvePIEBALDconsult19-Jan-07 16:46 
GeneralHow hard is it ..... Pin
Prakash Nadar16-Jan-07 22:27
Prakash Nadar16-Jan-07 22:27 
GeneralRe: How hard is it ..... Pin
jhwurmbach17-Jan-07 5:17
jhwurmbach17-Jan-07 5:17 
GeneralRe: How hard is it ..... Pin
Prakash Nadar17-Jan-07 5:20
Prakash Nadar17-Jan-07 5:20 
GeneralRe: How hard is it ..... Pin
jhwurmbach17-Jan-07 5:24
jhwurmbach17-Jan-07 5:24 
GeneralRe: How hard is it ..... Pin
Prakash Nadar17-Jan-07 5:39
Prakash Nadar17-Jan-07 5:39 
JokeCode Pfft Pin
S Douglas15-Jan-07 23:52
professionalS Douglas15-Jan-07 23:52 
QuestionRe: Code Pfft Pin
Vikram A Punathambekar17-Jan-07 6:14
Vikram A Punathambekar17-Jan-07 6:14 
AnswerRe: Code Pfft Pin
S Douglas18-Jan-07 2:03
professionalS Douglas18-Jan-07 2:03 
GeneralRe: Code Pfft Pin
Vikram A Punathambekar18-Jan-07 5:55
Vikram A Punathambekar18-Jan-07 5:55 
GeneralTo many comments Pin
Gammill15-Jan-07 19:34
Gammill15-Jan-07 19:34 
GeneralRe: To many comments Pin
S Douglas15-Jan-07 23:42
professionalS Douglas15-Jan-07 23:42 
GeneralRe: To many comments Pin
Kevin McFarlane16-Jan-07 11:07
Kevin McFarlane16-Jan-07 11:07 
GeneralRe: To many comments Pin
Gammill16-Jan-07 15:34
Gammill16-Jan-07 15:34 
GeneralRe: To many comments Pin
Ed Gadziemski21-Jan-07 8:28
professionalEd Gadziemski21-Jan-07 8:28 
GeneralRe: To many comments Pin
Gammill21-Jan-07 10:51
Gammill21-Jan-07 10: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.