Feed aggregator
WhatsApp Scores Historic Victory Against NSO Group in Long-Running Spyware Hacking Case
Read more of this story at Slashdot.
Nissan and Honda Agree To Merge
Read more of this story at Slashdot.
Xerox To Buy Printer Maker Lexmark From Chinese Owners in $1.5 Billion Deal
Read more of this story at Slashdot.
PayPal's Honey Accused of Misleading Users, Hiding Discounts
Read more of this story at Slashdot.
Telegram Turns a Profit for the First Time
Read more of this story at Slashdot.
Software Revenue Lags Despite Tech Giants' $292 Billion AI Spend
Read more of this story at Slashdot.
Takedown Notices Hit Luigi Mangione Merchandise and Photos - Including DMCAs
Read more of this story at Slashdot.
Some Passengers Riding in Waymo's Driverless Cars Face Uncomfortable Situations
Read more of this story at Slashdot.
CodeSOD: Empty Reasoning
Rachel worked on a system which collected data about children, provided by parents and medical professionals. There was one bug that drew a lot of fire: no one could report the age of a child as less than one. That was a problem, as for most of their users, child ages are zero-indexed. One of the devs picked up the bug, made a change, and went on to the next bug.
This was the fix:
if (!empty($_POST["age_at_time"]) || empty($_POST["age_at_time"]))The original check had been !empty- which may seem like it's ensuring a value was provided, but in PHP the empty function returns true for null values, empty strings, and anything falsey- like the integer 0.
So they made a change to cover the other case, and never stopped to ask themselves, "Would doing this be stupid?"
[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!
France Adds First New Nuclear Reactor to Its Grid Since 1999
Read more of this story at Slashdot.
Drones Collide, Fall From Sky in Florida Light Show, Seriously Injuring 7-Year-Old Boy
Read more of this story at Slashdot.
ChatGPT Mocks a Human Author. Who Owns That Paragraph?
Read more of this story at Slashdot.
'Human Vs. Autonomous Car' Race Ends Before It Begins
Read more of this story at Slashdot.
Energy Prices Drop Below Zero In UK Thanks To Record Wind-Generated Electricity
Read more of this story at Slashdot.
Apple Reportedly Plans a Doorbell That Unlocks Your Door With Face ID
Read more of this story at Slashdot.
Aging Isn't Linear, Researchers Discover: 'Dramatic Change' in Mid-40s, Early 60s
Read more of this story at Slashdot.
With Drones Over US Military Bases, Agencies Urge Congress to Pass Drone-Defense Legislation
Read more of this story at Slashdot.
Albania Will Close TikTok for One Year, Saying It Encourages Violence Among Children
Read more of this story at Slashdot.
The Theory That Volcanoes Killed the Dinosaurs Is Officially Extinct
Read more of this story at Slashdot.
Sea Levels are Already Rising in America's Southeast. A Preview of the Future?
Read more of this story at Slashdot.