Click here to Skip to main content
13,800,574 members

Survey Results

Braces around single line commands. Needed or not?

Survey period: 12 Feb 2018 to 19 Feb 2018

It's just about the braces. Not about whether the leading brace should or should not be on the same line as the conditional. One war at a time.

I prefer

if (condition)
I prefer

if (condition)
It depends16417.86

GeneralSingle line all the way Pin
Sammuel Miranda18-Feb-18 3:27
professionalSammuel Miranda18-Feb-18 3:27 
GeneralRemember Apple SSL/TLS Bug !!! Pin
Pratik Bhuva15-Feb-18 19:18
professionalPratik Bhuva15-Feb-18 19:18 
GeneralSingle command with brackets Pin
Albertino15-Feb-18 1:31
memberAlbertino15-Feb-18 1:31 
GeneralYou forgot to add the heathen option of same line Pin
daleofcourse14-Feb-18 23:07
memberdaleofcourse14-Feb-18 23:07 
GeneralSingle line only. Pin
Dennis_E14-Feb-18 4:19
professionalDennis_E14-Feb-18 4:19 
GeneralRe: Single line only. Pin
Laiju k14-Feb-18 19:47
professionalLaiju k14-Feb-18 19:47 
GeneralRe: Single line only. Pin
Rob Philpott15-Feb-18 3:01
memberRob Philpott15-Feb-18 3:01 
GeneralWhy would you use an if statement? Pin
snorkie13-Feb-18 3:21
professionalsnorkie13-Feb-18 3:21 
GeneralOnce Bitten, Twice Shy Pin
CHill6013-Feb-18 1:23
protectorCHill6013-Feb-18 1:23 
GeneralRe: Once Bitten, Twice Shy Pin
Dan Neely14-Feb-18 3:45
memberDan Neely14-Feb-18 3:45 
GeneralRe: Once Bitten, Twice Shy Pin
Randor 14-Feb-18 19:30
professional Randor 14-Feb-18 19:30 
GeneralRe: Once Bitten, Twice Shy Pin
CHill6014-Feb-18 23:51
protectorCHill6014-Feb-18 23:51 
GeneralConsistent formatting Pin
Jörgen Andersson13-Feb-18 0:01
protectorJörgen Andersson13-Feb-18 0:01 
GeneralNeither, sorta? Pin
Jon McKee12-Feb-18 12:54
professionalJon McKee12-Feb-18 12:54 
GeneralRe: Neither, sorta? Pin
Kevin McFarlane13-Feb-18 5:42
memberKevin McFarlane13-Feb-18 5:42 
GeneralEasier for debugging Pin
djdynamix12-Feb-18 10:36
memberdjdynamix12-Feb-18 10:36 
GeneralI'm not some psychopath... PinPopular
Sander Rossel12-Feb-18 7:18
professionalSander Rossel12-Feb-18 7:18 
GeneralRe: I'm not some psychopath... Pin
ZurdoDev12-Feb-18 9:22
professionalZurdoDev12-Feb-18 9:22 
GeneralThe least keystrokes Pin
kmoorevs12-Feb-18 5:51
memberkmoorevs12-Feb-18 5:51 
GeneralRe: The least keystrokes Pin
Ravi Bhavnani12-Feb-18 6:20
professionalRavi Bhavnani12-Feb-18 6:20 
GeneralRe: The least keystrokes Pin
PeejayAdams13-Feb-18 2:19
memberPeejayAdams13-Feb-18 2:19 
GeneralRe: The least keystrokes Pin
Richard Andrew x6413-Feb-18 9:59
professionalRichard Andrew x6413-Feb-18 9:59 
GeneralRe: The least keystrokes Pin
Bassam Abdul-Baki15-Feb-18 4:45
professionalBassam Abdul-Baki15-Feb-18 4:45 
GeneralRe: The least keystrokes Pin
Richard Andrew x6415-Feb-18 12:57
professionalRichard Andrew x6415-Feb-18 12:57 
Generalbraces should be required and properly formatted Pin
Dennis E White12-Feb-18 5:49
professionalDennis E White12-Feb-18 5:49 

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 | Cookies | Terms of Service
Web03 | 2.8.181215.1 | Last Updated 10 Aug 2007
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid