Feed aggregator
US Employee Engagement Sinks To 10-Year Low
Read more of this story at Slashdot.
Annual US Dementia Cases Projected to Rise to 1 Million by 2060
Read more of this story at Slashdot.
Representative Line: The Whole Thing
David was integrating a new extension into their ecommerce solution, and found this un-representative line:
$this->model_sale_manageorder->exportOrder(substr($selectid,0,strlen($selectid)-1));Note the use of substr- we take the substr of $selectid from 0 to strlen($selectid)- aka, we take the entire string.
Perhaps this is leftover code, where once upon a time there was a prefix or suffix on the string which needed to be ignored. But the result is code that is rather dumb.
I call this an "un-representative line" because, according to David, the rest of the code in the extension was actually rather good. Even otherwise good code is not immune to having a little fart hiding under the covers, I suppose.
[Advertisement] Keep all your packages and Docker containers in one place, scan for vulnerabilities, and control who can access different feeds. ProGet installs in minutes and has a powerful free version with a lot of great features that you can upgrade when ready.Learn more.Supreme Court Allows Hawaii To Sue Oil Companies Over Climate Change Effects
Read more of this story at Slashdot.
Ministers Mull Allowing Private Firms to Make Profit From NHS Data In AI Push
Read more of this story at Slashdot.
Meta Is Blocking Links to Decentralized Instagram Competitor Pixelfed
Read more of this story at Slashdot.
Linus Torvalds Offers to Build Guitar Effects Pedal For Kernel Developer
Read more of this story at Slashdot.
CEO of AI Music Company Says People Don't Like Making Music
Read more of this story at Slashdot.
New York Starts Enforcing $15 Broadband Law That ISPs Tried To Kill
Read more of this story at Slashdot.
Euro-Cloud Anexia Moves 12,000 VMs Off VMware to Homebrew KVM Platform
Read more of this story at Slashdot.
Mastodon Announces Transition To Nonprofit Structure
Read more of this story at Slashdot.
EU Probes Apple's New App Store Fees
Read more of this story at Slashdot.
After Years of USB Word Salad, New Labels Strip Everything But the Speed
Read more of this story at Slashdot.
Microsoft Is Testing 45% M365 Price Hikes in Asia
Read more of this story at Slashdot.
Companies Deploy AI To Curb Hiring as 'Cost Avoidance' Gains Ground
Read more of this story at Slashdot.
Ghost Jobs Haunt Online Listings
Read more of this story at Slashdot.
Nvidia Snaps Back at Biden's 'Innovation-Killing' AI Chip Export Restrictions
Read more of this story at Slashdot.
FBI Chief Warns China Poised To Wreak 'Real-World Harm' on US Infrastructure
Read more of this story at Slashdot.
Sonos CEO Patrick Spence Steps Down After Disastrous App Launch
Read more of this story at Slashdot.
Neuralink Implants Third Brain Chip. Plans '20 or 30' This Year, Eventually 'Blindsight' Devices
Read more of this story at Slashdot.