Click here to Skip to main content
15,885,767 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!

 
GeneralRe: Better testing could solve most tech problems, so why aren’t companies doing it? Pin
#realJSOP31-Jul-19 6:05
mve#realJSOP31-Jul-19 6:05 
GeneralRe: Better testing could solve most tech problems, so why aren’t companies doing it? Pin
Marc Clifton31-Jul-19 6:11
mvaMarc Clifton31-Jul-19 6:11 
GeneralRe: Better testing could solve most tech problems, so why aren’t companies doing it? Pin
#realJSOP31-Jul-19 7:02
mve#realJSOP31-Jul-19 7:02 
News4 Reasons not to use programming loops (and a few ways to avoid them) Pin
Kent Sharkey30-Jul-19 11:15
staffKent Sharkey30-Jul-19 11:15 
GeneralRe: 4 Reasons not to use programming loops (and a few ways to avoid them) Pin
Eddy Vluggen30-Jul-19 11:57
professionalEddy Vluggen30-Jul-19 11:57 
GeneralRe: 4 Reasons not to use programming loops (and a few ways to avoid them) Pin
Joe Woodbury30-Jul-19 12:51
professionalJoe Woodbury30-Jul-19 12:51 
GeneralRe: 4 Reasons not to use programming loops (and a few ways to avoid them) Pin
Mark_Wallace30-Jul-19 19:57
Mark_Wallace30-Jul-19 19:57 
GeneralRe: 4 Reasons not to use programming loops (and a few ways to avoid them) Pin
PeejayAdams31-Jul-19 0:39
PeejayAdams31-Jul-19 0:39 
Dear Lord!

Don't use a loop because you might screw up the break condition, use recursion instead! No-one in the history of the world has ever missed a break condition on a recursive method, have they?

Given that these high-falutin' ideas tend to fall apart in the face of reality, let's look at waht I'm writing today: I'm pulling a list from a database and generating an ML feed from every record to throw at an API. That's a pretty run-of-the-mill job and all over the world there'll be peope writing something similar.

Is anyone suggesting that there's really a better way of doing this than:
Read into list

foreach item in list
     do stuff

It might look prosaic and it might not make for great conference speeches, but it's clearly and obviously the way to do the job - it's readable, it's reliable and it works. And, no, the foreach won't fail to break when it gets to the end of the list; the statefullness of this one off job won't kill the server and I'm entirely sure that nobody will die as a result of my hideously old-fashioned programming.
Whenever you find yourself on the side of the majority, it is time to pause and reflect. - Mark Twain

GeneralRe: 4 Reasons not to use programming loops (and a few ways to avoid them) Pin
harold aptroot31-Jul-19 0:44
harold aptroot31-Jul-19 0:44 
GeneralRe: 4 Reasons not to use programming loops (and a few ways to avoid them) Pin
Marc Clifton31-Jul-19 6:17
mvaMarc Clifton31-Jul-19 6:17 
GeneralRe: 4 Reasons not to use programming loops (and a few ways to avoid them) Pin
Rick York31-Jul-19 8:30
mveRick York31-Jul-19 8:30 
GeneralRe: 4 Reasons not to use programming loops (and a few ways to avoid them) Pin
David O'Neil31-Jul-19 12:39
professionalDavid O'Neil31-Jul-19 12:39 
GeneralRe: 4 Reasons not to use programming loops (and a few ways to avoid them) Pin
Dan Neely1-Aug-19 2:50
Dan Neely1-Aug-19 2:50 
NewsWindows 10, Office Online users get new warning over data privacy Pin
Kent Sharkey30-Jul-19 11:00
staffKent Sharkey30-Jul-19 11:00 
GeneralRe: Windows 10, Office Online users get new warning over data privacy Pin
Mark_Wallace30-Jul-19 20:04
Mark_Wallace30-Jul-19 20:04 
NewsStudy: People may use overconfidence to persuade or deceive others Pin
Kent Sharkey30-Jul-19 9:45
staffKent Sharkey30-Jul-19 9:45 
GeneralRe: Study: People may use overconfidence to persuade or deceive others Pin
Joe Woodbury30-Jul-19 10:45
professionalJoe Woodbury30-Jul-19 10:45 
GeneralRe: Study: People may use overconfidence to persuade or deceive others Pin
Kent Sharkey30-Jul-19 10:55
staffKent Sharkey30-Jul-19 10:55 
GeneralRe: Study: People may use overconfidence to persuade or deceive others Pin
TheGreatAndPowerfulOz31-Jul-19 7:35
TheGreatAndPowerfulOz31-Jul-19 7:35 
NewsWhat CIOs need to know about 5G Pin
Kent Sharkey30-Jul-19 9:45
staffKent Sharkey30-Jul-19 9:45 
NewsNeuroscientists decode brain speech signals into written text Pin
Kent Sharkey30-Jul-19 9:45
staffKent Sharkey30-Jul-19 9:45 
GeneralRe: Neuroscientists decode brain speech signals into written text Pin
j snooze30-Jul-19 11:35
j snooze30-Jul-19 11:35 
NewsThe Crab Nebula hulks out, sends *incredibly* high-energy gamma rays at Earth Pin
Kent Sharkey30-Jul-19 8:15
staffKent Sharkey30-Jul-19 8:15 
GeneralRe: The Crab Nebula hulks out, sends *incredibly* high-energy gamma rays at Earth Pin
Mark_Wallace30-Jul-19 9:19
Mark_Wallace30-Jul-19 9:19 
NewsResearchers hack surveillance systems to show fake video feed Pin
Kent Sharkey30-Jul-19 8:00
staffKent Sharkey30-Jul-19 8:00 

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.