Computer
Figma Sent a Cease-and-Desist Letter To Lovable Over the Term 'Dev Mode'
Read more of this story at Slashdot.
Uber Cofounder Kalanick Says AI Means Some Consultants Are in 'Big Trouble'
Read more of this story at Slashdot.
You Should Still Learn To Code, Says GitHub CEO
Read more of this story at Slashdot.
Google DeepMind Is Hiring a 'Post-AGI' Research Scientist
Read more of this story at Slashdot.
OpenAI is Building a Social Network
Read more of this story at Slashdot.
Android Phones Will Soon Reboot Themselves After Sitting Unused For 3 Days
Read more of this story at Slashdot.
Zuckerberg Had a 'Crazy Idea' in 2022 For Facebook - Purge All Users' Friends
Read more of this story at Slashdot.
FCC Chairman Tells Europe To Choose Between US or Chinese Communications Tech
Read more of this story at Slashdot.
Publishers and Law Professors Back Authors in Meta AI Copyright Battle
Read more of this story at Slashdot.
Hertz Says Customers' Personal Data, Driver's Licenses Stolen In Data Breach
Read more of this story at Slashdot.
China Halts Rare Earth Exports Globally
Read more of this story at Slashdot.
CT Scans Projected to Result in 100,000 New Cancers in The US
Read more of this story at Slashdot.
CodeSOD: Message Oriented Database
Mark was debugging some database querying code, and got a bit confused about what it was actually doing. Specifically, it generated a query block like this:
$statement="declare @status int declare @msg varchar(30) exec @status=sp_doSomething 'arg1', ... select @msg=convert(varchar(10),@status) print @msg "; $result = sybase_query ($statement, $this->connection);Run a stored procedure, capture its return value in a variable, stringify that variable and print it. The select/print must be for debugging, right? Leftover debugging code. Why else would you do something like that?
if (sybase_get_last_message()!=='0') { ... }Oh no. sybase_get_last_message gets the last string printed out by a print statement. This is a pretty bonkers way to get the results of a function or procedure call back, especially when if there are any results (like a return value), they'll be in the $result return value.
Now that said, reading through those functions, it's a little unclear if you can actually get the return value of a stored procedure this way. Without testing it myself (and no, I'm not doing that), we're in a world where this might actually be the best way to do this.
So I'm not 100% sure where the WTF lies. In the developer? In the API designers? Sybase being TRWTF is always a pretty reliable bet. I suppose there's a reason why all those functions are listed as "REMOVED IN PHP 7.0.0", which was was rolled out through 2015. So at least those functions have been dead for a decade.
[Advertisement] Keep the plebs out of prod. Restrict NuGet feed privileges with ProGet. Learn more.Indian IT Faces Its Kodak Moment
Read more of this story at Slashdot.
Chinese Robotaxis Have Government Black Boxes, Approach US Quality
Read more of this story at Slashdot.
Climate Crisis Has Tripled Length of Deadly Ocean Heatwaves, Study Finds
Read more of this story at Slashdot.
Apple To Analyze User Data on Devices To Bolster AI Technology
Read more of this story at Slashdot.
Samsung Pauses One UI 7 Rollout Worldwide
Read more of this story at Slashdot.
Risks To Children Playing Roblox 'Deeply Disturbing,' Say Researchers
Read more of this story at Slashdot.
Intel To Sell Majority Stake In Altera For $4.46 Billion To Fund Revival Effort
Read more of this story at Slashdot.