Click here to Skip to main content
15,915,065 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
RJ Hatch11-Dec-14 6:05
RJ Hatch11-Dec-14 6:05 
GeneralRe: Pet Peeve Pin
Paulo Zemek11-Dec-14 7:29
Paulo Zemek11-Dec-14 7:29 
GeneralRe: Pet Peeve Pin
Daniel Vaughan11-Dec-14 0:24
Daniel Vaughan11-Dec-14 0:24 
GeneralRe: Pet Peeve Pin
Brady Kelly11-Dec-14 0:47
Brady Kelly11-Dec-14 0:47 
GeneralRe: Pet Peeve Pin
StatementTerminator11-Dec-14 8:18
StatementTerminator11-Dec-14 8:18 
GeneralRe: Pet Peeve Pin
Oleg A.Lukin10-Dec-14 23:06
Oleg A.Lukin10-Dec-14 23:06 
GeneralRe: Pet Peeve Pin
Paulo Zemek11-Dec-14 6:45
Paulo Zemek11-Dec-14 6:45 
GeneralRe: Pet Peeve Pin
Oleg A.Lukin11-Dec-14 21:15
Oleg A.Lukin11-Dec-14 21:15 
Well, I won't write anything such as that either. But since this a real world example of infamous 'goto fail' bug obviously other people do.

In general I'd say that none of your samples with braces would've passed my code review, but I admit your first sample should attract review attention as well, it'll probably will attract enough attention from any reviewer. Still I'd say that with braces style the code like that most probably would not leave the developer and will be fixed before review
Banking establishments are more dangerous than standing armies. T.Jefferson

GeneralRe: Pet Peeve Pin
tom144311-Dec-14 3:32
tom144311-Dec-14 3:32 
GeneralRe: Pet Peeve Pin
StatementTerminator11-Dec-14 8:30
StatementTerminator11-Dec-14 8:30 
GeneralRe: Pet Peeve Pin
Paulo Zemek11-Dec-14 8:37
Paulo Zemek11-Dec-14 8:37 
GeneralRe: Pet Peeve Pin
Sander Rossel10-Dec-14 10:21
professionalSander Rossel10-Dec-14 10:21 
GeneralRe: Pet Peeve Pin
Ian Shlasko10-Dec-14 11:16
Ian Shlasko10-Dec-14 11:16 
JokeRe: Pet Peeve Pin
Jeremy Falcon10-Dec-14 11:23
professionalJeremy Falcon10-Dec-14 11:23 
GeneralRe: Pet Peeve Pin
Sander Rossel10-Dec-14 11:29
professionalSander Rossel10-Dec-14 11:29 
GeneralRe: Pet Peeve Pin
glennPattonWork310-Dec-14 11:50
professionalglennPattonWork310-Dec-14 11:50 
GeneralRe: Pet Peeve Pin
_Damian S_10-Dec-14 11:55
professional_Damian S_10-Dec-14 11:55 
GeneralRe: Pet Peeve Pin
PIEBALDconsult10-Dec-14 14:01
mvePIEBALDconsult10-Dec-14 14:01 
GeneralRe: Pet Peeve Pin
StatementTerminator11-Dec-14 8:38
StatementTerminator11-Dec-14 8:38 
GeneralRe: Pet Peeve Pin
PIEBALDconsult11-Dec-14 12:10
mvePIEBALDconsult11-Dec-14 12:10 
GeneralRe: Pet Peeve Pin
StatementTerminator12-Dec-14 3:16
StatementTerminator12-Dec-14 3:16 
GeneralRe: Pet Peeve Pin
PIEBALDconsult12-Dec-14 3:58
mvePIEBALDconsult12-Dec-14 3:58 
GeneralRe: Pet Peeve Pin
xiecsuk10-Dec-14 21:48
xiecsuk10-Dec-14 21:48 
GeneralRe: Pet Peeve Pin
Jim from Indy11-Dec-14 3:23
Jim from Indy11-Dec-14 3:23 
GeneralRe: Pet Peeve Pin
Matthys Terblanche10-Dec-14 21:05
Matthys Terblanche10-Dec-14 21:05 

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.