Computer
Nearly Three-Quarters of All Known Bacterial Species Have Never Been Studied
Read more of this story at Slashdot.
Nobel Prize Winners Call For Urgent 'Moonshot' Effort To Avert Global Hunger Catastrophe
Read more of this story at Slashdot.
Developer Makes Doom Run Inside a PDF File
Read more of this story at Slashdot.
LA Wildfires Push California Insurance Market To Its Limit
Read more of this story at Slashdot.
Meta To Cut 3,600 Jobs, Targeting Lowest Performers
Read more of this story at Slashdot.
UK Plans To Ban Public Sector Organizations From Paying Ransomware Hackers
Read more of this story at Slashdot.
The New $30,000 Side Hustle: Making Job Referrals for Strangers
Read more of this story at Slashdot.
161 Years Ago, a New Zealand Sheep Farmer Predicted AI Doom
Read more of this story at Slashdot.
Ransomware Crew Abuses AWS Native Encryption, Sets Data-Destruct Timer for 7 Days
Read more of this story at Slashdot.
Snyk Researcher Caught Deploying Malicious Code Targeting AI Startup
Read more of this story at Slashdot.
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.