Feed aggregator
Apple N1 Wi-Fi Chip Improves On Older Broadcom Chips In Every Way
Read more of this story at Slashdot.
Saudi Makes Big Bet On AI Films As Hollywood Moves From Studios To Datacenters
Read more of this story at Slashdot.
Nvidia Beats Earnings Expectations, Even As Bubble Concerns Mount
Read more of this story at Slashdot.
Dutch Hand Back Control of Chinese-Owned Chipmaker Nexperia
Read more of this story at Slashdot.
Can Chinese-Made Buses Be Hacked? Norway Drove One Down a Mine To Find Out
Read more of this story at Slashdot.
New Antibiotic Could Be a Breakthrough in Treatment for Killer TB, Trial Suggests
Read more of this story at Slashdot.
Ultra-Processed Food is Global Health Threat, Researchers Warn
Read more of this story at Slashdot.
Europe's Cookie Nightmare is Crumbling
Read more of this story at Slashdot.
Linus Torvalds Says Vibe Coding is Fine For Getting Started, 'Horrible Idea' For Maintenance
Read more of this story at Slashdot.
UK To Ban the Resale of Tickets For Profit To Protect Fans
Read more of this story at Slashdot.
The Growing Problem With China's Unreliable Numbers
Read more of this story at Slashdot.
More Than 60 US and Canadian Police Units Now Use Boston Dynamics' Robot Dog
Read more of this story at Slashdot.
CDC Data Confirms US is 2 Months Away From Losing Measles Elimination Status
Read more of this story at Slashdot.
Chinese University Collected More AI Patents Than MIT, Stanford, Princeton and Harvard Combined
Read more of this story at Slashdot.
Cloudflare Explains Its Worst Outage Since 2019
Read more of this story at Slashdot.
Netgear Accused by Rival of China Smear To Fan Security Fear
Read more of this story at Slashdot.
Man Who Cryogenically Froze Late Wife Sparks Debate By Dating New Partner
Read more of this story at Slashdot.
CodeSOD: Are You Mocking Me?
Today's representative line comes from Capybara James (most recently previously). It's representative, not just of the code base, but of Goodhart's Law: when a measure becomes a target, it ceases to be a good measure. Or, "you get what you measure".
If, for example, you decide that code coverage metrics are how you're going to judge developers, then your developers are going to ensure that the code coverage looks great. If you measure code coverage, then you will get code coverage- and nothing else.
That's how you get tests like this:
Mockito.verify(exportRequest, VerificationModeFactory.atLeast(0)).failedRequest(any(), any(), any());This test passes if the function exportRequest.failedRequest is called at least zero times, with any input parameters.
Which, as you might imagine, is a somewhat useless thing to test. But what's important is that there is a test. The standards for code coverage are met, the metric is satisfied, and Goodhart marks up another win on the board.
[Advertisement] Utilize BuildMaster to release your software with confidence, at the pace your business demands. Download today!US Backs Three Mile Island Nuclear Restart With $1 Billion Loan To Constellation
Read more of this story at Slashdot.
Chinese Spies Are Trying To Reach UK Lawmakers Via LinkedIn, MI5 Warns
Read more of this story at Slashdot.
