The last taboo that will save your boring sex life: Your husband will be VERY surprised to hear you suggest it - but it's like a sexual adrenaline shot: TRACEY COX
AMANDA PLATELL: Meghan's silence says it all. I know the sad conclusion... it's so clear to me the toxic end that's coming
USPS worker who stole checks from the mail arrested after flashing cash on social media
The Essex areas where plans for 3,178 new homes have been submitted in past month
Interest rate cut hopes fade amid stubbornly-high wage growth
Neighbour relives the moment he found his pregnant neighbour's lover's decapitated head on a spike in Waverley, Melbourne
A12 live updates as vehicle fire stops traffic with long delays
Dragons' Den icon Theo Paphitis warns 'high streets will not survive if shops are hit in next Budget'
United Airlines flight canceled after female passenger had 'biohazard' diarrhea that destroyed bathroom
Woman who launched 'spiritual health' firm with David Beckham's former bodyguard shortly before he was found dead in a Spanish park is arrested for 'providing hallucinogenic drugs' near Benidorm
CCTV released in hunt for missing mother, 49, who was last seen at train station - as daughter issues desperate plea 'after bag is found at park'
Hints at origins of mysterious 'alien' mummies found in Peru revealed by genetic testing
Rise of 'greysexual' - a new kind of sexual orientation... as more people come out, some experts are concerned
Live updates: 'Vehicle fire' causes section of A12 to become blocked
Chilling details emerge after pregnant woman was allegedly killed and her partner decapitated with his head placed on a spike - as homeless man is charged over sickening 'targeted attack'
Essex council applies for injunction to stop hotel being used for asylum seekers
The Summer of Supercars begins: High-powered multi-million-pound fleet of sports cars owned by Saudi billionaires descend on London - as police go on red alert for law-breaking
Revealed: The area where parents would pay £81,000 MORE to buy a home near a good school
How did a British doctor suspected of killing 163 people walk away from The Old Bailey a free man?
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…