Skip to main content

CodeSOD: Insanitize Your Inputs

3 months 1 week ago

Honestly, I don't know what to say about this code sent to us by Austin, beyond "I think somebody was very confused".

string text; text = ""; // snip box.Text = text; text = ""; text = XMLUtil.SanitizeXmlString(text);

This feels like it goes beyond the usual cruft and confusion that comes with code evolving without ever really being thought about, and ends up in some space outside of meaning. It's all empty strings, signifying nothing, but we've sanitized it.

[Advertisement] Keep the plebs out of prod. Restrict NuGet feed privileges with ProGet. Learn more.
Remy Porter

US's AI Lead Over China Rapidly Shrinking, Stanford Report Says

3 months 1 week ago
The U.S. is still the global leader in state-of-the-art AI, but China has closed the gap considerably, according to a new report from Stanford. Axios: Institutions based in the U.S. produced 40 AI models of note in 2024, compared with 15 from China and three from Europe, according to the eighth edition of Stanford's Artificial Intelligence Index, released on Monday. However, the report found that Chinese models have rapidly caught up in quality, noting that Chinese models reached near parity on two key benchmarks after being behind leading U.S. models by double digit percentages a year earlier. Plus, it said, China is now leading the U.S. in AI publications and patents.

Read more of this story at Slashdot.

msmash