Feed aggregator
Safety Panel Says NASA Should Have Taken Starliner Incident More Seriously
Read more of this story at Slashdot.
How a Power Outage In Colorado Caused US Official Time To Be 4.8 Microseconds
Read more of this story at Slashdot.
CodeSOD: A Case of Old Code
We've talked about the For-Case anti-pattern many, many times. And while we've seen some wild variations, and some pretty hideous versions, I think we have yet to see the exact example Ashley H sends us:
for (int i = 0; i < 4; i++) { if (i == 0) { step1(); } else if (i == 1) { step2(); } else if (i == 2) { step3(); } else if (i == 3){ finalStep(); } }The specific names of the functions have been anonymized, but this illustrates the key points of what Ashley found.
It's been in the code base for some time, so she's not entirely certain where it came from, or what the company's code review practices were like at the time.
You see, this kind of code doesn't appear fully formed. It gets created, one step, after another, after another, after another. It's like a loop, but… uh… in a line. Without looping.
[Advertisement] Plan Your .NET 9 Migration with ConfidenceYour journey to .NET 9 is more than just one decision.Avoid migration migraines with the advice in this free guide. Download Free Guide Now!
Garmin Emergency Autoland Has First Save
Read more of this story at Slashdot.
FCC Bans Foreign-Made Drones Over National Security, Spying Concerns
Read more of this story at Slashdot.
Microsoft To Replace All C/C++ Code With Rust By 2030
Read more of this story at Slashdot.
Alphabet Acquires Data Center and Energy Infrastructure Company Intersect For $4.75 Billion
Read more of this story at Slashdot.
Cyberattack Disrupts France's Postal Service, Banking During Christmas Rush
Read more of this story at Slashdot.
Larry Ellison Pledges $40-Billion Personal Guarantee For Paramount's Warner Bros Bid
Read more of this story at Slashdot.
Call of Duty Co-Creator, Respawn Co-Founder, and EA Exec Vince Zampella Killed In Car Accident
Read more of this story at Slashdot.
US Blocks All Offshore Wind Construction, Says Reason Is Classified
Read more of this story at Slashdot.
Accommodating Emerging Giants in the Global Economy
Read more of this story at Slashdot.
Australian Eateries Turn To Automatic Tipping as Cost of Doing Business Climbs
Read more of this story at Slashdot.
Why Some Avatar: Fire and Ash Scenes Look So Smooth, and Others Don't
Read more of this story at Slashdot.
What the Linux Desktop Really Needs To Challenge Windows
Read more of this story at Slashdot.
Instacart Kills AI Pricing Tests That Charged Some Customers More Than Others
Read more of this story at Slashdot.
Visa Says AI Will Start Shopping and Paying For You In 2026
Read more of this story at Slashdot.
State of Play: Who Holds the Power in the Video Games Industry in 2025?
Read more of this story at Slashdot.
Samsung Is Putting Google Gemini AI Into Your Refrigerator, Whether You Need It or Not
Read more of this story at Slashdot.
Welcome To America's New Surveillance High Schools
Read more of this story at Slashdot.
