DANIEL HANNAN: Picture that sums up how the entire migrant industry regards the taxpayers of this country
Nathalia Gadelha Filgueiras: The doomed Palm Beach co-pilot who got her license at 17 after learning to fly from dad - as crash sparks debate about young pilots
The Morning Poll: When is the right time to put up your Christmas decorations?
Jules Neale doubles down on wiping ex Lachie from her life for good as she wears a low-cut red revenge dress while leading celebrity arrivals at Melbourne Cup - after he attended Derby Day with his new girlfriend
CodeSOD: Death of the Auth-Er
When writing Perl, it's not unusual to want to die. The die function ends your Perl program with an error string, and you'll often see code like: die "My error" unless $i > 5 or die "Other error" if check(), because Perl just loves the backwards conditionals. What's even more fun with die is how it behaves with eval blocks, so it doesn't always kill your program, sometimes it is how you pass error strings back out of sections of your program.
And poor Bobby has inherited some Perl that just really loves to die.
public function store() { echo 'Hello'; die; if (Auth::attempt(Input::only('email', 'password'))) { echo 'done'; die; // return "welcome ".Auth::user()->username } echo "Oops! Fails"; die; return Redirect::back()->with_input(); }Bobby didn't send the source control history here, but I have a sense of what it likely was like, once. If they authenticate successfully, print a welcome message. If they don't, redirect back to the logon page and let them try again. I suspect they wanted to disable the route. So first they disabled the success path, only to discover that the failure path kept redirecting, so they disabled that too. Finally, they added the Hello at the top to disable the whole thing.
Why? Why did they do any of this? No idea. It feels like debugging code, but you'd expect more echos and fewer dies if that were the case. And you wouldn't expect it to leak into production and sit there for years, which is what happened here.
.comment { border: none; }Open models can do 90% of agentic work at a twentieth of the cost of a frontier LLM: Gartner
Death of young boy, 14, sparks concerns about Essex mental health support
Expert warns under-16s social media ban could push children to weaker platforms
Expert warns under-16s social media ban could push children to weaker platforms
Architect creates open source replacement for VM migration tool VMware has hidden
Demi Moore wows in plunging denim dress alongside glamorous Hailey Bieber and Rose Byrne at star-studded CFDA Fashion Awards
The lick of love! First-time mum cleans one of her five cubs (but the little lion doesn't seem too pleased)
Russell Brand's lawyer questions why victims did not 'scream more' when they were attacked as his father-in-law Bernard Gallacher accompanies him to court
BYD Sold More EVs Last Month Than the US Did All Quarter
Read more of this story at Slashdot.