最新文章

今日新增 413 篇 · 共 7,425 篇 · 来自 241 个博客

Lea Verou··Lea Verou

What is the best way to mark up an exclusive button group?

AI 摘要The author polled Twitter about the best way to mark up an exclusive button group, initially assuming radio buttons and labels were the accessibility-friendly answer. However, accessibility expert Léonie Watson argued that elements styled as buttons should behave as buttons (using aria-pressed), since mismatched expectations lead to poor UX for assistive technology users. The author then shared their implementation as a web component and pointed readers to the full Twitter thread and Léonie's blog post for further details.

Sam Altman··Sam Altman

Helion Needs You

AI 摘要Helion, a fusion energy company, is on pace in 2024 to demonstrate Q > 1 fusion and resolve all questions needed to design a mass-producible fusion generator, aiming for clean, continuous energy at 1 cent per kilowatt-hour. Having achieved strong scientific progress, the company's success now depends on recruiting talented people to engineer reliable machines, build daily-production-scale factories and supply chains, and work with power grids and governments worldwide. The article highlights several critical engineering job openings and encourages candidates to apply even without a perfect fit.

Lea Verou··Lea Verou

Introducing Rety: live coding, without the stress

AI 摘要The author introduces Rety, a tool that records live coding sessions and makes them replayable, solving the problem that live-coded slides are useless without the presenter, particularly for university courses taught by multiple instructors. After test-driving it in a spring 2022 course, the author found pre-recorded Rety scripts superior to real live coding, since they allow editing, adjustable typing speed, and fewer typos while still supporting unplanned demos. Having debuted at the CSS Day conference, Rety is now released as two classes (Recorder and Replayer), with a long-term vision of standardizing the Rety script format across tools like CodePen and VS Code.

Marc Brooker·

The DynamoDB paper

AI 摘要The article discusses a new AWS DynamoDB paper presented at USENIX ATC'22 that provides a rare look at the evolution of a real-world distributed system running at massive scale, including 89.2 million requests per second during Prime Day 2021. It highlights key engineering lessons from DynamoDB's history, such as the problems caused by non-uniform workloads, its use of multi-Paxos for replication and leader election, TLA+ formal methods for verifying correctness, and the MemDS distributed cache introduced to prevent metastable failures from cache cold starts. The author recommends the paper to anyone interested in databases, distributed systems, or operating services at scale.

High Scalability··HighScalability Team

Stuff The Internet Says On Scalability For July 11th, 2022

AI 摘要This is a HighScalability roundup post from July 11th, 2022, sharing a collection of internet links and trivia related to scalability and technology, including a detailed image of a human cell, Cloudflare's use of lava lamps to generate cryptographic keys, and historical computing visuals from 1946 and 1966. The post also promotes the author's Patreon, his cloud computing book 'Explain the Cloud Like I'm 10,' and his own fitness app called Max Workout.

Josh W. Comeau··Josh W. Comeau

Statements Vs. Expressions

AI 摘要This article explains the foundational distinction between statements and expressions in JavaScript, describing how programs are composed of statements that contain slots for expressions. It explores how these two structures work and how building an intuition about them can help developers solve practical problems.

What If?··xkcd

Hailstones

AI 摘要The article explores the hypothetical danger of soccer ball-sized hailstones, explaining that air resistance causes falling hail to reach terminal velocity—small stones fall at 10-20 mph, golf ball-sized ones at about 60 mph, and a hypothetical soccer ball-sized stone at roughly 140 mph, fast enough to punch through a car roof. Deadly hailstorms are rare because such large hailstones are uncommon and people take shelter during severe thunderstorms. Real hailstones are irregularly shaped rather than round, which increases drag and lowers their terminal velocity, and in theory a strangely shaped hailstone might even act as a lifting body and glide through the air.

Maggie Appleton·

July 2022

AI 摘要The author announces they have joined Ought, a Bay Area non-profit research lab building Elicit, an AI research assistant that automates literature reviews, with a long-term goal of mitigating AI alignment risks, while keeping London as their long-term home base. They have also started hosting a monthly Future of Code event in London, kept deliberately small and informal in a pub setting. Their priority is preserving the intimate, low-key atmosphere and avoiding the impersonal, overstuffed vibe of typical London tech meetups.

Svelte Blog·

What’s new in Svelte: July 2022

AI 摘要The July 2022 Svelte newsletter reports that about $80,000 in OpenCollective donations is being used to advance the project, including funding a paid contributor to fix SvelteKit issues ahead of 1.0. Highlights include upcoming SSR improvements up to 3x faster, a new interactive tutorial, experimental SvelteKit interoperability with Vite ecosystem tools like Vitest and Storybook, and support for streaming in endpoints. The issue also showcases community-built apps and sites, learning resources, and new libraries and tools for the Svelte ecosystem.

Ethan Marcotte··Ethan Marcotte

Notes from a dining room table.

AI 摘要Written in the emotional aftermath of the overturning of Roe v. Wade, this personal journal post captures the author's grief, anger, and fear over the loss of abortion rights, which he notes endangers loved ones and his own daughter's future. Amid his mourning, he gathers readings and reflections—on collective action, the difference between mobilizing and organizing, and building critical connections rather than critical mass—that point toward what comes next. Though he isn't yet ready to do more than grieve and donate, he finds it helpful to collect others' guidance on moving from despair to practical action, such as protesting, voting, and funding abortion access.

Lea Verou··Lea Verou

Releasing Color.js: A library that takes color seriously

AI 摘要The authors, Lea Verou and Chris Lilley, started developing Color.js in 2020 out of frustration with existing color libraries, initially as a prototype to inform a native Color API for the Web Platform that is now being incubated in the WICG. Despite never being officially announced, the npm package mysteriously gained over 6,000 weekly downloads, which convinced them the library filled a real need and prompted them to finally release it. Color.js is color space agnostic, supports many color spaces including CSS Color 4 and HDR drafts, performs proper color science (gamut mapping, chromatic adaptation, multiple DeltaE methods), and is modular, ESM-first, and tree-shakeable.

Baby Steps·

Many modes: a GATs pattern

AI 摘要The article discusses the PR opened by Jack Huey to stabilize an initial, MVP version of generic associated types (GATs) in Rust, which the author is excited about despite limited compiler support and verbose syntax. Some in the community worry that GATs make the language too complex and should instead be an internal building block for more accessible features like async functions and RPITIT. In response, the author reviewed how people are actually using GATs and wrote up several patterns, including the "many modes" pattern from the chumsky parser combinator library, cross-posting the write-up to their blog.

Josh W. Comeau··Josh W. Comeau

My Wonderful HTML Email Workflow

If you've ever had the misfortune of being tasked with building a template for HTML emails, you know it's tricky business! In this blog post, I share the approach I took to build responsive, client-friendly emails without a single tag. Keep

Ethan Marcotte··Ethan Marcotte

Weekend updates.

AI 摘要The author describes recent updates to their personal site: consolidating the home page and about page into one (including writing a new, more professional bio) and restoring a footer theme chooser offering light, dark, and time-based automatic modes. They also explain how they refactored their CSS using design tokens—separating raw color values from functional theme properties—which makes creating new themes like their new dark mode much easier.