Click here to Skip to main content
15,893,663 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: Other Pin
Nagy Vilmos16-May-11 3:39
professionalNagy Vilmos16-May-11 3:39 
GeneralRe: Other Pin
OriginalGriff17-May-11 2:22
mveOriginalGriff17-May-11 2:22 
GeneralI think it is being lazy Pin
Slacker00715-May-11 23:56
professionalSlacker00715-May-11 23:56 
GeneralLaziness is a virtue... Pin
Nemanja Trifunovic16-May-11 4:07
Nemanja Trifunovic16-May-11 4:07 
GeneralRe: Laziness is a virtue... Pin
Slacker00716-May-11 4:28
professionalSlacker00716-May-11 4:28 
GeneralRe: I think it is being lazy Pin
Mladen Janković16-May-11 5:12
Mladen Janković16-May-11 5:12 
GeneralOn related lines - If and Else Pin
Jyothikarthik_N15-May-11 23:50
Jyothikarthik_N15-May-11 23:50 
GeneralIt depends Pin
dan!sh 15-May-11 23:46
professional dan!sh 15-May-11 23:46 
My personal preference is to do ti always. Although it highly depends on the coding guidelines followed in the project.
"The worst code you'll come across is code you wrote last year.", wizardzz[^]

GeneralWhen I was young (freshman) Pin
DoStuffZ15-May-11 23:36
DoStuffZ15-May-11 23:36 
GeneralRe: When I was young (freshman) Pin
Henry Minute16-May-11 0:42
Henry Minute16-May-11 0:42 
GeneralAlways I do Pin
JP_Rocks15-May-11 23:10
JP_Rocks15-May-11 23:10 
GeneralAlways do it PinPopular
Dalek Dave15-May-11 21:52
professionalDalek Dave15-May-11 21:52 
GeneralRe: Always do it Pin
Manfred Rudolf Bihy15-May-11 22:24
professionalManfred Rudolf Bihy15-May-11 22:24 
GeneralRe: Always do it Pin
Albin Abel15-May-11 22:44
Albin Abel15-May-11 22:44 
GeneralRe: Always do it Pin
Mladen Janković16-May-11 5:09
Mladen Janković16-May-11 5:09 
GeneralRe: Always do it Pin
Mladen Janković17-May-11 3:37
Mladen Janković17-May-11 3:37 
GeneralRe: Always do it Pin
Manfred Rudolf Bihy17-May-11 4:05
professionalManfred Rudolf Bihy17-May-11 4:05 
GeneralRe: Always do it Pin
Mladen Janković16-May-11 3:26
Mladen Janković16-May-11 3:26 
GeneralSometimes Pin
hairy_hats15-May-11 21:48
hairy_hats15-May-11 21:48 
GeneralAlways Wrap Pin
Kunal Chowdhury «IN»15-May-11 21:07
professionalKunal Chowdhury «IN»15-May-11 21:07 
GeneralRe: Always Wrap Pin
senguptaamlan15-May-11 21:20
senguptaamlan15-May-11 21:20 
GeneralRe: Always Wrap Pin
HaBiX15-May-11 21:57
HaBiX15-May-11 21:57 
GeneralRe: Always Wrap Pin
Toniyo Jackson16-May-11 1:43
Toniyo Jackson16-May-11 1:43 
GeneralRe: Always Wrap Pin
RaviRanjanKr16-May-11 4:20
professionalRaviRanjanKr16-May-11 4:20 
GeneralConsistency and Readability Pin
R. Erasmus15-May-11 21:06
R. Erasmus15-May-11 21:06 

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.