Latest articles

413 new today · 7,425 articles · from 241 blogs

Baby Steps·

Come contribute to Salsa 2022!

AI summarySalsa is an incremental computation library used by tools like rust-analyzer to stay responsive during typing, and the team is currently working on Salsa 2022, a major new revision that will make the API more natural to use. The author is calling for contributors, as the project currently lacks a large group of maintainers, and invites interested people to check the Salsa 2022 tracking issue for tasks to tackle.

Josh W. Comeau··Josh W. Comeau

Why React Re-Renders

AI summaryThis article is a tutorial explaining when and why React re-renders, noting that instead of updating the DOM directly, developers tell React what the DOM should look like and React handles the rest. It unpacks the mechanics behind React's re-rendering process. The goal is to help readers use this knowledge to optimize the performance of their React applications.

Mara Bos·

Comparing Rust's and C++'s Concurrency Library

AI summaryThe article compares Rust's concurrency library with C++'s, noting that Rust's standard library features—threads, atomics, mutexes, and condition variables—closely resemble those introduced in C++11. C++ has since gained additional concurrency features through C++17 and C++20, with more proposals for future versions. The article reviews these C++ features, discusses what Rust equivalents could look like, and what it would take to implement them.

Lea Verou··Lea Verou

On ratings and meters

AI summaryThe author explores how to build a star rating web component that is semantically appropriate, ideally building on the element, but runs into limitations like styling difficulties, Safari's lack of customized built-in element support, and closed shadow roots that prevent custom styles. After experimenting with extending , nesting one in Shadow DOM, and using ARIA roles, they settle on two components: , a discrete version of , and , an editable rating widget that inherits from it. They remain uneasy about some design trade-offs, such as breaking encapsulation to share ElementInternals and the unclear semantics of an editable meter, and share their experiments at nudeui.com.

Marc Brooker·

What is Backoff For?

AI summaryThe article explains that backoff is highly effective at handling short-term overload spikes, but only provides long-term value when it actually reduces total work—such as with a small number of serial clients whose next attempts are delayed by backing off. With large or effectively unbounded numbers of independent clients, backoff merely defers work rather than reducing it, so long-term overload requires lowering load through a proper adaptive retry policy instead. Simulation results validate these claims, showing that retry backoff has almost no effect on traffic amplification with unbounded clients but substantially improves system behavior with a limited number of serial clients.

Ethan Marcotte··Ethan Marcotte

Truthish.

AI summaryThe article argues that the phrase 'the source of truth' in design systems work often hinders more than it helps and should be rethought or discarded. Although teams typically designate the component library as the single source of truth, in practice designers, engineers, and content specialists each maintain their own artifacts that effectively serve as their own sources of truth. Acknowledging these multiple sources—and the instructive gaps between them—reflects the fundamentally lossy nature of design systems work and leads to stronger systems.

Svelte Blog·

What’s new in Svelte: August 2022

AI summaryThis August 2022 Svelte update highlights major upcoming design changes to SvelteKit before its 1.0 release, including numerous improvements to error handling, SSR, Vite integration, and several breaking changes. It also announces new full-time maintainers joining the Svelte team, alongside community showcases, learning resources, and new libraries and tools built with Svelte.

Marc Brooker·

Getting into formal specification, and getting my team into it too

AI summaryThe author recounts how recurring, hard-to-debug state convergence bugs while working on AWS EBS led them from ad-hoc fixes through tools like Alloy and Spin to adopting TLA+ for formal specification, which they have since used across many AWS teams and helped popularize, including through the paper 'How Amazon Web Services Uses Formal Methods.' They advise anyone wanting to adopt formal specification to find a motivating example where correctness truly matters—typically tricky distributed protocols or security boundaries—and to invest the time to learn the tools, which requires some logic and set theory. Success also depends on building buy-in by recruiting teammates who have the right mix of hubris, humility, and laziness to believe correct software is achievable.

Lea Verou··Lea Verou

Help design the State of CSS Survey 2022!

AI summaryThe author is helping design the 2022 State of CSS survey, an annual feedback collection from web developers, through a Google UI fund grant, with plans to launch it in mid-September. The preliminary outline includes changes from last year's survey, such as removing the Pre-processors category and adding new CSS features like :has(), Cascade Layers, and color-mix(). Community feedback is welcome until August 20 via GitHub reactions and issues, and since browser vendors use these surveys to prioritize feature implementation, participating can help get favorite CSS features implemented faster.

brandur.org··Brandur Leach

Soft Deletion Probably Isn't Worth It

AI summaryThe article argues that soft deletion—marking rows with a deleted_at timestamp instead of hard-deleting them—causes significant problems: deletion logic leaks into every query, foreign key referential integrity is effectively lost, pruning old data for regulations like GDPR becomes painfully complex, and undeletion rarely works in practice since deletions usually have side effects in other systems that can't be reversed. The author proposes an alternative: moving deleted rows into a dedicated deleted_record table with a flexible jsonb column, which keeps normal queries clean, preserves foreign key guarantees, and makes hard deletion trivial while still retaining data for occasional inspection.

Ethan Marcotte··Ethan Marcotte

Points, break.

AI summaryEthan Marcotte responds to a Twitter question about the origin of the term 'breakpoint' in responsive web design, admitting he doesn't know when it became associated with media queries. Although he coined 'responsive design' in 2010, his original talk and article never used 'breakpoints,' yet the term appears in emails from October 2010 and in his 2011 book. He concludes the term either predates his talk or gained popularity shortly afterward, and invites anyone with documented history of the term to share it.

High Scalability··HighScalability Team

Sponsored Post: G-Core Labs, Close, Wynter, Pinecone, Kinsta, Bridgecrew, IP2Location, StackHawk, InterviewCamp.io, Educative, Stream, Fauna, Triplebyte

AI summaryThis sponsored post from High Scalability is a roundup of tech job listings—including positions at Close, Wynter, and Kinsta—along with promotions for developer-focused products and services such as G-Core Labs CDN, Pinecone, Bridgecrew, IP2Location, StackHawk, Fauna, Educative, and Stream. It also promotes Triplebyte's technical assessment service, which lets engineers skip screening steps at companies like Apple and Dropbox, and invites readers to advertise their own jobs, events, or products.

Raph Levien·

Advice for the next dozen Rust GUIs

AI summaryThe article surveys the fragmented state of Rust GUI development, where no consensus has emerged among toolkits like egui, Iced, Druid, and Slint, largely because GUI design involves a large, sensitive tradeoff space with few obviously correct choices. The author argues that "native" is a confusing term that varies by platform, and recommends instead evaluating toolkits on concrete criteria such as text rendering, input methods, accessibility, and platform integration. It also discusses infrastructure-level fragmentation around windowing libraries like winit and druid-shell, and the tradeoffs of relying on the system compositor, urging developers to carefully consider alternatives and invest in improving this shared infrastructure.