Latest articles

431 new today · 7,489 articles · from 241 blogs

React Blog··Ricky Hanlon

React Conf 2024 Recap

Last week we hosted React Conf 2024, a two-day conference in Henderson, Nevada where 700+ attendees gathered in-person to discuss the latest in UI engineering. In this post, we'll summarize the talks and announcements from the event.

Ethan Marcotte··Ethan Marcotte

Hello, 18F.

AI summaryIn this journal post, Ethan reflects on his first week at 18F as a new product designer, which was filled with device setup, orientation sessions, and self-paced training on working in the federal government. He was impressed by the thoughtfully designed onboarding process and energized by the smart, kind, and passionate colleagues he met. Overall, he feels glad to be there and is looking forward to what's ahead.

Robin Rendle··Robin Rendle

Design interviews

AI summaryThe author, drawing on their experience running many designer interviews (and having failed countless ones themselves without ever receiving feedback), shares the seven questions they ask candidates: who they are, the problem they tackled, whether they did research, whether they explored messy iterations, the range of their work, how they fought bureaucracy, and the final results. Alongside each question they offer practical advice—such as starting with something lighthearted to engage the panel, showing rough sketches and failed ideas rather than only polished designs, demonstrating versatility across projects, advocating for users, and emphasizing what was learned—even from unsuccessful projects, since teams often value potential.

Mr. Money Mustache··Mr. Money Mustache

The Ultimate Life Coach

AI summaryNearly nineteen years into early retirement, the author realized that total freedom had become a double-edged sword, as he was using it to avoid difficult but valuable tasks like workouts and writing, opting for easier distractions instead. He discovered that the key to overcoming this self-sabotage is to catch himself at the moment of hesitation and use it as a trigger for immediate action rather than making excuses. Inspired by extreme achievers like David Goggins and the mantra 'You already know what to do,' he regained his fitness, focus, and motivation by treating mental barriers as surmountable and running toward, rather than away from, the things he doesn't feel like doing.

Lea Verou··Lea Verou

On automatically generating contrasting text colors with CSS

AI summaryThe article explains how to use CSS Relative Color Syntax (RCS) in the OKLCH color space to automatically compute a contrasting text color (black or white) for arbitrary background colors, emulating the future contrast-color() function years before it ships. The technique relies on a lightness threshold formula built with widely supported CSS math functions like clamp() (and later sign()), with @supports-based fallbacks for browsers that lack RCS support. The author also critiques the WCAG 2.1 contrast algorithm, favoring APCA for actual readability, and argues RCS is mature enough for production use.

Hillel Wayne·

Comment Section: Software Friction

AI summaryThis piece collects reader responses to an article on software friction, centered on feedback from a US Marine Corps infantry officer who explains how the military trains personnel to recognize and manage friction early in their careers. He recommends adopting 'hot washes'—immediate post-operation reviews of what went well and poorly—which differ from typical postmortems in that points are recorded in a standard format and archived in lessons-learned libraries for future reference. He also notes that the Marine Corps' high turnover makes such persistent written knowledge storage essential for preserving institutional understanding.

Sam Altman··Sam Altman

GPT-4o

AI summaryIn this announcement about GPT-4o, the author emphasizes OpenAI's mission by highlighting that the world's best model is now available for free in ChatGPT, funded through other paid offerings. He describes the new voice and video mode as the best computer interface he has ever used, noting that human-level response times and expressiveness make talking to a computer feel natural for the first time. He concludes by expressing excitement about future capabilities like personalization and agent-like actions, along with gratitude to the team that built it.

Josh W. Comeau··Josh W. Comeau

Snappy UI Optimization with useDeferredValue

useDeferredValue is one of the most underrated React hooks. It allows us to dramatically improve the performance of our applications in certain contexts. I recently used it to solve a gnarly performance problem on this blog, and in this tut

Without Boats·

References are like jumps

AI summaryThe article revisits C.A.R. Hoare's 1974 critique of references and pointers in high-level languages, in which he argued they reintroduce machine-code problems—such as address/content confusion, unconstrained mutation through aliasing, lack of independent meaning, and performance overhead—calling them 'a step backward.' The author contends that while Hoare's famous 'billion dollar mistake' was the null pointer, the industry's broader disregard of his warnings about pointers in general was a 'trillion dollar mistake,' because mutable, aliased state destroys the ability to reason locally about a program's behavior. Preventing accidental mutation of aliased state, the author concludes, is essential to building correctly functioning software.

Deno Blog··Andy Jiang

How to document your JavaScript package

Writing good JSDocs for your JavaScript package is critical to its success. Here are some best practices for creating docs that helps your users be successful.

Bun Blog·

Bun v1.1.8

Fixes 54 bugs (addressing 184 👍). Support for `process.on("uncaughtException")` and `process.on("unhandledRejection")`, Brotli support in `node:zlib`, Faster JSON.parse, `[Symbol.dispose]` in Bun APIs, fixes lots of crashes on Windows, and

Marc Brooker·

It's always TCP_NODELAY. Every damn time.

AI summaryThe article explains that Nagle's algorithm, designed in the 1980s to amortize TCP header costs by holding back small packets, interacts badly with delayed ACKs and is a frequent culprit behind latency issues in distributed systems. The author argues that modern applications rarely send single-byte packets, so the bandwidth savings are no longer worth delaying data for a round trip. He concludes that latency-sensitive systems should enable TCP_NODELAY without hesitation, and suggests it should probably be the default.

Tailwind CSS Blog·

Headless UI v2.0 for React

We just released Headless UI v2.0 for React which includes a ton of new stuff including built-in anchor positioning, a new headless checkbox component, HTML form components and more!

brandur.org··Brandur Leach

The Notifier Pattern for Applications That Use Postgres

AI summaryThe article introduces the 'notifier pattern' for applications using Postgres LISTEN/NOTIFY, in which a single Postgres connection per process manages all topic subscriptions and distributes received notifications to the various components that want them, conserving Postgres's limited connections compared to the naive one-connection-per-topic approach. Key implementation details include buffered channels with non-blocking sends so slow components can't stall the system, reusing a single LISTEN per topic for multiple subscribers, an 'established' channel to confirm subscriptions for testing, interruptible notification waits so new subscriptions can be processed promptly, and crash-and-restart handling for unhealthy connections. The pattern remains compatible with PgBouncer since only this one dedicated connection needs session pooling while the rest of the application can use transaction or statement pooling.

brandur.org··Brandur Leach

Web APIs: Enriched DX By Disallowing Unknown Fields

AI summaryThe article explains how Go's DisallowUnknownFields JSON decoder option improves developer experience for web APIs by returning an error when a request contains fields that don't exist in the target struct, catching mistakes like sending "expires" instead of "expires_in". It also covers practical caveats, such as safely enabling the check on existing APIs through logging probes and grandfathering known bad fields, deprecating old fields carefully, and providing escape hatches for endpoints like webhook receivers. Finally, it notes the pattern is portable to other languages and can be enhanced with Levenshtein distance suggestions, e.g., telling users who send "expires" that they probably meant "expires_in".

Benedict Evans··Benedict Evans

Ways to think about AGI

AI summaryThe article argues that despite the recent wave of excitement around large language models, we lack a coherent theoretical model of what general intelligence actually is, why LLMs work, or whether they can scale to AGI—and even leading experts fundamentally don't know or agree. The author warns against circular definitions and false certainty, comparing much AGI discourse to theological reasoning, and suggests AGI may arrive in stages and be dismissed as 'just software' just as AI was. Since familiar risk analogies like nuclear fission or meteorites are flawed and the real risks remain unknown, we must each decide how to respond to that uncertainty, while remembering that automation has historically been mostly beneficial.

Deno Blog··Andy Jiang

Your Low Code Solution Needs an Escape Hatch

AI summaryThe article argues that while low-code solutions offer users simple flexibility, they should also include an 'escape hatch' for code-level customization. This is particularly important for enterprise users who require deeper customization capabilities. The author presents three product scenarios that illustrate where such an escape hatch makes the most sense.