最新文章

今日新增 443 篇 · 共 7,501 篇 · 来自 241 个博客

A List Apart··Gerry Duffy

User Research Is Storytelling

AI 摘要The author draws a parallel between user research and storytelling, mapping the classic three-act movie structure onto the research process: act one (setup) corresponds to foundational research that uncovers users' problems, act two (conflict) corresponds to directional research such as usability testing, and act three (resolution) involves addressing the issues identified. The article argues that framing research as a compelling story is key to getting stakeholders invested and keeping teams user-centered. It also warns that research is often the first thing cut when budgets tighten, but both foundational and usability research are necessary to truly solve users' real problems.

Andrew Kelley·

Zig's New CLI Progress Bar Explained

AI 摘要The article explains the technical implementation of Zig's new CLI progress bar, which adopts a modern philosophy where an application spawned with stderr as a terminal assumes full ownership of it and leverages all available terminal features. The design centers on a thread-safe, lock-free API using statically pre-allocated nodes with a free-list allocator, an update thread that serializes shared data on a timer, and inter-process communication via progress pipes that lets child processes report progress semantically so the terminal owner can aggregate and display it. Benchmarks show the new implementation has negligible performance overhead, and it even helped uncover a long-hidden bug in Zig's child process spawning code before being merged.

Hillel Wayne·

What We Know We Don't Know: Empirical Software Engineering

AI 摘要This article accompanies a talk given at DDD Europe 2024 about Empirical Software Engineering (ESE), the discipline of studying what actually works in software development through data collection, studies, and peer review rather than relying on instinct. It outlines the main research methods used—controlled trials, natural experiments, and observational studies—and provides extensive links to the papers and sources referenced in the talk. The piece concludes with findings related to Domain-Driven Design and answers to audience questions about what science can and cannot conclude about software practices.

brandur.org··Brandur Leach

Eradicating N+1s: The Two-phase Data Load and Render Pattern in Go

AI 摘要The article explains the N+1 query problem, in which rendering a collection of records triggers an extra database query per record due to lazy loading of associations, and it surveys mitigation strategies such as ActiveRecord eager loading, Rails 6.1's strict loading, and Stripe's creative use of Ruby fibers to batch database intents. It then describes how the author adopted a two-phase load-and-render pattern in Go at their current company, which loads all required data in batched queries before rendering and has eliminated N+1s for two years. The pattern works well despite Go's inherent verbosity and lack of a good ORM.

Robin Rendle··Robin Rendle

Against Landlords

AI 摘要This article is a personal reflection on Nick Bano's book 'Against Landlords', which argues that the UK housing crisis is driven by rent rather than scarcity, since the rental market functions like a monopoly and most homes are under-occupied. The author, drawing on their own experiences of housing injustice, endorses Bano's proposed solutions of expanding council housing and implementing rent control. The piece concludes that landlords are economic leeches who exploit public funds, and that the housing crisis should be recognized as a grave social injustice.

Bun Blog·

Bun v1.1.10

Fixes 20 bugs. 2x faster uncached bun install on Windows. fetch() uses up to 2.8x less memory. Several bugfixes to bun install, sourcemaps, Windows reliability improvements and Node.js compatibility improvements

Bits about Money··Patrick McKenzie (patio11)

Guys what is wrong with ACATS

AI 摘要This article explains ACATS (Automated Customer Account Transfer Service), the FINRA-governed system that mediates asset transfers between brokerages, tracing its roots to FINRA Rule 11870, which requires firms to let departing customers take their assets. It describes how shares are effectively entries in interlocking spreadsheets at brokerages and the DTCC, and how ACATS standardizes coordination among thousands of firms. It also highlights a surprising trust-based design choice: most incoming transfer requests are not verified with the losing brokerage's customer, and firms must validate or formally object within three business days using only twelve enumerated reasons.

Bun Blog·

Bun v1.1.9

AI 摘要Bun v1.1.9 fixes 67 bugs, including issues with workspaces in bun install, sourcemaps in bun build, IPv6 and VPN connectivity, and Windows support for UNC paths, junctions, symlinks, and pnpm. The release also delivers performance improvements, such as faster fetch(), a new dns.prefetch() API, atob() becoming 8x faster, and toString('base64url') 5x faster. Additionally, it adds the expect().toBeReturned() matcher along with Node.js compatibility improvements and Bun Shell fixes.

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 摘要In 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 摘要The 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 摘要Nearly 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 摘要The 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 摘要This 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.