Click here to Skip to main content
15,891,248 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



 
GeneralSchizo? PinPopular
quinton196917-May-11 4:25
quinton196917-May-11 4:25 
GeneralBased on code. Pin
Anton Levshunov17-May-11 1:35
Anton Levshunov17-May-11 1:35 
GeneralRe: Based on code. Pin
hfrmobile17-May-11 2:29
hfrmobile17-May-11 2:29 
GeneralThank you Stylecop Pin
Christoph Keller16-May-11 22:31
Christoph Keller16-May-11 22:31 
GeneralRe: Thank you Stylecop Pin
Ravi Sant17-May-11 2:09
Ravi Sant17-May-11 2:09 
GeneralRe: Thank you Stylecop Pin
hfrmobile17-May-11 2:44
hfrmobile17-May-11 2:44 
GeneralRe: Thank you Stylecop Pin
Christoph Keller17-May-11 2:58
Christoph Keller17-May-11 2:58 
GeneralRe: Thank you Stylecop Pin
hfrmobile19-May-11 12:13
hfrmobile19-May-11 12:13 
Thank you for the information.

I am following company guidelines as needed but for my private code (pet projects) I still prefer disabling SA1500 and SA1503 Smile | :)

Payed per line: This was just a joke Big Grin | :-D

Kind Regards,
Harald
MCP, MCTS, MCPD
http://www.hfrmobile.com

GeneralRe: Thank you Stylecop Pin
Christoph Keller19-May-11 22:53
Christoph Keller19-May-11 22:53 
GeneralTo wrap or not to wrap? Pin
Mauro Panigada16-May-11 22:03
Mauro Panigada16-May-11 22:03 
GeneralRe: To wrap or not to wrap? Pin
hfrmobile17-May-11 2:31
hfrmobile17-May-11 2:31 
GeneralRe: To wrap or not to wrap? Pin
RedSonja17-May-11 19:56
RedSonja17-May-11 19:56 
GeneralRe: To wrap or not to wrap? Pin
ArchKaine18-May-11 11:31
ArchKaine18-May-11 11:31 
GeneralRe: To wrap or not to wrap? Pin
Enrique Albert21-May-11 1:39
Enrique Albert21-May-11 1:39 
GeneralThis one made me laugh :) Pin
AlexCode16-May-11 21:17
professionalAlexCode16-May-11 21:17 
RantDoes it matter and who cares anyway. Pin
Paul Darlington16-May-11 21:09
Paul Darlington16-May-11 21:09 
GeneralRe: Does it matter and who cares anyway. Pin
RedSonja17-May-11 19:57
RedSonja17-May-11 19:57 
GeneralRe: Does it matter and who cares anyway. Pin
Paul Darlington17-May-11 21:09
Paul Darlington17-May-11 21:09 
GeneralRe: Does it matter and who cares anyway. Pin
Super Lloyd17-May-11 20:25
Super Lloyd17-May-11 20:25 
GeneralRe: Does it matter and who cares anyway. Pin
Pete O'Hanlon18-May-11 3:30
mvePete O'Hanlon18-May-11 3:30 
GeneralRe: Does it matter and who cares anyway. Pin
Paul Darlington18-May-11 3:39
Paul Darlington18-May-11 3:39 
GeneralRe: Does it matter and who cares anyway. Pin
Pete O'Hanlon18-May-11 4:16
mvePete O'Hanlon18-May-11 4:16 
GeneralRe: Does it matter and who cares anyway. Pin
Mladen Janković18-May-11 3:31
Mladen Janković18-May-11 3:31 
GeneralRe: Does it matter and who cares anyway. Pin
Kevin McFarlane21-May-11 6:02
Kevin McFarlane21-May-11 6:02 
GeneralEvery time Pin
RedSonja16-May-11 20:12
RedSonja16-May-11 20:12 

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.