California pastor eviscerates everyone to blame for LA fires in viral three-minute takedown
QUENTIN LETTS: Starmer, that dull old vegan sausage, waddled up to the lectern - and bored the Y-fronts off us all for 20 minutes
California governor Gavin Newsom faces recall for 'woefully unprepared' response to devastating LA fires
David Schwimmer reveals how he angered entire Saturday Night Live cast and crew with major faux pas
Police and jail chiefs have 'ceded the airspace' above two high-security prisons to 'organised crime gangs', report says - amid large numbers of illicit drone flights delivering drugs and weapons
Representative Line: The Whole Thing
David was integrating a new extension into their ecommerce solution, and found this un-representative line:
$this->model_sale_manageorder->exportOrder(substr($selectid,0,strlen($selectid)-1));Note the use of substr- we take the substr of $selectid from 0 to strlen($selectid)- aka, we take the entire string.
Perhaps this is leftover code, where once upon a time there was a prefix or suffix on the string which needed to be ignored. But the result is code that is rather dumb.
I call this an "un-representative line" because, according to David, the rest of the code in the extension was actually rather good. Even otherwise good code is not immune to having a little fart hiding under the covers, I suppose.
Inside one of Pacific Palisades' last standing malls after billionaire developer who ran against under fire mayor Karen Bass saved it from LA fire
Sonos CEO steps down after smart speaker app upgrade hit bum note
Smart speaker outfit Sonos has parted ways with CEO Patrick Spence, who oversaw the release of an app that was billed as an upgrade but instead made the company’s products worse and riled customers.…