Feed aggregator
Nvidia Unveils $3,000 Personal AI Supercomputer
Read more of this story at Slashdot.
Nvidia To Deploy AI Teammates in Video Games this Year
Read more of this story at Slashdot.
Getty Images and Shutterstock Agree To Merge
Read more of this story at Slashdot.
Instagram Begins Randomly Showing Users AI-Generated Images of Themselves
Read more of this story at Slashdot.
America Is Stuck With an Elevator Crisis
Read more of this story at Slashdot.
Microsoft Plans $3 Billion AI, Cloud Investment in India
Read more of this story at Slashdot.
Outgoing NASA Administrator Urges Incoming Leaders To Stick With Artemis Plan
Read more of this story at Slashdot.
Representative Line: Generate JSON
Today's anonymous submission is a delightfully simple line of JavaScript which really is an archetype of a representative line.
$json = "{";Now, I know you're thinking, "I see a '$' sigil, this must be PHP or maybe Perl!" No, this is JavaScript. And as you might be gathering from the code, this is the first line in a long block that constructs JSON through string concatenation.
And yes, JavaScript has built in functions for this, which work better than this. While it's possible that they need to generate custom JSON to support a misbehaving parser on the other side, that's it's own WTF- and it isn't the case here. The developers responsible simply didn't know how to handle JSON in JavaScript.
Do you know what else they couldn't understand? Source control and collaboration tools, so all of the JavaScript files were named things like david.js and lisa.js- each developer got their own JS file to work on, so they didn't conflict with anyone else.
[Advertisement] Picking up NuGet is easy. Getting good at it takes time. Download our guide to learn the best practice of NuGet for the Enterprise.John Deere Thinks Driverless Tractors Are the Answer To Labor Shortages
Read more of this story at Slashdot.
US Records Its First Human Bird Flu Death
Read more of this story at Slashdot.
Google Is Forming a New Team To Build AI That Can Simulate the Physical World
Read more of this story at Slashdot.
AMD Reveals Next-Gen Handheld Gaming PC Chips
Read more of this story at Slashdot.
US Adds Tencent, CATL To List of Chinese Firms Aiding Beijing's Military
Read more of this story at Slashdot.
Toyota's Futuristic Woven City In Japan Is Ready For Its First Residents
Read more of this story at Slashdot.
Ahead of SCOTUS Hearing, Study Finds TikTok Is Likely Vehicle For Chinese Propaganda
Read more of this story at Slashdot.
Dell Will No Longer Make XPS Computers
Read more of this story at Slashdot.
Why Computer Scientists Consult Oracles
Read more of this story at Slashdot.
Hundreds of US Locations Had Their Hottest Year On Record
Read more of this story at Slashdot.
Intel Says New Laptop Chips Will Extend Computer Battery Life
Read more of this story at Slashdot.
Microsoft's Bing Deploys Google-Mimicking Interface To Retain Search Users
Read more of this story at Slashdot.