Computer
China's Lead in Open-Source AI Jolts Washington and Silicon Valley
Read more of this story at Slashdot.
Temperature Records Broken as Extreme Heat Grips Parts of Europe
Read more of this story at Slashdot.
US Embeds Trackers in AI Chip Shipments To Catch Diversions To China
Read more of this story at Slashdot.
Cats Develop Dementia In a Similar Way To Humans
Read more of this story at Slashdot.
ULA Launches First National Security Mission On Vulcan Centaur Rocket
Read more of this story at Slashdot.
CodeSOD: Raise VibeError
Ronan works with a vibe coder- an LLM addicted developer. This is a type of developer that's showing up with increasing frequency. Their common features include: not reading the code the AI generated, not testing the code the AI generated, not understanding the context of the code or how it integrates into the broader program, and absolutely not bothering to follow the company coding standards.
Here's an example of the kind of Python code they were "writing":
if isinstance(o, Test): if o.requirement is None: logger.error(f"Invalid 'requirement' in Test: {o.key}") try: raise ValueError("Missing requirement in Test object.") except ValueError: pass if o.title is None: logger.error(f"Invalid 'title' in Test: {o.key}") try: raise ValueError("Missing title in Test object.") except ValueError: passAn isinstance check, is already a red flag. Even without proper type annotations and type checking (though you should use them) any sort of sane coding is going to avoid situations where your method isn't sure what input it's getting. isinstance isn't a WTF, but it's a hint at something lurking off screen. (Yes, sometimes you do need it, this may be one of those times, but I doubt it.)
In this case, if the Test object is missing certain fields, we want to log errors about it. That part, honestly, is all fine. There are potentially better ways to express this idea, but the idea is fine.
No, the obvious turd in the punchbowl here is the exception handling. This is pure LLM, in that it's a statistically probable result of telling the LLM "raise an error if the requirement field is missing". The resulting code, however, raises an exception, immediately catches it, and then does nothing with it.
I'd almost think it's a pre-canned snippet that's meant to be filled in, but no- there's no reason a snippet would throw and catch the same error.
Now, in Ronan's case, this has a happy ending: after a few weeks of some pretty miserable collaboration, the new developer got fired. None of "their" code ever got merged in. But they've already got a few thousand AI generated resumes out to new positions…
[Advertisement] Keep all your packages and Docker containers in one place, scan for vulnerabilities, and control who can access different feeds. ProGet installs in minutes and has a powerful free version with a lot of great features that you can upgrade when ready.Learn more.Linus Torvalds Blasts Kernel Dev For 'Making the World Worse' With 'Garbage' Patches
Read more of this story at Slashdot.
Cornell Researchers Develop Invisible Light-Based Watermark To Detect Deepfakes
Read more of this story at Slashdot.
Do Kwon Pleads Guilty to US Fraud Charges In $40 Billion Crypto Collapse
Read more of this story at Slashdot.
Russia Is Suspected To Be Behind Breach of Federal Court Filing System
Read more of this story at Slashdot.
Boston Public Library Aims To Increase Access To a Vast Historic Archive Using AI
Read more of this story at Slashdot.
Google and IBM Believe First Workable Quantum Computer is in Sight
Read more of this story at Slashdot.
Sloppy AI Defenses Take Cybersecurity Back To the 1990s, Researchers Say
Read more of this story at Slashdot.
Threads Now Has More Than 400 Million Monthly Active Users
Read more of this story at Slashdot.
China Urges Firms To Avoid Nvidia H20 Chips After Trump Resumes Sales
Read more of this story at Slashdot.
UK Government Suggests Deleting Files To Save Water
Read more of this story at Slashdot.
AI Is Forcing the Return of the In-Person Job Interview
Read more of this story at Slashdot.
Google Will Now Let You Pick Your Top Sources For Search Results
Read more of this story at Slashdot.
Microsoft Releases Lightweight Office Taskbar Apps for Windows 11
Read more of this story at Slashdot.
Microsoft is Trying To Poach Meta AI Talent and Offering Multimillion-Dollar Pay Packages
Read more of this story at Slashdot.