Gardened.

Ethan Marcotte · 2020年4月24日

AI 摘要 AI 生成,可能有误

The author discusses two recent pieces: Steve Workman's account of optimizing excessively bloated code from a software library, and Tim Kadlec's research showing that websites built with Angular, React, and Vue deliver far more JavaScript than ideal, costing users significant time and money. He argues these stories reveal the same systemic problem: popular frameworks ship with bad defaults, and producing quality work depends on teams voluntarily adopting best practices, which doesn't scale. He concludes that the tech industry's self-regulation amounts to a failure of governance and calls for formal standards, akin to building codes in other industries, particularly since the web provides life-saving information and services during a global health crisis.

I’ve read two pieces recently that I’d recommend to you. Both of them get into fairly technical matters, but they’re each written with a very clear, approachable voice; even if you don’t muck around with code very much, there’s a good chance you’ll be able to follow along. But if you’re busy, or disinclined to read, I’ll try to sum them up as best I can.

The first item is a Twitter thread by Steve Workman you might find interesting. In his thread, Steve describes his process of fixing some work he’d done. He noticed that one software library was responsible for huge file sizes in the components he was building, generating considerably more code than he felt they actually needed. And since users would have to literally pay to download that extra code, he spent hours optimizing his work. By tweaking his build setup — and by applying no small amount of forensic cleverness — Steve managed to optimize the code, saving his users from downloading megabytes of cruft.

The second item is this article by Tim Kadlec. In it, Tim conducted some in-depth research across thousands of websites, assessing the performance costs of sites powered by Angular, React, and Vue — the most popular front-end frameworks in use today. And the results aren’t pretty: even in the best cases, there’s more JavaScript delivered to the browser than is ideal; in the most extreme cases, it’s exponentially worse. But across the board, Tim’s data shows that we’re asking our users to pay entirely too much, both in time and in money, to access the sites we build with these frameworks.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 Ethan Marcotte

The ship is anchor’d safe and sound.

AI 摘要The author reflects on the news of Sir Patrick Stewart's death, recalling how he grew up watching Star Trek with his father and how Jean-Luc Picard's quiet, empathetic leadership gradually won him over as he matured. He describes Picard's compassion and moral clarity as his first model of true leadership, and notes that his grief is entwined with nostalgia for the safe, happy hours spent watching the show as a child. Though he never met Stewart, the author says he will carry his gratitude for the actor with him.

All watched over by algorithms of loving grace.

AI 摘要The author expresses deep frustration with recommendation engines that relentlessly push more of whatever a user has just watched or listened to, filling feeds with predictable content like stadium concerts, sports highlights, and endless sleep-sound albums. They argue that despite enormous amounts of data, math, and capital, these systems merely deliver 'the content equivalent of beige, flavorless paste'—the most average, boring output possible. This realization, the author quips, suddenly makes the 'artificial intelligence' industry make a lot more sense.

Folded between the pages.

AI 摘要After adding a disclosure statement about how 'artificial intelligence' is (or isn't) used on their newly redesigned website, the author discovered a broader tradition of similar 'AI statements' published by other designers, writers, and organizations. They compiled a selection of these statements, noting that they are ultimately less about AI itself and more about each author's values, their relationship to their work, and the tools they use. The featured statements range from complete refusal to sparing, selective use of AI, reflecting diverse views on ethics, craft, and authenticity.

49.

AI 摘要In this journal entry, the author celebrates his 49th birthday in Boston after a week-long heat wave finally breaks, giving him a cool morning he treats as the perfect gift. After opening presents and hearing from friends and family, he goes for a slow, enjoyable run along the Charles River, pausing to take a selfie at the emergency room where he received a diagnosis years ago. The run prompts reflection on the decade he's closing—career changes, a book about labor in tech, old and new friends, loss and laughter—and on his partner, who has been with him throughout it all.

The house is valuable because it is the house.

AI 摘要The author describes a redesign of his personal website, launched quietly after 15 months, aimed at simplifying layouts and adding warmth through warmer colors, new typography, and a calmer, single-column reading experience. He reflects on the self-doubt he faced during the unglamorous finishing work, including a novel worry that his design might resemble the emerging aesthetic of LLM-generated websites. After taking some space following the launch, he has reconnected with the parts of the design he first loved and is happy with the result, feeling a bit like coming home.