Click here to Skip to main content
15,917,971 members

Survey Results

Do you wrap single line statements in braces (or begin/end)?   [Edit]

Survey period: 16 May 2011 to 23 May 2011

Do you:

if (condition)
    statement
or
if (condition)
{
    statement
}
(Replace {}'s with Begin/End or whatever is appropriate for your language du jour)

OptionVotes% 
I always wrap single line statements95548.04
I sometimes wrap single line statements57328.82
I never wrap single line statements - only multiple lines get wrapped.46023.14



 
GeneralRe: Nope Pin
OriginalGriff16-May-11 21:25
mveOriginalGriff16-May-11 21:25 
GeneralRe: Nope Pin
Geekian_senate16-May-11 13:22
Geekian_senate16-May-11 13:22 
GeneralRe: Nope Pin
Nagy Vilmos17-May-11 2:01
professionalNagy Vilmos17-May-11 2:01 
GeneralSince everyone brag about consistency and readability Pin
Mladen Janković16-May-11 3:39
Mladen Janković16-May-11 3:39 
GeneralRe: Since everyone brag about consistency and readability Pin
Nemanja Trifunovic16-May-11 4:01
Nemanja Trifunovic16-May-11 4:01 
GeneralRe: Since everyone brag about consistency and readability Pin
Jason Vetter16-May-11 5:05
Jason Vetter16-May-11 5:05 
GeneralRe: Since everyone brag about consistency and readability Pin
Nemanja Trifunovic16-May-11 6:22
Nemanja Trifunovic16-May-11 6:22 
JokeRe: Since everyone brag about consistency and readability PinPopular
W Balboos, GHB16-May-11 7:38
W Balboos, GHB16-May-11 7:38 
Languages like VB.NET - where they realize the user cannot comprehend the beginning and end of a statement lest it be spelled out for them.

You don't have to remain left-out, you know! Just start to program in a language the doesn't presume your IQ consist of one or two digits.






"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"As far as we know, our computer has never had an undetected error." - Weisert
"If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

GeneralRe: Since everyone brag about consistency and readability PinPopular
Jun Du16-May-11 4:14
Jun Du16-May-11 4:14 
GeneralRe: Since everyone brag about consistency and readability Pin
Mladen Janković16-May-11 5:08
Mladen Janković16-May-11 5:08 
GeneralRe: Since everyone brag about consistency and readability Pin
Jun Du16-May-11 6:31
Jun Du16-May-11 6:31 
GeneralRe: Since everyone brag about consistency and readability Pin
Mladen Janković16-May-11 6:42
Mladen Janković16-May-11 6:42 
GeneralRe: Since everyone brag about consistency and readability Pin
Chris Losinger16-May-11 11:41
professionalChris Losinger16-May-11 11:41 
GeneralRe: Since everyone brag about consistency and readability Pin
Mladen Janković16-May-11 22:49
Mladen Janković16-May-11 22:49 
GeneralRe: Since everyone brag about consistency and readability Pin
Kevin McFarlane21-May-11 6:25
Kevin McFarlane21-May-11 6:25 
GeneralAlways, always Pin
BillW3316-May-11 3:04
professionalBillW3316-May-11 3:04 
GeneralRe: Always, always Pin
OriginalGriff16-May-11 3:59
mveOriginalGriff16-May-11 3:59 
GeneralRe: Always, always Pin
Mladen Janković16-May-11 5:02
Mladen Janković16-May-11 5:02 
GeneralRe: Always, always Pin
OriginalGriff16-May-11 5:07
mveOriginalGriff16-May-11 5:07 
GeneralRe: Always, always Pin
Mladen Janković16-May-11 5:25
Mladen Janković16-May-11 5:25 
GeneralRe: Always, always Pin
BillW3316-May-11 14:27
professionalBillW3316-May-11 14:27 
JokeNo ifs and buts... Pin
Nemanja Trifunovic16-May-11 2:24
Nemanja Trifunovic16-May-11 2:24 
GeneralRe: No ifs and buts... Pin
Nagy Vilmos16-May-11 3:44
professionalNagy Vilmos16-May-11 3:44 
GeneralRe: No ifs and buts... Pin
Nemanja Trifunovic16-May-11 4:09
Nemanja Trifunovic16-May-11 4:09 
GeneralOnly if they're really a single line [modified] PinPopular
Gary Wheeler16-May-11 1:43
Gary Wheeler16-May-11 1:43 

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.