Click here to Skip to main content
14,548,715 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.
 
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 
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 
That is true, but it has other benefits too. Generally as a principle I prefer within a piece of code, if the task is done within a branch it should exit immediately. Later these blocks can be moved out to separate methods or classes. I work in a team where a couple of the members like to add thousands of lines of code in a single method and management tends to let us do whatever we want. So on one hand I really like being left to do what I want in terms of programming style, on the other hand they don't let me lecture others on how to code

Usually I start a project, write the skeleton and after the first version they assign others to add features, which lead to those 1000 lines functions.Early returns help me with that. I just take that additional code and put it in a separate method or class

Smile | :)


modified 20-Oct-19 21:02pm.

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 
GeneralRe: Multiple returns from methods or clean code flow Pin
Jörgen Andersson15-Feb-19 6:13
professionalJörgen Andersson15-Feb-19 6:13 
GeneralRe: Multiple returns from methods or clean code flow Pin
Jon McKee15-Feb-19 15:24
professionalJon McKee15-Feb-19 15:24 

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.