Click here to Skip to main content
14,538,515 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: Trippin' Friday Pin
Sander Rossel16-Feb-19 2:32
professionalSander Rossel16-Feb-19 2:32 
QuestionAny Success with MSIX? Pin
KEastman15-Feb-19 9:20
MemberKEastman15-Feb-19 9:20 
AnswerRe: Any Success with MSIX? Pin
Mark_Wallace15-Feb-19 13:26
MemberMark_Wallace15-Feb-19 13:26 
AnswerRe: Any Success with MSIX? Pin
abmv15-Feb-19 18:48
professionalabmv15-Feb-19 18:48 
AnswerRe: Any Success with MSIX? Pin
dandy7216-Feb-19 6:03
Memberdandy7216-Feb-19 6:03 
QuestionMultiple returns from methods or clean code flow Pin
  Forogar  15-Feb-19 5:11
professional  Forogar  15-Feb-19 5:11 
AnswerRe: Multiple returns from methods or clean code flow Pin
PIEBALDconsult15-Feb-19 5:28
professionalPIEBALDconsult15-Feb-19 5:28 
AnswerRe: Multiple returns from methods or clean code flow PinPopular
User 483504715-Feb-19 5:37
MemberUser 483504715-Feb-19 5:37 
I actually sometimes throw exceptions instead of just return and yes I prefer strongly the early returns. It's more modular than the nested hell of mess. Especially when multiple people add crap within a particular branch of ifs.

I looked at the source code of DOOM. John Carmack uses early returns. That should settle it.


modified 20-Oct-19 21:02pm.

GeneralRe: Multiple returns from methods or clean code flow Pin
CodeWraith15-Feb-19 8:03
MemberCodeWraith15-Feb-19 8:03 
GeneralRe: Multiple returns from methods or clean code flow Pin
User 483504715-Feb-19 8:17
MemberUser 483504715-Feb-19 8:17 
GeneralRe: Multiple returns from methods or clean code flow Pin
CodeWraith15-Feb-19 8:25
MemberCodeWraith15-Feb-19 8:25 
GeneralRe: Multiple returns from methods or clean code flow Pin
sasadler18-Feb-19 5:43
Membersasadler18-Feb-19 5:43 
GeneralRe: Multiple returns from methods or clean code flow Pin
CodeWraith18-Feb-19 6:05
MemberCodeWraith18-Feb-19 6:05 
GeneralRe: Multiple returns from methods or clean code flow Pin
sasadler18-Feb-19 9:42
Membersasadler18-Feb-19 9:42 
GeneralRe: Multiple returns from methods or clean code flow Pin
CodeWraith18-Feb-19 13:18
MemberCodeWraith18-Feb-19 13:18 
GeneralRe: Multiple returns from methods or clean code flow Pin
sasadler19-Feb-19 5:32
Membersasadler19-Feb-19 5:32 
GeneralRe: Multiple returns from methods or clean code flow Pin
CodeWraith19-Feb-19 5:50
MemberCodeWraith19-Feb-19 5:50 
GeneralRe: Multiple returns from methods or clean code flow Pin
sasadler19-Feb-19 6:16
Membersasadler19-Feb-19 6:16 
AnswerRe: Multiple returns from methods or clean code flow Pin
Simon_Whale15-Feb-19 6:00
professionalSimon_Whale15-Feb-19 6:00 
GeneralRe: Multiple returns from methods or clean code flow Pin
  Forogar  15-Feb-19 6:02
professional  Forogar  15-Feb-19 6:02 
GeneralRe: Multiple returns from methods or clean code flow Pin
CodeWraith15-Feb-19 8:06
MemberCodeWraith15-Feb-19 8:06 
GeneralRe: Multiple returns from methods or clean code flow Pin
charlieg15-Feb-19 17:13
Membercharlieg15-Feb-19 17:13 
AnswerRe: Multiple returns from methods or clean code flow Pin
User 483504715-Feb-19 6:09
MemberUser 483504715-Feb-19 6:09 
AnswerRe: Multiple returns from methods or clean code flow Pin
Jörgen Andersson15-Feb-19 6:10
professionalJörgen Andersson15-Feb-19 6:10 
GeneralRe: Multiple returns from methods or clean code flow Pin
OriginalGriff15-Feb-19 6:11
mveOriginalGriff15-Feb-19 6:11 

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.