Feed aggregator
Is the Dictionary Done For?
Read more of this story at Slashdot.
Europe's Public Institutions Are Quietly Ditching US Cloud Providers
Read more of this story at Slashdot.
Samsung's 2026 Gaming Monitors Promise 6K, 3D, and Up To 1,040Hz
Read more of this story at Slashdot.
Remote Work is Officially Dead, Says the World's Largest Recruiter
Read more of this story at Slashdot.
Australia Poised for Desalination Boom as Water Shortages Loom
Read more of this story at Slashdot.
5K Gaming Is Too Hard, Even for an RTX 5090D
Read more of this story at Slashdot.
Ryanair Fined $301M Over 'Abusive Strategy' To Limit Ticket Sales By Online Travel Agencies
Read more of this story at Slashdot.
Apple and Google Asking Some Employees With H-1B Visas To Avoid International Travel
Read more of this story at Slashdot.
Apple Fined $116 Million Over App Privacy Prompts
Read more of this story at Slashdot.
US To Impose Tariffs on Chips From China
Read more of this story at Slashdot.
China Bans E-commerce Platforms From Forcing Lowest Prices or Abusing Algorithms
Read more of this story at Slashdot.
Uber, Lyft Set To Trial Robotaxis In the UK In Partnership With China's Baidu
Read more of this story at Slashdot.
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.
