Feed aggregator
Study Finds Tattoo Ink Moves Through the Body, Killing Immune Cells
Read more of this story at Slashdot.
Anthropic Acquires Bun In First Acquisition
Read more of this story at Slashdot.
San Francisco Will Sue Ultraprocessed Food Companies
Read more of this story at Slashdot.
Waymo Hits a Dog In San Francisco, Reigniting Safety Debate
Read more of this story at Slashdot.
Kubernetes Is Retiring Its Popular Ingress NGINX Controller
Read more of this story at Slashdot.
OpenAI Declares 'Code Red' As Google Catches Up In AI Race
Read more of this story at Slashdot.
Apple To Resist India Order To Preload State-Run App As Political Outcry Builds
Read more of this story at Slashdot.
UK Plans To Ban Cryptocurrency Political Donations
Read more of this story at Slashdot.
Amazon To Use Nvidia Tech In AI Chips, Roll Out New Servers
Read more of this story at Slashdot.
SmartTube YouTube App For Android TV Breached To Push Malicious Update
Read more of this story at Slashdot.
Michael and Susan Dell Donate $6.25 Billion To Encourage Families To Claim 'Trump Accounts'
Read more of this story at Slashdot.
Google's Vibe Coding Platform Deletes Entire Drive
Read more of this story at Slashdot.
Zillow Drops Climate Risk Scores After Agents Complained of Lost Sales
Read more of this story at Slashdot.
Trump Administration To Take Equity Stake In Former Intel CEO's Chip Startup
Read more of this story at Slashdot.
Steam On Linux Hits An All-Time High In November
Read more of this story at Slashdot.
Supreme Court Hears Copyright Battle Over Online Music Piracy
Read more of this story at Slashdot.
An Independent Effort Says AI Is the Secret To Topple 2-Party Power In Congress
Read more of this story at Slashdot.
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!