Feed aggregator
Tumblr To Move Its Half a Billion Blogs To WordPress
Read more of this story at Slashdot.
The World's Call Center Capital Is Gripped by AI Fever - and Fear
Read more of this story at Slashdot.
Telegram CEO Released By Police, Transferred To Court For Possible Indictment
Read more of this story at Slashdot.
Microsoft Partners Beware: Action Pack To Be Retired in 2025
Read more of this story at Slashdot.
Appliance and Tractor Companies Lobby Against Giving the Military the Right to Repair
Read more of this story at Slashdot.
SEC Threatens Legal Action Against NFT Marketplace OpenSea
Read more of this story at Slashdot.
'Exploitative' IT Firm Has Been Delaying 2,000 Recruits' Onboarding For Years
Read more of this story at Slashdot.
Publicly Available EV Charger Network Doubles Under Biden-Harris Administration
Read more of this story at Slashdot.
FDA Expands Probe of Ecstasy-Based Drug Studies
Read more of this story at Slashdot.
Bug Bounty Programs Take Root In Russia
Read more of this story at Slashdot.
CodeSOD: IsEmptyOrNullOrNullOrEmpty
Peter was tracking down some bugs, when he found code which looks like this:
if (IsEmptyOrNull(myInput)) { // do things that clearly expect myInput to NOT be null or empty } else { throw BadInputException("The input must not be null."); }Names are made up above, to illustrate the flow of code.
This seemed wildly wrong, and was possibly the source of the bug, so Peter dove in. Unfortunately, this wasn't the bug. You see, IsEmptyOrNull is not a built-in function. But it wraps one.
public bool IsEmptyOrNull(string param1) { return !String.IsNullOrEmpty(param1); }Wrapping a small built-in function is already a code smell. Making the name almost identical but not quite is also a code smell. But reversing the meaning because you reversed the name is absolutely bonkers.
Did they think that A or B != B or A? Because that's what this implies. The fact that anyone used this function, when its usage was so clearly contradicting its name, speaks to a deep level of nobody caring.
It was, at least, an easy refactoring. But it speaks to how thoroughly broken their codebase is.
.comment { border: none; } [Advertisement] Continuously monitor your servers for configuration changes, and report when there's configuration drift. Get started with Otter today!US Grid Adds Batteries At 10x the Rate of Natural Gas In First Half of 2024
Read more of this story at Slashdot.
Caltech's Latest STEM Breakthrough: Most of Its New Students Are Women
Read more of this story at Slashdot.
Apple's CFO Steps Down Following a 10-Year Run
Read more of this story at Slashdot.
Snapchat Now Runs Natively On iPad
Read more of this story at Slashdot.
Anthropic Publishes the 'System Prompts' That Make Claude Tick
Read more of this story at Slashdot.
D&D Publisher Walks Back Controversial Changes To Online Tools
Read more of this story at Slashdot.
Gen Z And Millennials Are Hung Up On Answering the Phone
Read more of this story at Slashdot.
How Do You Define 'Open Source AI'?
Read more of this story at Slashdot.
Microsoft Donates the Mono Project To Wine
Read more of this story at Slashdot.