Click here to Skip to main content
15,916,601 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
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 
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 
As mentioned before, any of the control keywords are just as good for me to recognize the start of a code block as a brace, so that is not a good reason in my book. A control keyword lining up with a closing brace is all I need.

This is all the more true when you have a lot of nested structures: it's hard to recognize the actual functionality of a code if half of the editor window shows only control statements and braces.

As for refactoring, why would you move the control statement without the succeeding block?

But as you said, none of this is a huge deal. For the code I currently deal with it probably would be a bad idea. It's old and riddled with control statements - it's hard to figure out what it does no matter the formatting, but not being able to see much of the relvant statements in the editor window because of added lines for braces would even be worse. For newly written code it probably would be much less of an issue either way.
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

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 
JokeRe: The only thing worse than code written using The Wrong Brace Style(tm) Pin
Joan M27-Jan-14 22:43
professionalJoan M27-Jan-14 22:43 

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.