Scotland QUALIFY for the World Cup: Kenny McLean's stunning halfway-line strike seals thrilling victory over Denmark in clash featuring VAR controversy, a red card and Scott McTominay's overhead kick
Unattended candle leaves Essex flat damaged as fire service issues advice
Man Who Cryogenically Froze Late Wife Sparks Debate By Dating New Partner
Read more of this story at Slashdot.
The huge Essex farm shop among the best in the UK with popular food hall
Ecstatic Andy Murray leads reaction to Scotland's dramatic World Cup qualification as nation's stars revel in epic 4-2 win over Denmark
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.
Fears for 'overstretched' roads, schools and GPs if 480 homes built in new development
Commons targeted by Chinese spooks: MI5 warns MPs and staff to be on guard after exposing two women spies
Police chief says St George's flags are 'tools of division' being used to spread fear on the streets
What really happened to Tati Westbrook: Her YouTube spat with James Charles backfired... then things took an even uglier turn. Read the FULL story about her marriage, why she lost her home - and her latest obsession
Southend council brings in £146k just from disabled parking fines
Donald Trump pays tribute to Cristiano Ronaldo at White House dinner with Saudi Crown Prince
China recruiting spies in the UK with fake headhunters and ‘sites like LinkedIn’
Chinese spies are using social media and fake recruitment agents to recruit sources with access to sensitive information in the UK.…
'My £1500 luggage looked like it had been dragged down the runway - Ryanair offered me £50'
Family describes 'devastation' of losing son in crash for Road Safety Week
Road experts say A120 is 'high risk route' on Road Safety Week
Road experts say A120 is 'high risk route' on Road Safety Week
Family describes 'devastation' of losing son in crash for Road Safety Week
Residents claim 'irreplaceable' woodland must be saved from development plan
Inside HPE’s Blueprint For Next-Generation Supercomputing
SPONSORED POST Hewlett Packard Enterprise sets out its latest advances in large-scale computing at the SC25 high performance computing conference in November. …
Inside HPE’s Blueprint For Next-Generation Supercomputing was written by David Gordon at The Next Platform.