Click here to Skip to main content
15,888,351 members

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
NewsSwift: It isn't just for iPhones anymore Pin
Kent Sharkey26-Mar-18 10:45
staffKent Sharkey26-Mar-18 10:45 
NewsDevelopers can now sideload custom Linux distributions to the Windows 10 Subsystem for Linux Pin
Kent Sharkey26-Mar-18 9:30
staffKent Sharkey26-Mar-18 9:30 
NewsAvoid else, return early Pin
Kent Sharkey26-Mar-18 8:45
staffKent Sharkey26-Mar-18 8:45 
GeneralRe: Avoid else, return early Pin
Nemanja Trifunovic26-Mar-18 10:30
Nemanja Trifunovic26-Mar-18 10:30 
GeneralRe: Avoid else, return early Pin
Kent Sharkey26-Mar-18 10:32
staffKent Sharkey26-Mar-18 10:32 
GeneralRe: Avoid else, return early Pin
BillWoodruff26-Mar-18 22:38
professionalBillWoodruff26-Mar-18 22:38 
GeneralRe: Avoid else, return early Pin
Tim Carmichael27-Mar-18 2:35
Tim Carmichael27-Mar-18 2:35 
GeneralRe: Avoid else, return early Pin
TheGreatAndPowerfulOz27-Mar-18 5:44
TheGreatAndPowerfulOz27-Mar-18 5:44 
Tim Carmichael wrote:
process is doing and why
Agree with the why. I can read the code to see what it's doing. I've seen so many comments // declare variables then // call the function then // process result

So helpful.
Tim Carmichael wrote:
there is nothing wrong with indentation or else statements
egregious indentation and if/else's are problems when there are too many levels, usually more than two. This leads to functions that are too long and have multiple purposes. Better to refactor the code and move the different cases into different functions.
#SupportHeForShe
Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun

GeneralRe: Avoid else, return early Pin
Tim Carmichael27-Mar-18 6:19
Tim Carmichael27-Mar-18 6:19 
GeneralRe: Avoid else, return early Pin
TheGreatAndPowerfulOz27-Mar-18 7:15
TheGreatAndPowerfulOz27-Mar-18 7:15 
GeneralRe: Avoid else, return early Pin
#realJSOP28-Mar-18 2:28
mve#realJSOP28-Mar-18 2:28 
GeneralRe: Avoid else, return early Pin
#realJSOP28-Mar-18 1:35
mve#realJSOP28-Mar-18 1:35 
GeneralRe: Avoid else, return early Pin
TheGreatAndPowerfulOz28-Mar-18 7:22
TheGreatAndPowerfulOz28-Mar-18 7:22 
GeneralRe: Avoid else, return early Pin
#realJSOP28-Mar-18 7:33
mve#realJSOP28-Mar-18 7:33 
GeneralRe: Avoid else, return early Pin
TheGreatAndPowerfulOz28-Mar-18 15:47
TheGreatAndPowerfulOz28-Mar-18 15:47 
GeneralRe: Avoid else, return early Pin
Dr.Walt Fair, PE6-Apr-18 13:18
professionalDr.Walt Fair, PE6-Apr-18 13:18 
GeneralRe: Avoid else, return early Pin
#realJSOP8-Apr-18 6:22
mve#realJSOP8-Apr-18 6:22 
GeneralRe: Avoid else, return early Pin
Dr.Walt Fair, PE30-Mar-18 5:36
professionalDr.Walt Fair, PE30-Mar-18 5:36 
GeneralRe: Avoid else, return early Pin
TheGreatAndPowerfulOz27-Mar-18 5:37
TheGreatAndPowerfulOz27-Mar-18 5:37 
GeneralRe: Avoid else, return early Pin
Joe Woodbury27-Mar-18 7:32
professionalJoe Woodbury27-Mar-18 7:32 
GeneralRe: Avoid else, return early Pin
Dominic Burford28-Mar-18 2:49
professionalDominic Burford28-Mar-18 2:49 
GeneralRe: Avoid else, return early Pin
S Douglas30-Mar-18 6:56
professionalS Douglas30-Mar-18 6:56 
NewsThe FTC confirms it’s investigating Facebook over its privacy practices Pin
Kent Sharkey26-Mar-18 7:45
staffKent Sharkey26-Mar-18 7:45 
GeneralRe: The FTC confirms it’s investigating Facebook over its privacy practices Pin
Nelek26-Mar-18 11:08
protectorNelek26-Mar-18 11:08 
GeneralRe: The FTC confirms it’s investigating Facebook over its privacy practices Pin
Kent Sharkey26-Mar-18 11:14
staffKent Sharkey26-Mar-18 11:14 

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.