Computer
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.
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.
