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

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
James Curran28-Jan-14 1:04
James Curran28-Jan-14 1:04 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
KP Lee28-Jan-14 11:07
KP Lee28-Jan-14 11:07 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
Stefan_Lang29-Jan-14 20:15
Stefan_Lang29-Jan-14 20:15 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
StatementTerminator28-Jan-14 4:14
StatementTerminator28-Jan-14 4:14 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
KP Lee28-Jan-14 11:21
KP Lee28-Jan-14 11:21 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
StatementTerminator28-Jan-14 11:31
StatementTerminator28-Jan-14 11:31 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
Stefan_Lang29-Jan-14 20:32
Stefan_Lang29-Jan-14 20:32 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
StatementTerminator30-Jan-14 3:22
StatementTerminator30-Jan-14 3:22 
Stefan_Lang wrote:
C++
do {

Or would you really prefer
C++
do
{
?


I really do prefer the second one, actually. The reason is that the braces line up, making it easy to match up braces at a glance even when you have a lot of nested structures. It can also make debugging and refactoring easier, since you can quickly replace, comment, move around, etc. the control statement without messing with the braces. None of that is a huge deal however, and neither is the extra space used if you put it on a new line.
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
Stefan_Lang30-Jan-14 3:54
Stefan_Lang30-Jan-14 3:54 
RantRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
Member 1047517028-Jan-14 8:19
Member 1047517028-Jan-14 8:19 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
jschell28-Jan-14 10:00
jschell28-Jan-14 10:00 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
StatementTerminator28-Jan-14 10:21
StatementTerminator28-Jan-14 10:21 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
KP Lee28-Jan-14 11:25
KP Lee28-Jan-14 11:25 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
Stefan_Lang29-Jan-14 20:45
Stefan_Lang29-Jan-14 20:45 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
jschell28-Jan-14 9:57
jschell28-Jan-14 9:57 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
Espen Harlinn28-Jan-14 10:28
professionalEspen Harlinn28-Jan-14 10:28 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
Bitbeisser28-Jan-14 12:24
Bitbeisser28-Jan-14 12:24 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
Sander Rossel27-Jan-14 10:34
professionalSander Rossel27-Jan-14 10:34 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
Dan Neely27-Jan-14 10:38
Dan Neely27-Jan-14 10:38 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
Keith Barrow27-Jan-14 11:40
professionalKeith Barrow27-Jan-14 11:40 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
JMK8927-Jan-14 10:56
professionalJMK8927-Jan-14 10:56 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
Dan Neely27-Jan-14 12:16
Dan Neely27-Jan-14 12:16 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
JMK8927-Jan-14 12:27
professionalJMK8927-Jan-14 12:27 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
Richard Andrew x6427-Jan-14 12:41
professionalRichard Andrew x6427-Jan-14 12:41 
GeneralRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
Dan Neely27-Jan-14 13:38
Dan Neely27-Jan-14 13:38 

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.