Click here to Skip to main content
15,892,537 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: Pet Peeve Pin
Jeremy Falcon11-Dec-14 10:05
professionalJeremy Falcon11-Dec-14 10:05 
GeneralRe: Pet Peeve Pin
Cloud William11-Dec-14 2:40
Cloud William11-Dec-14 2:40 
GeneralRe: Pet Peeve Pin
Chris Losinger10-Dec-14 12:08
professionalChris Losinger10-Dec-14 12:08 
GeneralRe: Pet Peeve Pin
Brady Kelly10-Dec-14 16:19
Brady Kelly10-Dec-14 16:19 
GeneralRe: Pet Peeve Pin
Andy Brummer10-Dec-14 16:19
sitebuilderAndy Brummer10-Dec-14 16:19 
GeneralRe: Pet Peeve Pin
Chris Losinger10-Dec-14 16:21
professionalChris Losinger10-Dec-14 16:21 
GeneralRe: Pet Peeve Pin
Andy Brummer10-Dec-14 16:45
sitebuilderAndy Brummer10-Dec-14 16:45 
GeneralRe: Pet Peeve Pin
agolddog11-Dec-14 3:46
agolddog11-Dec-14 3:46 
Correct.

If you have a 'rule' which says, "(don't) use braces, except in these special cases", then you have to remember the special cases.

I'm in the braces-good camp for the reasons Chris supplied above. Missing them doesn't make your code noticeably more concise, and does make your code (and, more importantly, your intentions, when you've run away from this project and I'm trying to figure it out [or vice-versa]) noticeably more readable.
GeneralRe: Pet Peeve Pin
Jeremy Falcon11-Dec-14 4:56
professionalJeremy Falcon11-Dec-14 4:56 
GeneralRe: Pet Peeve Pin
R. Giskard Reventlov10-Dec-14 11:14
R. Giskard Reventlov10-Dec-14 11:14 
GeneralRe: Pet Peeve Pin
Jeremy Falcon10-Dec-14 11:16
professionalJeremy Falcon10-Dec-14 11:16 
GeneralRe: Pet Peeve Pin
R. Giskard Reventlov10-Dec-14 11:22
R. Giskard Reventlov10-Dec-14 11:22 
GeneralRe: Pet Peeve Pin
Jeremy Falcon10-Dec-14 11:25
professionalJeremy Falcon10-Dec-14 11:25 
GeneralRe: Pet Peeve Pin
ronchristie11-Dec-14 9:59
ronchristie11-Dec-14 9:59 
GeneralRe: Pet Peeve Pin
Jeremy Falcon11-Dec-14 10:08
professionalJeremy Falcon11-Dec-14 10:08 
GeneralRe: Pet Peeve Pin
rjmoses12-Dec-14 10:18
professionalrjmoses12-Dec-14 10:18 
GeneralRe: Pet Peeve Pin
ronchristie13-Dec-14 9:04
ronchristie13-Dec-14 9:04 
GeneralRe: Pet Peeve PinPopular
Tom Clement10-Dec-14 10:23
professionalTom Clement10-Dec-14 10:23 
GeneralRe: Pet Peeve Pin
Jeremy Falcon10-Dec-14 10:25
professionalJeremy Falcon10-Dec-14 10:25 
GeneralRe: Pet Peeve PinPopular
Maximilien10-Dec-14 10:26
Maximilien10-Dec-14 10:26 
GeneralRe: Pet Peeve Pin
Mike Hankey10-Dec-14 10:33
mveMike Hankey10-Dec-14 10:33 
GeneralRe: Pet Peeve Pin
Dan Neely10-Dec-14 10:56
Dan Neely10-Dec-14 10:56 
GeneralRe: Pet Peeve Pin
Ian Shlasko10-Dec-14 11:09
Ian Shlasko10-Dec-14 11:09 
GeneralRe: Pet Peeve Pin
Jeremy Falcon10-Dec-14 11:21
professionalJeremy Falcon10-Dec-14 11:21 
GeneralRe: Pet Peeve Pin
kmoorevs10-Dec-14 11:28
kmoorevs10-Dec-14 11:28 

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.