Feed aggregator
Vodka Maker Stoli Says August Ransomware Attack Contributed To Bankruptcy Filing
Read more of this story at Slashdot.
Meta Using OpenAI's GPT-4 in Internal Coding Tool Despite Llama Push
Read more of this story at Slashdot.
Hyundai Has Best Month Ever in U.S. Electric SUV Sales Suddenly Double
Read more of this story at Slashdot.
2024's Geek 'Advent Calendar's Offer Challenges - and a Magnus Carlsen-Signed Chessboard
Read more of this story at Slashdot.
Wikipedia Announces the Most Popular Articles of 2024
Read more of this story at Slashdot.
Handful of Countries Responsible For Climate Crisis, Top Court Told
Read more of this story at Slashdot.
US Officials Urge Americans to Use Encrypted Apps Amid Unprecedented Cyberattack
Read more of this story at Slashdot.
CodeSOD: On VVVacation
As often happens, Luka started some work but didn't get it across the finish line before a scheduled vacation. No problem: just hand it off to another experienced developer.
Luka went off for a nice holiday, the other developer hammered away at code, and when Luka came back, there was this lovely method already merged to production, sitting and waiting:
vvv(x, y) { return typeof x[y] !== 'undefined'; }"What is this?" Luka asked.
"Oh, it's a helper function to check if a property is defined on an object."
Luka could see that much, but that didn't really answer the question.
First, it wasn't the correct way to check if a property existed. Mind you, actually doing those checks in JavaScript is a complicated minefield because of prototype inheritance, but between the in operator, the hasOwn and hasOwnProperty methods, there are simpler and cleaner ways to get there.
But of course, that wasn't what got anyone's attention. What caught Luka up was the name of the function: vvv. And not only was it a terrible name, thanks to the other dev's industriousness, it was now called all over the codebase. Even places where a more "correct" call had been used had been refactored to use this method.
"But it's so brief, and memorable," the developer said.
Luka was vvvery upset by that attitude.
[Advertisement] Keep all your packages and Docker containers in one place, scan for vulnerabilities, and control who can access different feeds. ProGet installs in minutes and has a powerful free version with a lot of great features that you can upgrade when ready.Learn more.Musk Signals Fresh Push To End US Daylight Saving Time
Read more of this story at Slashdot.
Meta Says It's Mistakenly Moderating Too Much
Read more of this story at Slashdot.
South Korea Becomes First Country To Replace 10% of Its Workforce With Robots
Read more of this story at Slashdot.
Slashdot Asks: What Happened To Intel?
Read more of this story at Slashdot.
Walmart Closes $2.3 Billion Acquisition of Vizio
Read more of this story at Slashdot.
Telcos Struggle To Boot Chinese Hackers From Networks
Read more of this story at Slashdot.
Digital Preservation Is Not Keeping Up With the Growth of Scholarly Knowledge
Read more of this story at Slashdot.
The Number of Americans Wanting To Switch Jobs Hits a 10-Year High
Read more of this story at Slashdot.
Amazon AI Data Centers To Double as Carbon Capture Machines
Read more of this story at Slashdot.
FTC Bans Location Data Company That Powers the Surveillance Ecosystem
Read more of this story at Slashdot.
Intel Debuts Arc Battlemage Discrete Graphics Cards
Read more of this story at Slashdot.
Middle Manager Hiring Has Plunged
Read more of this story at Slashdot.