Feed aggregator
CodeSOD: Double Checking
Abdoullah sends us this little blob of C#, which maybe isn't a full-on WTF, but certainly made me chuckle.
if (file!= null) { if (file.name.StartsWith(userName)) { if (file.name.StartsWith(userName)) { url = string.Format(FILE_LINK, file.itemId, file.name); break; } } }Are you sure the file name starts with the user name? Are you really sure?
This code somehow slipped by code review, helped perhaps by the fact that the author was the senior-most team member and everyone assumed they were immune to these kinds of mistakes.
No one is immune.
[Advertisement] Utilize BuildMaster to release your software with confidence, at the pace your business demands. Download today!Titan Sub Implosion Audio Released For the First Time
Read more of this story at Slashdot.
First Ultra-High-Energy Neutrino Detected
Read more of this story at Slashdot.
Woeful Security On Financial Phone Apps Is Getting People Murdered
Read more of this story at Slashdot.
Apple TV Finally Comes To Android Phones, Tablets
Read more of this story at Slashdot.
Scarlett Johansson Calls For Deepfake Ban After AI Video Goes Viral
Read more of this story at Slashdot.
AI Summaries Turn Real News Into Nonsense, BBC Finds
Read more of this story at Slashdot.
OpenAI Cancels Its o3 AI Model In Favor of a 'Unified' Next-Gen Release
Read more of this story at Slashdot.
Apple Now Lets You Move Purchases Between Your 25 Years of Accounts
Read more of this story at Slashdot.
Oracle's Ellison Calls for Governments To Unify Data To Feed AI
Read more of this story at Slashdot.
Opendoor Cuts Jobs in India, Shifts Technical Hiring To Bay Area and Krakow
Read more of this story at Slashdot.
Google Will Use Machine Learning To Estimate a User's Age
Read more of this story at Slashdot.
Tech Leaders Hold Back on AI Agents Despite Vendor Push, Survey Shows
Read more of this story at Slashdot.
Children's Arithmetic Skills Do Not Transfer Between Applied and Academic Mathematics
Read more of this story at Slashdot.
Apple Explores Robotics Push For Smart Home Market, Analyst Says
Read more of this story at Slashdot.
Google Fixes Flaw That Could Unmask YouTube Users' Email Addresses
Read more of this story at Slashdot.
Ex-Google Chief Warns West To Focus On Open-Source AI in Competition With China
Read more of this story at Slashdot.
How 3D-Printed Parts Changed the NASCAR Cup Series
Read more of this story at Slashdot.
Man Who Hijacked SEC's X Account To Pump Bitcoin Faces Up To 5 Years In Prison
Read more of this story at Slashdot.
The Mystery Behind the Best UFO Picture Ever Seen
Read more of this story at Slashdot.