Feed aggregator
'GitHub Is Starting To Feel Like Legacy Software'
Read more of this story at Slashdot.
US Opens Investigation Into Delta After Airline Cancels Thousands of Flights
Read more of this story at Slashdot.
AI Is Already Taking Jobs In the Video Game Industry
Read more of this story at Slashdot.
FTC Launches Probe Into 'Surveillance Pricing'
Read more of this story at Slashdot.
Meta Warns EU Regulatory Efforts Risk Bloc Missing Out on AI Advances
Read more of this story at Slashdot.
Apple Moves Forward With Foldable iPhone
Read more of this story at Slashdot.
Meta Launches Powerful Open-Source AI Model Llama 3.1
Read more of this story at Slashdot.
Intel Blames 13th, 14th Gen CPU Crashes on Software Bug
Read more of this story at Slashdot.
Alexa Is in Millions of Households - and Amazon Is Losing Billions
Read more of this story at Slashdot.
AT&T Outage Blocked 92 Million Calls, FCC Report Reveals
Read more of this story at Slashdot.
In Shock Move, California Forever Pulls Measure To Build Bay Area City
Read more of this story at Slashdot.
Chinese Researchers Create Four-Gram Drone
Read more of this story at Slashdot.
Physics Pioneer Receives PhD After 75 Years For Discovering Kaon Particle
Read more of this story at Slashdot.
NPath Complexity
We're not going to look at code today, and instead, we're going to talk about a code metric. Specifically, "NPath complexity".
NPath complexity is a good metric to track, and many static analyzers will do it. Formally written, it's defined: "The NPath complexity of a method is the number of acyclic execution paths through that method." Or, more simply, not counting loop iterations, this is how many branches you have in a single method.
Obviously, for simplicity's sake, this number should be small. Hell, ideally, it should be small enough that you can count it on your fingers. Ideally, small enough that you can count it on your fingers after attempting to drunkenly operate a bandsaw with no training.
But a lot of code doesn't hit that threshold.
Nikola's team decided it was time to start tracking some of those metrics. The tool they were using set the default threshold where it complains at 200- 200 different code paths in a single function.
Nikola didn't provide the code. But she did provide a telling snippet from the report:
1508 The method setStatus() has an NPath complexity of 836081572200. The configured NPath complexity threshold is 200.Obviously, that number is so large that it must be a bug- something about the code makes the static analyzer choke and fall over. But that's it's own kind of complexity- so complex it can't be meaningfully studied to extract metrics. And the function is several thousand lines long. Why is something called setStatus so complicated? No idea. But it seems like Nikola has some refactoring ahead of her.
[Advertisement] Otter - Provision your servers automatically without ever needing to log-in to a command prompt. Get started today!Google's New Weather Prediction System Combines AI With Traditional Physics
Read more of this story at Slashdot.
Wiz Turns Down $23 Billion Google Deal
Read more of this story at Slashdot.
Japan's Copyright Rules Draw AI Groups -- and Alarm From Creators
Read more of this story at Slashdot.
Microsoft: Linux Is the Top Operating System on Azure Today
Read more of this story at Slashdot.
Nvidia RTX 40-Series GPUs Hampered By Low-Quality Thermal Paste
Read more of this story at Slashdot.
Meta Risks Sanctions Over 'Sneaky' Ad-Free Plans Confusing Users, EU Says
Read more of this story at Slashdot.