Computer
An Unresponsive Public Is Undermining Government Economic Data
Read more of this story at Slashdot.
Google Releases VaultGemma, Its First Privacy-Preserving LLM
Read more of this story at Slashdot.
UK's MI5 'Unlawfully' Obtained Data From Former BBC Journalist
Read more of this story at Slashdot.
Online Marketplace Fiverr To Lay Off 30% of Workforce In AI Push
Read more of this story at Slashdot.
Representative Line: Reduced to a Union
The code Clemens M supported worked just fine for ages. And then one day, it broke. It didn't break after a deployment, which implied some other sort of bug. So Clemens dug in, playing the game of "what specific data rows are breaking the UI, and why?"
One of the organizational elements of their system was the idea of "zones". I don't know the specifics of the application as a whole, but we can broadly describe it thus:
The application oversaw the making of widgets. Widgets could be assigned to one or more zones. A finished product requires a set of widgets. Thus, the finished product has a number of zones that's the union of all of the zones of its component widgets.
Which someone decided to handle this way:
zones.reduce((accumulator, currentValue) => accumulator = _.union(currentValue))So, we reduce across zones (which is an array of arrays, where the innermost arrays contain zone names, like zone-0, zone-1). In each step we union it with… nothing. The LoDash union function expects an array of arrays, and returns an array that's the union of all its inputs. This isn't how that function is meant to be used, but the behavior from this incorrect usage was that accumulator would end up holding the last element in zones. Which actually worked until recently, because until recently no one was splitting products across zones. When all the inputs were in the same zone, grabbing the last one was just fine.
The code had been like this for years. It was only just recently, as the company expanded, that it became problematic. The fix, at least, was easy- drop the reduce and just union correctly.
[Advertisement] ProGet’s got you covered with security and access controls on your NuGet feeds. Learn more.OpenAI's First Study On ChatGPT Usage
Read more of this story at Slashdot.
FTC Probes Whether Ticketmaster Does Enough To Stop Resale Bots
Read more of this story at Slashdot.
'Meta Ray-Ban Display' Glasses Design, HUD Clips Leak
Read more of this story at Slashdot.
Robinhood Plans To Launch a Startups Fund Open To All Retail Investors
Read more of this story at Slashdot.
Vibe Coding Has Turned Senior Devs Into 'AI Babysitters'
Read more of this story at Slashdot.
Internet Archive Ends Legal Battle With Record Labels Over Historic Recordings
Read more of this story at Slashdot.
How California Reached a Union Deal With Tech Giants Uber and Lyft
Read more of this story at Slashdot.
Airlines Sell 5 Billion Plane Ticket Records To the Government For Warrantless Searching
Read more of this story at Slashdot.
TikTok Deal 'Framework' Reached With China
Read more of this story at Slashdot.
Microsoft's Office Apps Now Have Free Copilot Chat Features
Read more of this story at Slashdot.
Hard Drive Shortage Intensifies as AI Training Data Pushes Lead Times Beyond 12 Months
Read more of this story at Slashdot.
President Calls for Six-Month Corporate Reporting Cycle, Citing Cost Savings
Read more of this story at Slashdot.
Toxic Fumes Are Leaking Into Airplanes, Sickening Crews and Passengers
Read more of this story at Slashdot.
A Third of UK Firms Using 'Bossware' To Monitor Workers' Activity, Survey Reveals
Read more of this story at Slashdot.
Apple Ships iOS 26, iPadOS 26 and macOS Tahoe 26 With 'Liquid Glass' UI Overhaul
Read more of this story at Slashdot.