Feed aggregator
macOS 26 May Not Support 2018 MacBook Pros, 2019 iMacs, or the iMac Pro
Read more of this story at Slashdot.
HP Hastens China Exit as Tariffs Kick a Hole in its Profits
Read more of this story at Slashdot.
Researchers Warn Against Treating AI Outputs as Human-Like Reasoning
Read more of this story at Slashdot.
AI May Already Be Shrinking Entry-Level Jobs In Tech, New Research Suggests
Read more of this story at Slashdot.
World Faces New Danger of 'Economic Denial' in Climate Fight, Cop30 Head Says
Read more of this story at Slashdot.
Astronomers Discover Mystery Cosmic Body Bursting With X-Rays
Read more of this story at Slashdot.
CodeSOD: Recasting the Team
Nina's team has a new developer on the team. They're not a junior developer, though Nina wishes they could replace this developer with a junior. Inexperience is better than whatever this Java code is.
Object[] test = (Object[]) options; List<SchedulePlatform> schedulePlatformList = (List<SchedulePlatform>)((Object[])options)[0]; List<TableColumn> visibleTableCols = (List<TableColumn>)((Object[])options)[1];We start by casting options into an array of Objects. That's already a code stench, but we actually don't even use the test variable and instead just redo the cast multiple times.
But worse than that, we cast to an array of object, access an element, and then cast that element to a collection type. I do not know what is in the options variable, but based on how it gets used, I don't like it. What it seems to be is a class (holding different options as fields) rendered as an array (holding different options as elements).
The new developer (ab)uses this pattern everywhere.
[Advertisement] ProGet’s got you covered with security and access controls on your NuGet feeds. Learn more.Data Broker Giant LexisNexis Says Breach Exposed Personal Information of Over 364,000 People
Read more of this story at Slashdot.
Microsoft Is Opening Windows Update To Third-Party Apps
Read more of this story at Slashdot.
EA Cancels Black Panther Game, Closes Cliffhanger Games
Read more of this story at Slashdot.
Discord's New Currency Pays Users To Interact With Ads
Read more of this story at Slashdot.
Mysterious Database of 184 Million Records Exposes Vast Array of Login Credentials
Read more of this story at Slashdot.
CD Projekt Red is Moving Forward With Cyberpunk 2
Read more of this story at Slashdot.
US Will Ban Foreign Officials To Punish Countries For Social Media Rules
Read more of this story at Slashdot.
Apple Will Announce iOS 26 at WWDC, Not iOS 19
Read more of this story at Slashdot.
xAI To Pay Telegram $300 Million To Integrate Grok Into Chat App
Read more of this story at Slashdot.
Google Photos Turns 10 With Major Editor Redesign, QR Code Sharing
Read more of this story at Slashdot.
Japanese Authorities Refer 'Spoiler Website' Operators To Prosecutors in Rare Corporate Copyright Case
Read more of this story at Slashdot.
80% Chance of Record Heat in Coming Years, Climate Agencies Forecast
Read more of this story at Slashdot.
The Hobby Computer Culture
Read more of this story at Slashdot.