Computer
Congress Quietly Strips Right-To-Repair Provisions From US Military Spending Bill
Read more of this story at Slashdot.
Millions of Australian Teens Lose Access To Social Media As Ban Takes Effect
Read more of this story at Slashdot.
Apple's Slow AI Pace Becomes a Strength As Market Grows Weary of Spending
Read more of this story at Slashdot.
2025 Will Be World's Second or Third-Hottest Year on Record, EU Scientists Say
Read more of this story at Slashdot.
Microsoft 365 Prices Rising For Businesses and Governments in July 2026
Read more of this story at Slashdot.
The Inevitable Shape of Cheap Online Retail
Read more of this story at Slashdot.
How Pokemon Cards Became a Stock Market For Millennials
Read more of this story at Slashdot.
Microsoft To Invest $17.5 Billion in India
Read more of this story at Slashdot.
What Happens When an 'Infinite-Money Machine' Unravels
Read more of this story at Slashdot.
Xbox Is Bleeding Out
Read more of this story at Slashdot.
The Rarest of All Diseases Are Becoming Treatable
Read more of this story at Slashdot.
'Colleges Oversold Education. Now They Must Sell Connection'
Read more of this story at Slashdot.
Microsoft Excel Turns 40, Remains Stubbornly Unkillable
Read more of this story at Slashdot.
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.
