Computer
US Senate To Revive Software Patents With PERA Bill Vote On Thursday
Read more of this story at Slashdot.
Apple Gets EU Warning To Stop Geo-Blocking on App, iTunes Stores
Read more of this story at Slashdot.
Retailers Explore Radio-Emitting Threads To Combat Surging Theft
Read more of this story at Slashdot.
Pakistan Limits Outdoor Activities, Market Hours To Curb Air Pollution-Related Illness
Read more of this story at Slashdot.
Ecosia and Qwant, Two European Search Engines, Join Forces on an Index To Shrink Reliance on Big Tech
Read more of this story at Slashdot.
China Displays New Stealth Fighter in Race To Match US
Read more of this story at Slashdot.
LG's New Stretchable Display Can Grow By 50%
Read more of this story at Slashdot.
SpaceX To Attempt Daring Orbital Refueling Test of Starship
Read more of this story at Slashdot.
Somebody Moved UK's Oldest Satellite, No-One Knows Who or Why
Read more of this story at Slashdot.
Representative Line: How is an Array like a Banana?
Some time ago, poor Keith found himself working on an antique Classic ASP codebase. Classic ASP uses VBScript, which is like VisualBasic 6.0, but worse in most ways. That's not to say that VBScript code is automatically bad, but the language certainly doesn't help you write clean code.
In any case, the previous developer needed to make an 8 element array to store some data. Traditionally, in VBScript, you might declare it like so:
Dim params(8)That's the easy, obvious way a normal developer might do it.
Keith's co-worker did this instead:
Dim params : params = Split(",,,,,,,", ",")Yes, this creates an array using the Split function on a string of only commas. 7, to be exact. Which, when split, creates 8 empty substrings.
We make fun of stringly typed data a lot here, but this is an entirely new level of stringly typed initialization.
We can only hope that this code has finally been retired, but given that it was still in use well past the end-of-life for Classic ASP, it may continue to lurk out there, waiting for another hapless developer to stumble into its grasp.
[Advertisement] Plan Your .NET 9 Migration with ConfidenceYour journey to .NET 9 is more than just one decision.Avoid migration migraines with the advice in this free guide. Download Free Guide Now!
SpaceX Alums Find Traction On Earth With Their Mars-Inspired CO2-To-Fuel Tech
Read more of this story at Slashdot.
Amazon Developing Driver Eyeglasses To Shave Seconds Off Deliveries
Read more of this story at Slashdot.
'Punctuation Is Dead Because the iPhone Keyboard Killed It'
Read more of this story at Slashdot.
A New Streaming Customer Emerges: The Subscription Pauser
Read more of this story at Slashdot.
D-Link Won't Fix Critical Flaw Affecting 60,000 Older NAS Devices
Read more of this story at Slashdot.
Beatles' 'Now and Then' Makes History As First AI-Assisted Song To Earn Grammy Nomination
Read more of this story at Slashdot.
GIMP 3.0 Enters RC Testing After 20 Years
Read more of this story at Slashdot.
Apple Will Let You Share AirTag Locations With a Link
Read more of this story at Slashdot.
Amazon Confirms Employee Data Stolen After Hacker Claims MOVEit Breach
Read more of this story at Slashdot.
FTX Sues Crypto Exchange Binance and Its Former CEO Zhao For $1.8 Billion
Read more of this story at Slashdot.