Feed aggregator
Pentagon Axes $5.1 Billion in IT and Consulting Contracts With Accenture, Deloitte
Read more of this story at Slashdot.
China Raises Tariffs on US Imports To 125%
Read more of this story at Slashdot.
FDA Plans To Phase Out Animal Testing Requirements
Read more of this story at Slashdot.
Error'd: Sentinel Headline
When faced with an information system lacking sufficient richness to permit its users to express all of the necessary data states, human beings will innovate. In other words, they will find creative ways to bend the system to their will, usually (but not always) inconsequentially.
In the early days of information systems, even before electronic computers, we found users choosing to insert various out-of-bounds values into data fields to represent states such as "I don't know the true value for this item" or "It is impossible accurately state the true value of this item because of faulty constraint being applied to the input mechanism" or other such notions.
This practice carried on into the computing age, so that now, numeric fields will often contain values of 9999 or 99999999. Taxpayer numbers will be listed as 000-00-0000 or any other repetition of the same digit or simple sequences. Requirements to enter names collected John Does. Now we also see a fair share of Disney characters.
Programmers then try to make their systems idiot-proof, with the obvious and entirely predictable results.
The mere fact that these inventions exist at all is entirely due to the ommission of mechanisms for the metacommentary that we all know perfectly well is sometimes necessary. But rather than provide those, it's easier to wave our hands and pretend that these unwanted states won't exist, can be ignored, can be glossed over. "Relax" they'll tell you. "It probably won't ever happen." "If it does happen, it won't matter." "Don't lose your head over it."
The Beast in Black certainly isn't inclined to cover up an errant sentinel. "For that price, it had better be a genuine Louis XVI pillow from 21-January-1793." A La Lanterne!
Daniel D. doubled up on Error'ds for us. "Do you need the error details? Yes, please."
And again with an alert notification oopsie. "Google Analytics 4 never stops surprising us any given day with how bugged it is. I call it an "Exclamation point undefined". You want more info? Just Google it... Oh wait." I do appreciate knowing who is responsible for the various bodges we are sent. Thank you, Daniel.
"Dark pattern or dumb pattern?" wonders an anonymous reader. I don't think it's very dark.
Finally, Ian Campbell found a data error that doesn't look like an intentional sentinel. But I'm not sure what this number represents. It is not an integral power of 2. Says Ian, "SendGrid has a pretty good free plan now with a daily limit of nine quadrillion seven trillion one hundred ninety-nine billion two hundred fifty-four million seven hundred forty thousand nine hundred ninety-two."
[Advertisement] Plan Your .NET 9 Migration with Confidence
Your journey to .NET 9 is more than just one decision.Avoid migration migraines with the advice in this free guide. Download Free Guide Now!
AI Models Still Struggle To Debug Software, Microsoft Study Shows
Read more of this story at Slashdot.
Russian Cable Attacks 'Threaten To Cut Off World's Internet'
Read more of this story at Slashdot.
Microsoft is About To Launch Recall For Real This Time
Read more of this story at Slashdot.
Fintech Founder Charged With Fraud After 'AI' Shopping App Found To Be Powered By Humans in the Philippines
Read more of this story at Slashdot.
Data Centres Will Use Twice as Much Energy By 2030
Read more of this story at Slashdot.
OpenAI Expands ChatGPT Memory To Draw on Full Conversation History
Read more of this story at Slashdot.
Meta Says Llama 4 Targets Left-Leaning Bias
Read more of this story at Slashdot.
China To Restrict US Film Releases
Read more of this story at Slashdot.
Meta's New Tech Wants You Using Phones in Theaters
Read more of this story at Slashdot.
Gas Boiler Fittings Outnumbered Heat Pumps By 15 To One in UK Last Year - Report
Read more of this story at Slashdot.
Amazon CEO Urges 'Startup' Mentality in Shareholder Letter
Read more of this story at Slashdot.
Trump: Apple Building in China is 'Unsustainable,' Could Exempt Some Companies From Tariffs
Read more of this story at Slashdot.
Bank of England Says AI Software Could Create Market Crisis For Profit
Read more of this story at Slashdot.
CodeSOD: A Steady Ship
You know what definitely never changes? Shipping prices. Famously static, despite all economic conditions and the same across all shipping providers. It doesn't matter where you're shipping from, or to, you know exactly what the price will be to ship that package at all times.
Wait, what? You don't think that's true? It must be true, because Chris sent us this function, which calculates shipping prices, and it couldn't be wrong, could it?
public double getShippingCharge(String shippingType, bool saturday, double subTot) { double shCharge = 0.00; if(shippingType.Equals("Ground")) { if(subTot <= 29.99 && subTot > 0) { shCharge = 4.95; } else if(subTot <= 99.99 && subTot > 29.99) { shCharge = 7.95; } else if(subTot <= 299.99 && subTot > 99.99) { shCharge = 9.95; } else if(subTot > 299.99) { shCharge = subTot * .05; } } else if(shippingType.Equals("Two-Day")) { if(subTot <= 29.99 && subTot > 0) { shCharge = 14.95; } else if(subTot <= 99.99 && subTot > 29.99) { shCharge = 19.95; } else if(subTot <= 299.99 && subTot > 99.99) { shCharge = 29.95; } else if(subTot > 299.99) { shCharge = subTot * .10; } } else if(shippingType.Equals("Next Day")) { if(subTot <= 29.99 && subTot > 0) { shCharge = 24.95; } else if(subTot <= 99.99 && subTot > 29.99) { shCharge = 34.95; } else if(subTot <= 299.99 && subTot > 99.99) { shCharge = 44.95; } else if(subTot > 299.99) { shCharge = subTot * .15; } } else if(shippingType.Equals("Next Day a.m.")) { if(subTot <= 29.99 && subTot > 0) { shCharge = 29.95; } else if(subTot <= 99.99 && subTot > 29.99) { shCharge = 39.95; } else if(subTot <= 299.99 && subTot > 99.99) { shCharge = 49.95; } else if(subTot > 299.99) { shCharge = subTot * .20; } } return shCharge; }Next you're going to tell me that passing the shipping types around as stringly typed data instead of enums is a mistake, too!
[Advertisement] Utilize BuildMaster to release your software with confidence, at the pace your business demands. Download today!Lawmakers Are Skeptical of Zuckerberg's Commitment To Free Speech
Read more of this story at Slashdot.
Microsoft Windows 95 Reboot Chime and Minecraft Soundtrack Inducted Into National Recording Registry
Read more of this story at Slashdot.