Feed aggregator
Researchers Discover How Caffeine Could Slow Cellular Aging
Read more of this story at Slashdot.
CodeSOD: Classic WTF: When it's OK to GOTO
Everybody knows that you should never use "goto" statements. Well, except in one or two rare circumstances that you won't come across anyway. But even when you do come across those situations, they're usually "mirage cases" where there's no need to "goto" anyway. Kinda like today's example, written by Jonathan Rockway's colleague. Of course, the irony here is that the author likely tried to use "continue" as his label, but was forced to abbreviate it to "cont" in order to skirt compiler "reserved words" errors.
while( sysmgr->getProcessCount() != 0 ) { // Yes, I realize "goto" statements are considered harmful, // but this is a case where it is OK to use them cont: //inactivation is not guaranteed and may take up to 3 calls sysmgr->CurrentProcess()->TryInactivate(); if( sysmgr->CurrentProcess()->IsActive() ) { Sleep(DEFAULT_TIMEOUT); goto cont; } /* ED: Snip */ //disconnect child processes if( sysmgr->CurrentProcess()->HasChildProcesses() ) { /* ED: Snip */ } /* ED: Snip */ if( sysmgr->CurrentProcess()->IsReusable() ) { sysmgr->ReuseCurrentProcess(); goto cont; } sysmgr->CloseCurrentProcess(); } [Advertisement] ProGet’s got you covered with security and access controls on your NuGet feeds. Learn more.
Meta's Massive AI Data Center Is Stressing Out a Louisiana Community
Read more of this story at Slashdot.
Huawei Chair Says the Future of Comms Is Fiber-To-The-Room
Read more of this story at Slashdot.
Firefox 140 Arrives With ESR Status
Read more of this story at Slashdot.
Google Rolls Out New Gemini Model That Can Run On Robots Locally
Read more of this story at Slashdot.
Microsoft Planning 'Major' Xbox Layoffs Next Week
Read more of this story at Slashdot.
Uber, Waymo Robotaxi Service Opens To Passengers In Atlanta
Read more of this story at Slashdot.
Microsoft Releases Classic MS-DOS Editor For Linux
Read more of this story at Slashdot.
EV-Carrying Ship Sinks In Pacific Ocean After Catching Fire
Read more of this story at Slashdot.
Noise Pollution Harms Health of Millions Across Europe, Report Finds
Read more of this story at Slashdot.
Android Chrome Users Can Now Move Address Bar To Bottom of Screen
Read more of this story at Slashdot.
WD Escapes Half a Billion in Patent Damages as Judge Trims Award To $1
Read more of this story at Slashdot.
iPhone Customers Upset By Apple Wallet Ad Pushing F1 Movie
Read more of this story at Slashdot.
Philips Hue is Raising Prices in the US
Read more of this story at Slashdot.
Microsoft Extends Free Windows 10 Security Updates Into 2026, With Strings Attached
Read more of this story at Slashdot.
OpenAI Quietly Designed a Rival To Google Workspace, Microsoft Office
Read more of this story at Slashdot.
China on Cusp of Seeing Over 100 DeepSeeks, Ex-Top Official Says
Read more of this story at Slashdot.
Anthropic Bags Key 'Fair Use' Win For AI Platforms, But Faces Trial Over Damages For Millions of Pirated Works
Read more of this story at Slashdot.
Amazon Bringing Same-Day Delivery To 'Millions' of Rural Customers
Read more of this story at Slashdot.