Click here to Skip to main content
15,914,327 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: brain cells fading... article discussing the use of early returns from functions... Pin
den2k8823-Jan-17 23:57
professionalden2k8823-Jan-17 23:57 
GeneralRe: brain cells fading... article discussing the use of early returns from functions... Pin
User 1013254624-Jan-17 0:09
User 1013254624-Jan-17 0:09 
GeneralRe: brain cells fading... article discussing the use of early returns from functions... Pin
den2k8824-Jan-17 0:15
professionalden2k8824-Jan-17 0:15 
GeneralRe: brain cells fading... article discussing the use of early returns from functions... Pin
User 1013254624-Jan-17 0:19
User 1013254624-Jan-17 0:19 
GeneralRe: brain cells fading... article discussing the use of early returns from functions... Pin
den2k8824-Jan-17 0:25
professionalden2k8824-Jan-17 0:25 
GeneralRe: brain cells fading... article discussing the use of early returns from functions... Pin
User 1013254624-Jan-17 0:42
User 1013254624-Jan-17 0:42 
GeneralRe: brain cells fading... article discussing the use of early returns from functions... Pin
den2k8824-Jan-17 0:49
professionalden2k8824-Jan-17 0:49 
GeneralRe: brain cells fading... article discussing the use of early returns from functions... Pin
User 1013254624-Jan-17 0:54
User 1013254624-Jan-17 0:54 
For me it comes down to how many times I'm writing the same code.

If it's more than once, then it should probably be in a method in a class of it's own unless it's complete unavoidable because of the limitations of the language/framework. To me, that's SOP for OOP code.
Ah, I see you have the machine that goes ping. This is my favorite. You see we lease it back from the company we sold it to and that way it comes under the monthly current budget and not the capital account.


modified 31-Aug-21 21:01pm.

GeneralRe: brain cells fading... article discussing the use of early returns from functions... Pin
BillWoodruff25-Jan-17 17:49
professionalBillWoodruff25-Jan-17 17:49 
GeneralRe: brain cells fading... article discussing the use of early returns from functions... Pin
Mark_Wallace23-Jan-17 22:48
Mark_Wallace23-Jan-17 22:48 
GeneralRe: brain cells fading... article discussing the use of early returns from functions... Pin
den2k8823-Jan-17 23:10
professionalden2k8823-Jan-17 23:10 
GeneralRe: brain cells fading... article discussing the use of early returns from functions... Pin
#realJSOP23-Jan-17 23:22
professional#realJSOP23-Jan-17 23:22 
GeneralRe: brain cells fading... article discussing the use of early returns from functions... Pin
den2k8823-Jan-17 23:27
professionalden2k8823-Jan-17 23:27 
GeneralRollercoaster... Pin
R. Giskard Reventlov23-Jan-17 10:52
R. Giskard Reventlov23-Jan-17 10:52 
GeneralRe: Rollercoaster... Pin
Mark_Wallace23-Jan-17 11:13
Mark_Wallace23-Jan-17 11:13 
GeneralRe: Rollercoaster... Pin
Sander Rossel23-Jan-17 11:18
professionalSander Rossel23-Jan-17 11:18 
GeneralRe: Rollercoaster... Pin
Mark_Wallace23-Jan-17 11:20
Mark_Wallace23-Jan-17 11:20 
GeneralRe: Rollercoaster... Pin
Colin Mullikin23-Jan-17 11:19
professionalColin Mullikin23-Jan-17 11:19 
GeneralRe: Rollercoaster... Pin
Mark_Wallace23-Jan-17 11:22
Mark_Wallace23-Jan-17 11:22 
GeneralRe: Rollercoaster... Pin
R. Giskard Reventlov23-Jan-17 11:38
R. Giskard Reventlov23-Jan-17 11:38 
GeneralRe: Rollercoaster... Pin
Mark_Wallace23-Jan-17 22:44
Mark_Wallace23-Jan-17 22:44 
GeneralRe: Rollercoaster... Pin
Marc Clifton23-Jan-17 13:02
mvaMarc Clifton23-Jan-17 13:02 
GeneralRe: Rollercoaster... Pin
Mike Hankey23-Jan-17 13:43
mveMike Hankey23-Jan-17 13:43 
GeneralRe: Rollercoaster... Pin
Dominic Burford23-Jan-17 18:35
professionalDominic Burford23-Jan-17 18:35 
GeneralRe: Rollercoaster... Pin
HobbyProggy23-Jan-17 19:26
professionalHobbyProggy23-Jan-17 19:26 

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.