Computer
Russia Still Using Black Market Starlink Terminals On Its Drones
Read more of this story at Slashdot.
Russian Launch Site Mishap Shows Perilous State of Storied Space Program
Read more of this story at Slashdot.
CodeSOD: The Destination Dir
Darren is supporting a Delphi application in the current decade. Which is certainly a situation to be in. He writes:
I keep trying to get out of doing maintenance on legacy Delphi applications, but they keep pulling me back in.
The bit of code Darren sends us isn't the largest WTF, but it's a funny mistake, and it's a funny mistake that's been sitting in the codebase for decades at this point. And as we all know, jokes only get funnier with age.
FileName := DestDir + ExtractFileName(FileName); if FileExists(DestDir + ExtractFileName(FileName)) then begin ... end;This code is inside of a module that copies a file from a remote server to the local host. It starts by sanitizing the FileName, using ExtractFileName to strip off any path components, and replace them with DestDir, storing the result in the FileName variable.
And they liked doing that so much, they go ahead and do it again in the if statement, repeating the exact same process.
Darren writes:
As Homer Simpson said "Lather, rinse, and repeat. Always repeat."
[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!Samsung Debuts Its First Trifold Phone
Read more of this story at Slashdot.
'We Built a Database of 290,000 English Medieval Soldiers'
Read more of this story at Slashdot.
Swiss Illegal Cryptocurrency Mixing Service Shut Down
Read more of this story at Slashdot.
Smartphones At Age 12 Linked To Worse Health
Read more of this story at Slashdot.
Apple AI Chief Retiring After Siri Failure
Read more of this story at Slashdot.
Flock Uses Overseas Gig Workers To Build Its Surveillance AI
Read more of this story at Slashdot.
Austria's Rebel Nuns Refuse To Give Up Instagram To Stay In Their Convent
Read more of this story at Slashdot.
Zipcar To End UK Operations
Read more of this story at Slashdot.
Korea's Coupang Says Data Breach Exposed Nearly 34 Million Customers' Personal Information
Read more of this story at Slashdot.
New York Now Requires Retailers To Tell You When AI Sets Your Price
Read more of this story at Slashdot.
Singapore Extends Secondary School Smartphone Ban To Cover Entire School Day
Read more of this story at Slashdot.
A Windows Update Broke Login Button, and Microsoft's Advice is To Click Where It Used To Be
Read more of this story at Slashdot.
Waymo Has A Charging Problem
Read more of this story at Slashdot.
Netflix Kills Casting From Phones
Read more of this story at Slashdot.
Colleges Are Preparing To Self-Lobotomize
Read more of this story at Slashdot.
Top Consultancies Freeze Starting Salaries as AI Threatens 'Pyramid' Model
Read more of this story at Slashdot.
UK 'Not in Favor' of Dimming the Sun
Read more of this story at Slashdot.
