Feed aggregator
India's Grid Cannot Keep Up With Its Ambitions
Read more of this story at Slashdot.
Senate Dem Report Finds Almost 100 Million Jobs Could Be Lost To AI
Read more of this story at Slashdot.
Microsoft Is Plugging More Holes That Let You Use Windows 11 Without an Online Account
Read more of this story at Slashdot.
Black Holes Might Hold the Key To a 60-Year Cosmic Mystery
Read more of this story at Slashdot.
Representative Line: Listing Off the Problems
Today, Mike sends us a Java Representative Line that is, well, very representative. The line itself isn't inherently a WTF, but it points to WTFs behind it. It's an omen of WTFs, a harbinger.
ArrayList[] data = new ArrayList[dataList.size()];dataList is an array list. This line creates an array of arraylists, equal in length to dataList. Why? It's hard to say for certain, but the whiff I get off it is that this is an attempt to do "object orientation by array(list)s." Each entry in dataList is some sort of object. They're going to convert each object in dataList into an arraylist of values. This also either is old enough to predate Java generics (which is its own WTF), or explicitly wants a non-generic version so that it can do this munging of values into an array.
Mike provided no further explanation, so that's all speculation. But what is true is that when I see a line like that, my programmer sense starting tingling- something is wrong, even if I don't quite know what.
[Advertisement] Picking up NuGet is easy. Getting good at it takes time. Download our guide to learn the best practice of NuGet for the Enterprise.Quarter of UK University Physics Departments At Risk of Closing, Survey Finds
Read more of this story at Slashdot.
CBS News Was Just Taken Over By a Substack
Read more of this story at Slashdot.
AstraZeneca Signs Up For $555 Million AI Deal With Algen To Develop Therapies
Read more of this story at Slashdot.
California Biotech Tycoon Found Guilty of Orchestrating Rival's Murder
Read more of this story at Slashdot.
Redis Warns of Critical Flaw Impacting Thousands of Instances
Read more of this story at Slashdot.
Apple Hardware Head John Ternus Top Pick To Succeed Tim Cook As CEO
Read more of this story at Slashdot.
Suspect Arrested After Threats Against TikTok's Culver City Headquarters
Read more of this story at Slashdot.
OpenAI Will Let Developers Build Apps That Work Inside ChatGPT
Read more of this story at Slashdot.
Porsche Can't Add Wireless Charging To Macan, Taycan EV Because the Inductive Plate Doesn't Fit
Read more of this story at Slashdot.
Some Workers Are Turning To Pay-Advance Apps for Basic Expenses
Read more of this story at Slashdot.
Ubuntu Linux 26.04 LTS Officially Named Resolute Raccoon
Read more of this story at Slashdot.
Microsoft Assures Gamers It's Not Abandoning Xbox Hardware
Read more of this story at Slashdot.
ChatGPT Now Has 800 Million Weekly Active Users
Read more of this story at Slashdot.
Sharpie Found a Way To Make Pens More Cheaply - By Manufacturing Them in the US
Read more of this story at Slashdot.
As Forests Are Cut Down, Butterflies Are Losing Their Colours
Read more of this story at Slashdot.