Click here to Skip to main content
15,916,180 members

Survey Results

Where should the braces go?   [Edit]

Survey period: 25 Feb 2001 to 3 Mar 2001

What is your preference for placing braces. See the braces page for a list of options.

OptionVotes% 
Braces starting on control line12215.60
Braces starting on line under control line, non-indented56472.12
Braces starting on line under control line, indented729.21
Braces starting on control line, closeing brace indented162.05
Other (please demonstrate!)81.02



 
GeneralRe: Why not? Pin
George2-Mar-01 5:13
George2-Mar-01 5:13 
GeneralAwwww, Geeze... Pin
James R. Twine2-Mar-01 13:13
James R. Twine2-Mar-01 13:13 
GeneralRe: Why not? Pin
Chris Losinger2-Mar-01 5:25
professionalChris Losinger2-Mar-01 5:25 
GeneralRe: Why not? Pin
James R. Twine2-Mar-01 13:18
James R. Twine2-Mar-01 13:18 
GeneralRe: Why not? Pin
Chris Losinger3-Mar-01 7:48
professionalChris Losinger3-Mar-01 7:48 
General*I* will determine what I was trying to imply, if anything. Pin
James R. Twine3-Mar-01 9:07
James R. Twine3-Mar-01 9:07 
GeneralRe: *I* will determine what I was trying to imply, if anything. Pin
Chris Losinger3-Mar-01 11:07
professionalChris Losinger3-Mar-01 11:07 
GeneralPascal and Option 2 Pin
27-Feb-01 5:52
suss27-Feb-01 5:52 
My first language was Pascal. Ostensibly, Pascal taught good programming habits. Because Pascal uses 'Begin' and 'End' instead of braces, you almost have to put them on separate lines. This was one good habit I picked up and apply to C++.

Also, since AppWizard writes code with Option 2, it must be confusing for you VC++ users to have code with options 1 and 2 mixed.

It is to me a big disappointment that the Java Gods decided to use Option 1 as a standard, but what do I expect from a bunch of Unix Lusers. But it is even more of a disapointment that MS decided on Option 1 for C#. I would love to know how they justified this. VC++ and VB do not follow that style. How do they expect to get their current customers using C#? Do they really expect Java programmers to switch to C#? It will never happen.

You'd think with .NET, MS is doing everything they can to piss off their current customer base of developers.
GeneralRe: Pascal and Option 2 Pin
Jim A. Johnson27-Feb-01 13:59
Jim A. Johnson27-Feb-01 13:59 
GeneralI have clicked Pin
26-Feb-01 21:37
suss26-Feb-01 21:37 
Generalwhew.... Pin
26-Feb-01 17:18
suss26-Feb-01 17:18 
GeneralCode complete. Recommends Option 1? (Not me) Pin
26-Feb-01 11:33
suss26-Feb-01 11:33 
GeneralAwesome premise! Pin
Scott!26-Feb-01 8:13
Scott!26-Feb-01 8:13 
GeneralRe: Awesome premise! Pin
26-Feb-01 20:23
suss26-Feb-01 20:23 
GeneralRe: Awesome premise! Pin
27-Feb-01 11:42
suss27-Feb-01 11:42 
GeneralRe: Awesome premise! Pin
Chris Losinger28-Feb-01 3:51
professionalChris Losinger28-Feb-01 3:51 
GeneralA Nice C++ Coding Standard Reference Pin
Chris Losinger27-Feb-01 3:23
professionalChris Losinger27-Feb-01 3:23 
GeneralOther... Pin
26-Feb-01 5:21
suss26-Feb-01 5:21 
GeneralRe: Other... Pin
26-Feb-01 12:11
suss26-Feb-01 12:11 
GeneralRe: Other... Pin
James R. Twine27-Feb-01 7:58
James R. Twine27-Feb-01 7:58 
GeneralAnd what about this? Pin
26-Feb-01 1:45
suss26-Feb-01 1:45 
GeneralRe: And what about this? Pin
26-Feb-01 2:49
suss26-Feb-01 2:49 
GeneralRe: And what about this? Pin
Joseph Dempsey26-Feb-01 3:03
Joseph Dempsey26-Feb-01 3:03 
GeneralRe: And what about this? Pin
Jim A. Johnson26-Feb-01 5:40
Jim A. Johnson26-Feb-01 5:40 
GeneralRe: And what about this? Pin
26-Feb-01 12:26
suss26-Feb-01 12:26 

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.