Feed aggregator
Terraform Fork Gets Renamed OpenTofu, Joins Linux Foundation
Read more of this story at Slashdot.
Unified Acceleration Foundation Wants To Create an Open Standard for Accelerator Programming
Read more of this story at Slashdot.
Y Combinator Says Visa Challenges Hampering Participation of International Startups
Read more of this story at Slashdot.
OpenAI Debuts Next Version of Its Image Generation Tool
Read more of this story at Slashdot.
Almost Everyone in Europe is Breathing Toxic Air
Read more of this story at Slashdot.
Xbox Exec Says Leaked 'Old Emails and Documents' Have 'Outdated' Info
Read more of this story at Slashdot.
Top Google Search Result for Tiananmen Square 'Tank Man' Is AI Generated Selfie
Read more of this story at Slashdot.
Sysadmin, Spouse Admit To Part in 'Massive' Pirated Avaya Licenses Scam
Read more of this story at Slashdot.
Amazon's Eero Max 7 Mesh Router Adds Wi-Fi 7 - For a Whopping $600
Read more of this story at Slashdot.
John Grisham, George RR Martin, Other Top US Authors Sue OpenAI Over Copyrights
Read more of this story at Slashdot.
China Accuses US of Hacking Huawei Servers as Far Back as 2009
Read more of this story at Slashdot.
Apple and Goldman Planned Stock-Trading Feature for iPhones Until Markets Turned
Read more of this story at Slashdot.
WhatsApp Appears To Be About To Launch Its Long-Overdue iPad App
Read more of this story at Slashdot.
The International Criminal Court In The Hague Says It Has Been Hacked
Read more of this story at Slashdot.
Long-Term Support For Linux Kernel To Be Cut As Maintenance Remains Under Strain
Read more of this story at Slashdot.
Space Drugs Factory Denied Reentry To Earth
Read more of this story at Slashdot.
CodeSOD: This Equals Success
There are common errors that are (or were) once so common that we've built tools to help us avoid them. So I was a little surprised to see this JavaScript from Annie's co-worker.
toggleField() { this.updateToggle(this.obj.id, this.toggle).subscribe(data=> { if (data.status = "success") { this.showToast('Toggle updated successfully'); ... } ... } }This code handily ensures that the user will always be told that the toggle updates successfully. Note the "condition"- data.status = "success". It's an assignment, not a condition.
This is a super common mistake, easy to make, which is why Annie's team uses a linter as part of their CI process to ensure they don't slip through. Unfortunately, the developer responsible for this code also changed the CI job settings to ensure that this stopped giving them an error, because obviously making the error go away is more important than fixing it.
Annie fixed the code, but admits: "The user experience was always positive, but it's about to get worse."
[Advertisement] Otter - Provision your servers automatically without ever needing to log-in to a command prompt. Get started today!RNA Has Been Recovered From an Extinct Species For the First Time
Read more of this story at Slashdot.
Schneider Electric Warns That Existing Datacenters Aren't Buff Enough For AI
Read more of this story at Slashdot.
Google Wants To Map More of the World's Roads With Expansion of 'Road Mapper' Volunteer Community
Read more of this story at Slashdot.