Comment Joel on Software explained it in 2000 (Score 4, Informative) 48
Back to that two page function. Yes, I know, it’s just a simple function to display a window, but it has grown little hairs and stuff on it and nobody knows why. Well, I’ll tell you why: those are bug fixes.
Each of these bugs took weeks of real-world usage before they were found. The programmer might have spent a couple of days reproducing the bug in the lab and fixing it. If it’s like a lot of bugs, the fix might be one line of code, or it might even be a couple of characters, but a lot of work and time went into those two characters.
When you throw away code and start from scratch, you are throwing away all that knowledge. All those collected bug fixes. Years of programming work.
You are throwing away your market leadership. You are giving a gift of two or three years to your competitors, and believe me, that is a long time in software years.
It is true today. All that complex code is money: it is functionality the user (or the marketing folks) want to sell more, to provide better service, or to differentiate. Simple code is for textbooks. Complex, crufty, miserable code reflects the complexity of a successful business or a highly-used open source project.
Why? Try explaining the rules of English spelling or grammar to someone. It requires many special cases, exceptions, and exceptions to the exceptions. Business processes are, sadly, the same way.
Should you refactor? Of course, when doing so allows faster fixing of bugs or adding new features (i.e., when it makes it easier to make the code more functionally complex.)
Submission + - Software Flaw Exposes Millions of Subarus, Rivers of Driver Data
In a report published Thursday (https://samcurry.net/hacking-subaru) researchers Sam Curry (zlz.bsky.social) and Shubham Shah revealed a now-patched flaw in Subaru’s STARLINK connected vehicle service that allowed them to remotely control Subarus and access vehicle location information and driver data with nothing more than the vehicle’s license plate number, or easily accessible information like the vehicle owner’s email address, Zip code and phone number. (Note: Subaru STARLINK is not to be confused with the Starlink satellite- based high speed Internet service.) Curry and Shah downloaded a year's worth of vehicle location data for Curry's mother's 2023 Impreza (Curry bought her the car with the understanding that she'd let him hack it.
The details of Curry and Shah’s hack of the STARLINK telematics system bears a strong resemblance to hacks documented in his 2023 report Web Hackers versus the Auto Industry (https://samcurry.net/web-hackers-vs-the-auto-industry/ ) as well as a September, 2024 discovery of a remote access flaw in web-based applications used by KIA automotive dealers that also gave remote attackers the ability to steal owners’ personal information and take control of their KIA vehicle.(https://securityledger.com/2024/09/kia-ko-web-hackers-vs-the-auto-industry-round-2/)
In each case, publicly accessible connected vehicle infrastructure intended for use by employees and dealers was found to be trivially vulnerable to compromise and lack even basic protections around account creation and authentication.
Submission + - China's new energy storage capacity surges to 74 GW/168 GWh in 2024, up 130% YoY (ess-news.com)
According to NEA’s definition, new types of energy storage exclude pumped hydro and include electrochemical energy storage, compressed air energy storage, flywheel energy storage, superconducting energy storage, supercapacitor energy storage, and hydrogen energy storage.
In 2024 alone, China added 42.37 GW/101.13 GWh of new storage capacity, with an average discharge duration of 2.3 hours—up from 2.1 hours in 2023. Grid operators reported that these systems operated for approximately 1,000 equivalent full-load hours throughout the year, supporting renewable energy integration, peak shaving management, and grid stability.
Submission + - Uber Will Need To Fingerprint Drivers In California To Transport Teens (techcrunch.com)
The CPUC’s ruling also requires transport companies that intend to transport minors share information with the agency on how they implement live trip tracking for parents, what safety procedures they implement at pickup and drop-off locations, and what sort of driver training the companies implement specifically around transporting unaccompanied minors. The ruling also says that each company is responsible for paying for the checks. Uber has also argued against this stipulation, saying that forcing the company — which has a market cap of around $150 billion as of December — to pay for fingerprinting would result in a price hike for the Uber for Teens service.
Submission + - China Tested Mach 6 Jumbo Jet Prototype (interestingengineering.com)
Submission + - AT&T to kill off landline phone service for most people by 2029 (zdnet.com)
At its 2024 Analysts and Investors Day on Wednesday, the company said that it's "actively working to exit its legacy copper network operations across the large majority of its wireline footprint by the end of 2029." Yep, that means its traditional landlines will largely be gone by that point, at least if the roadmap comes true.
Like many carriers, AT&T has devoted more of its time, money, and resources to its broadband network and wireless services. AT&T in particular has focused on building out its fiber network, which it forecasts will expand to more than 50 million locations in the US by the end of 2029.
The problem with copper lines, argue the carriers, is that they're old, vulnerable to power surges and other electrical issues, and subject to damage from weather and other conditions. Plus, companies like AT&T simply don't want to support traditional landlines when so many people have switched to mobile or broadband services.
Submission + - Gene behind orange fur color in cats found at last (science.org)
Scientists curious about those sex differences—or perhaps just cat lovers—have spent more than 60 years unsuccessfully seeking the gene that causes orange fur and the striking patchwork of colors in calicos and tortoiseshells. Now, two teams have independently found the long-awaited mutation and discovered a protein that influences hair color in a way never seen before in any animal.
Unlike other mammals, the coat colors of cats are partially determined by their sex. Besides orange cats typically being male, calicos and tortoiseshells are almost always female. The phenomenon is due to a quirk in feline genetics: Female cats inherit an X chromosome—the suspected home of the orange fur gene—from each parent. Cells don't generally need both, however, so during embryonic development each cell randomly chooses one X to express genes from, giving calicos and tortoiseshells their striking orange and black patterns. But despite 60 years of searching, scientists haven’t figured out exactly which gene is responsible for the orange color.
In preprints published this month on bioRxiv, scientists say they have independently found the long-awaited orange mutation and discovered a protein that influences hair color in a way never seen before in any animal. Using skin samples collected from various cats, the researchers were able to hone in a mutation on the X chromosome that impacts how much of a protein a gene called Arhgap36 produces. Increasing the amount of the Arhgap36 in pigment producing cells called melanocytes activates a molecular pathway that produces a light red pigment.
“It’s a long-awaited gene,” says Leslie Lyons, a feline geneticist at the University of Missouri in Columbia. Research into cat color has revealed all kinds of phenomena, she says, including how the environment influences gene expression. “Everything you need to know about genetics you can learn from your cat.”
Submission + - US Lawmakers On EPA To Ban Pesticide Linked To Parkinson's Disease (theguardian.com)
The lawmakers cite scientific links between paraquat use and development of Parkinson’s and other “life threatening diseases” as well as “grave impacts on the environment”. “Health risks include a higher risk of Parkinson’s disease, with some studies finding a 64% increase in the likelihood of developing Parkinson’s, non-Hodgkin’s Lymphoma, thyroid cancer, and other thyroid issues,” they wrote. The New Jersey senator Cory Booker, organizer of the Senate letter, said the risks of paraquat exposure were “well documented” and that it was “irresponsible” for the EPA to continue to allow its use. “I hope the EPA will follow the science and ban paraquat,” Booker said. The EPA has long maintained that there is no “clear link” between paraquat exposure and Parkinson’s disease, though the agency does have a number of restrictions on use of the chemical due to its acute toxicity. The agency issued a draft report earlier this year affirming its position. Still, the agency said at that time that it would be reviewing more scientific studies and would issue a final report by January 17, 2025.
Submission + - Nvidia To Join Dow Jones Industrial Average, Replacing Intel (cnbc.com)
With the addition of Nvidia, four of the six trillion-dollar tech companies are now in the index. The two not in the Dow are Alphabet and Meta. While Nvidia has been soaring, Intel has been slumping. Long the dominant maker of PC chips, Intel has lost market share to Advanced Micro Devices and has made very little headway in AI. Intel shares have fallen by more than half this year as the company struggles with manufacturing challenges and new competition for its central processors. Intel said in a filing this week that the board’s audit and finance committee approved cost and capital reduction activities, including lowering head count by 16,500 employees and reducing its real estate footprint. The job cuts were originally announced in August.
The Dow contains 30 components and is weighted by the share price of the individual stocks instead of total market value. Nvidia put itself in better position to join the index in May, when the company announced a 10-for-1 stock split. While doing nothing to its market cap, the move slashed the price of each share by 90%, allowing the company to become a part of the Dow without having too heavy a weighting. The switch is the first change to the index since February, when Amazon replaced Walgreens Boots Alliance. Over the years, the Dow has been playing catchup in gaining exposure to the largest technology companies. The stocks in the index are chosen by a committee from S&P Dow Jones Indices.
Submission + - Watch as "Halloween Comet" dies an early death
Submission + - Journals w/ high rates of suspicious papers flagged by science-integrity startup (nature.com)
Which scientific publishers and journals are worst affected by fraudulent or dubious research papers — and which have done least to clean up their portfolio? A technology start-up founded to help publishers spot potentially problematic papers says that it has some answers, and has shared its early findings with Nature.
The science-integrity website Argos, which was launched in September by Scitility, a technology firm headquartered in Sparks, Nevada, gives papers a risk score on the basis of their authors’ publication records, and on whether the paper heavily cites already-retracted research. A paper categorized as ‘high risk’ might have multiple authors whose other studies have been retracted for reasons related to misconduct, for example. Having a high score doesn’t prove that a paper is low quality, but suggests that it is worth investigating.
Argos is one of a growing number of research-integrity tools that look for red flags in papers. These include the Papermill Alarm, made by Clear Skies, and Signals, by Research Signals, both London-based firms. Because creators of such software sell their manuscript-screening tools to publishers, they are generally reluctant to name affected journals. But Argos, which is offering free accounts to individuals and fuller access to science-integrity sleuths and journalists, is the first to show public insights.
“We wanted to build a piece of technology that was able to see hidden patterns and bring transparency to the industry,” says Scitility co-founder Erik de Boer, who is based in Roosendaal, the Netherlands.
By early October, Argos had flagged more than 40,000 high-risk and 180,000 medium-risk papers. It has also indexed more than 50,000 retracted papers.
Submission + - Easter Island findings change everything we know about the Earth's mantle (labrujulaverde.com)
Traditionally, textbooks have described the mantle as a viscous, well-mixed layer that shifts along with tectonic plates, much like a conveyor belt. This theory has been a cornerstone of geology for nearly a century but has been notoriously difficult to prove. Now, a study by geologists from Cuba, Colombia, and the Netherlands is challenging that long-held view.
Easter Island, known for its extinct volcanoes, was formed around 2.5 million years ago. In 2019, a team of geologists from Cuba and Colombia traveled to the island to accurately date its volcanic origins. To do so, they used a technique called zircon dating. Zircons are minerals that form when magma cools, and they contain trace amounts of uranium, which decays into lead at a known rate. By measuring the ratio of uranium to lead in these zircons, scientists can determine how long ago the minerals crystallized.
The team, led by Cuban geologist Yamirka Rojas-Agramonte, discovered hundreds of zircons on Easter Island, but to their surprise, some of these minerals dated back as far as 165 million years—far older than the 2.5 million years expected. This posed a major puzzle. How could such ancient minerals exist on a relatively young volcanic island?
In essence, the discovery suggests that the mantle behaves quite differently from what geologists have long assumed. Rather than constantly flowing with tectonic plates, the mantle around hotspot plumes may remain relatively still, allowing ancient materials to persist.
This revelation could force a significant reevaluation of how the Earth’s mantle operates and moves, potentially altering fundamental geological theories about plate tectonics and mantle dynamics.
Submission + - Cheap AI 'Video Scraping' Can Now Extract Data From Any Screen Recording (arstechnica.com)
"The other day I found myself needing to add up some numeric values that were scattered across twelve different emails," Willison wrote in a detailed post on his blog. He recorded a 35-second video scrolling through the relevant emails, then fed that video into Google's AI Studio tool, which allows people to experiment with several versions of Google's Gemini 1.5 Pro and Gemini 1.5 Flash AI models. Willison then asked Gemini to pull the price data from the video and arrange it into a special data format called JSON (JavaScript Object Notation) that included dates and dollar amounts. The AI model successfully extracted the data, which Willison then formatted as CSV (comma-separated values) table for spreadsheet use. After double-checking for errors as part of his experiment, the accuracy of the results—and what the video analysis cost to run—surprised him.
"The cost [of running the video model] is so low that I had to re-run my calculations three times to make sure I hadn’t made a mistake," he wrote. Willison says the entire video analysis process ostensibly cost less than one-tenth of a cent, using just 11,018 tokens on the Gemini 1.5 Flash 002 model. In the end, he actually paid nothing because Google AI Studio is currently free for some types of use.
Submission + - Solar-powered low-cost drinking water desalination system without batteries (knowridge.com) 1
This innovative system can remove salt from water by adapting its energy use to the amount of sunlight available, offering a more efficient, low-cost way to produce clean drinking water.
The research, published in Nature Water, highlights the potential of this technology to provide much-needed drinking water, especially in areas with limited access to electricity or seawater.
Unlike traditional desalination systems that rely on fossil fuels or need constant energy supplies, this solar-powered system adjusts its operations based on sunlight levels.
As the sun rises during the day, the system increases its desalination rate, and when clouds block the sun, the system quickly reduces its energy consumption.
This flexibility allows the system to maximize the use of solar energy without needing a battery or a backup power source.
The system was tested on groundwater wells in New Mexico over six months, where it produced up to 5,000 liters of clean water per day, even with changing weather conditions. On average, the system converted over 94% of the solar energy into desalination power, outperforming other solar-powered desalination systems.
“Conventional desalination systems need steady power, often provided by batteries, to handle variable solar energy,” said Winter. “Our system, by varying its energy use in sync with the sun, eliminates the need for extra power storage while efficiently producing water.”