Computer
India's Aviation Crisis Is All About Too Big to Tame
Read more of this story at Slashdot.
Science Journal Retracts Study On Safety of Monsanto's Roundup
Read more of this story at Slashdot.
Evidence That Humans Now Speak In a Chatbot-Influenced Dialect Is Getting Stronger
Read more of this story at Slashdot.
Claude Code Is Coming To Slack
Read more of this story at Slashdot.
CodeSOD: The Article
When writing software, we like our code to be clean, simple, and concise. But that loses something, you end up writing just some code, and not The Code. Mads's co-worker wanted to make his code more definite by using this variable naming convention:
public static void addToListInMap(final Map theMap, final String theKey, final Object theValue) { List theList = (List) theMap.get(theKey); if (theList == null) { theList = new ArrayList(); theMap.put(theKey, theList); } theList.add(theValue); }This Java code clearly is eschewing generic types, which is its own problem, and I also have to raise concerns about a map of lists; I don't know what that structure is for, but there's almost certainly a better way to do it.
But of course, that's not why we're here. We're here to look at the variable names. This developer did this all the time, a bizarre version of Hungarian notation. Did the developer attend The Ohio State? (Since all jokes are funnier when you explain them, Ohio State insists on being referred to with the definite article, which sounds weird, and yes, that's not the weirdest thing about American Football, but it's weird).
I worry about what happens when one function takes in two maps or two keys? theKey and theOtherKey? Or do they get demoted to aKey and anotherKey?
But I am left wondering: what is theValue of this convention?
[Advertisement] Keep all your packages and Docker containers in one place, scan for vulnerabilities, and control who can access different feeds. ProGet installs in minutes and has a powerful free version with a lot of great features that you can upgrade when ready.Learn more.Cold Case Inquiries Stall After Ancestry.com Revisits Policy For Users
Read more of this story at Slashdot.
193 Cybercrims Arrested, Accused of Plotting 'Violence-As-a-Service'
Read more of this story at Slashdot.
Nvidia Can Sell H200 Chips To China For 25% US Cut
Read more of this story at Slashdot.
More Than 200 Environmental Groups Demand Halt To New US Datacenters
Read more of this story at Slashdot.
Taiwan Cries Censorship As Government Bans Rednote
Read more of this story at Slashdot.
IBM To Buy Confluent For $11 Billion To Expand AI Services
Read more of this story at Slashdot.
Firefox 146 Now Available With Native Fractional Scaling On Wayland
Read more of this story at Slashdot.
Meta Pledge To Use Less Personal Data For Ads Gets EU Nod, Avoids Daily Fines
Read more of this story at Slashdot.
Lenovo's Next Gaming Laptop May Have a Rollable OLED Screen That Stretches Ultrawide
Read more of this story at Slashdot.
Social Media's Relentless Shopping Machine Has Created an Army of Debt-Laden Buyers
Read more of this story at Slashdot.
China's Growth Is Coming at the Rest of the World's Expense
Read more of this story at Slashdot.
Denmark Posts Its Last Letters as Hallowed National Mail Ends
Read more of this story at Slashdot.
How the Dollar-Store Industry Overcharges Cash-Strapped Customers While Promising Low Prices
Read more of this story at Slashdot.
Google Says First AI Glasses With Gemini Will Arrive in 2026
Read more of this story at Slashdot.
Japan Issues Tsunami Warning After Magnitude 7.6 Earthquake
Read more of this story at Slashdot.
