Click here to Skip to main content
15,888,008 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: Code Reviews Pin
Stefan_Lang13-Aug-20 0:00
Stefan_Lang13-Aug-20 0:00 
GeneralRe: Code Reviews Pin
PIEBALDconsult12-Aug-20 4:27
mvePIEBALDconsult12-Aug-20 4:27 
GeneralRe: Code Reviews Pin
5teveH12-Aug-20 5:25
5teveH12-Aug-20 5:25 
GeneralRe: Code Reviews Pin
Richard Andrew x6412-Aug-20 5:09
professionalRichard Andrew x6412-Aug-20 5:09 
GeneralRe: Code Reviews Pin
5teveH12-Aug-20 5:34
5teveH12-Aug-20 5:34 
GeneralRe: Code Reviews Pin
Richard Andrew x6412-Aug-20 5:55
professionalRichard Andrew x6412-Aug-20 5:55 
GeneralRe: Code Reviews Pin
Gerry Schmitz12-Aug-20 5:10
mveGerry Schmitz12-Aug-20 5:10 
GeneralRe: Code Reviews Pin
Stefan_Lang12-Aug-20 22:06
Stefan_Lang12-Aug-20 22:06 
Yup, anything that effectively comes down to an error exit could be a one-liner: typically a simple return or a throw.

Anything else should be surrounded by {}, no matter the format. (that's what format tools are for). It's just not worth risking an incorrect semantic only because someone was too lazy to foresee that someone might change your one-liner into a two-liner. It's not like we're printing that code and need to save paper! OMG | :OMG:
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)

GeneralRe: Code Reviews Pin
Gerry Schmitz13-Aug-20 19:15
mveGerry Schmitz13-Aug-20 19:15 
GeneralRe: Code Reviews Pin
iskSYS12-Aug-20 21:17
professionaliskSYS12-Aug-20 21:17 
GeneralRe: Code Reviews Pin
5teveH12-Aug-20 21:40
5teveH12-Aug-20 21:40 
GeneralRe: Code Reviews Pin
iskSYS13-Aug-20 21:18
professionaliskSYS13-Aug-20 21:18 
GeneralRe: Code Reviews Pin
Steve Owen12-Aug-20 21:30
Steve Owen12-Aug-20 21:30 
GeneralRe: Code Reviews Pin
Sander Rossel12-Aug-20 21:47
professionalSander Rossel12-Aug-20 21:47 
GeneralRe: Code Reviews Pin
RooN3y12-Aug-20 22:23
RooN3y12-Aug-20 22:23 
GeneralRe: Code Reviews Pin
Martin ISDN12-Aug-20 23:40
Martin ISDN12-Aug-20 23:40 
GeneralRe: Code Reviews Pin
Davyd McColl13-Aug-20 0:31
Davyd McColl13-Aug-20 0:31 
GeneralRe: Code Reviews Pin
Stefan_Lang13-Aug-20 21:23
Stefan_Lang13-Aug-20 21:23 
GeneralRe: Code Reviews Pin
Matt Bond13-Aug-20 1:52
Matt Bond13-Aug-20 1:52 
GeneralRe: Code Reviews Pin
Stuart Dootson13-Aug-20 2:06
professionalStuart Dootson13-Aug-20 2:06 
GeneralRe: Code Reviews Pin
loctrice13-Aug-20 3:32
professionalloctrice13-Aug-20 3:32 
GeneralRe: Code Reviews Pin
hpcoder213-Aug-20 13:43
hpcoder213-Aug-20 13:43 
GeneralGrowth by shrinkage? Pin
Sander Rossel12-Aug-20 0:11
professionalSander Rossel12-Aug-20 0:11 
GeneralRe: Growth by shrinkage? Pin
Sandeep Mewara12-Aug-20 0:37
mveSandeep Mewara12-Aug-20 0:37 
GeneralRe: Growth by shrinkage? Pin
musefan12-Aug-20 0:38
musefan12-Aug-20 0: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.