Computer
Raspberry Pi Launches $50 2GB Model
Read more of this story at Slashdot.
AMD To Acquire Server Maker ZT Systems in $4.9 Billion Deal
Read more of this story at Slashdot.
Attractive People Are Less Likely To Play Video Games, NBER Study Says
Read more of this story at Slashdot.
'GitHub Actions' Artifacts Leak Tokens, Expose Cloud Services and Repositories
Read more of this story at Slashdot.
Internet Archive Streams Re-Discovered 1980s Radio Show About Early Computers
Read more of this story at Slashdot.
Representative Line: Tern on the Error Message
When discussing ternaries, we also have to discuss readability. While short and concise, they're in some ways too compact. But don't worry, Mark's co-worker has a wonderful simplification to ternaries. This representative line is a pattern used throughout the codebase.
pnlErrorMessage.Visible = !string.IsNullOrEmpty(errorMsg) ? true : false;This is genius, as the ternary becomes documentation for a boolean expression, telling us when we're setting things to true or false without having to think about what the expression we're evaluating means. If there is an error message, we set the error message UI element's visibility to true. Explicit, verbose, and readable.
What we're really looking at here is the ol':
if (expression) return true; else return false;pattern, compressed into a single ternary. Annoying, useless, and a hint that our developer doesn't understand booleans.
[Advertisement] Continuously monitor your servers for configuration changes, and report when there's configuration drift. Get started with Otter today!DOS's Last Stand? On a Modern Thinkpad X13 with an Intel 10th-Gen Core CPU
Read more of this story at Slashdot.
Apple is Building Its Own Cellular Modem, Playing 'Long Game' to Drop Qualcomm
Read more of this story at Slashdot.
Former Google Researcher's Startup Hopes to Teach AI How to Smell
Read more of this story at Slashdot.
India's Influencers Fear a New Law Could Make them Register with the Government
Read more of this story at Slashdot.
Can the Linux Foundation's 'Open Model Initiative' Build AI-Powering LLMs Without Restrictive Licensing?
Read more of this story at Slashdot.
Matt Damon and Ben Affleck Acquire 'Killing Gawker' Screenplay
Read more of this story at Slashdot.
Does Mozilla's New Logo Bring Back Its Dinosaur Mascot - in ASCII Art?
Read more of this story at Slashdot.
Apple is Building a $1,000 Display on a Voice-Controlled Robot Arm
Read more of this story at Slashdot.
Data Centers Are Consuming Electricity Supplies - and Possibly Hurting the Environment
Read more of this story at Slashdot.
Cancel Bill Gates? New Book Paints Philanthropist as Billionaire Villain
Read more of this story at Slashdot.
Will Electronic Price Labels Tempt Stores to Try 'Dynamic Pricing'?
Read more of this story at Slashdot.
41 Science Professionals Decry Harms and Mistrust Caused By COVID Lab Leak Claim
Read more of this story at Slashdot.
As 17,000 AT&T Workers Strike, Some Customers Experience 'Prolonged' Outages
Read more of this story at Slashdot.
Refueling Hydrogen Cars in California is So Annoying, Drivers are Suing Toyota
Read more of this story at Slashdot.