Feed aggregator
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.
Japan Post Launches 'Digital Address' System
Read more of this story at Slashdot.
Cyberattack Surge Creates Opportunity for Insurers, Prompts Rethink on Premiums
Read more of this story at Slashdot.
Blue Book Sales Surge As Universities Combat AI Cheating
Read more of this story at Slashdot.
Planet's Darkening Oceans Pose Threat To Marine Life, Scientists Say
Read more of this story at Slashdot.
Grading for Equity Coming To San Francisco High Schools This Fall
Read more of this story at Slashdot.