Programming · Latest articles

29 new today · 2,702 articles · from 79 blogs

Ben Kuhn··Ben Kuhn

How I build and run behavioral interviews

AI summaryThe author, who once considered behavioral interviews useless because candidates could easily bluff, shares strategies for extracting genuine signal from them. Key tips include budgeting 2+ hours to prepare questions and a rubric beforehand, focusing on only 1-3 related skills per interview, and probing for detailed timelines, outcomes, and metrics during the interview to distinguish real experience from BS. When evaluating candidates, the author warns against winging it and lists red flags such as vague platitudes, scapegoating, and a lack of self-improvement mindset.

Without Boats·

Asynchronous clean-up

AI summaryThe article explores the problem of asynchronous clean-up in Rust, arguing that supporting await inside destructors is unrealistic due to issues like dropping values in non-async scopes, object safety and Send concerns for futures, implicit await points, and difficult-to-predict code generation. The author reframes the challenge as a general limitation of destructors that must return (), covering async clean-up and clean-up that returns values like Result. The proposed solution combines async future cancellation with a do...final construct, which the author argues are prerequisites for any linear type mechanism in Rust rather than alternatives to type-based approaches.

Without Boats·

FuturesUnordered and the order of futures

AI summaryThe article discusses FuturesUnordered, an abstraction from the Rust futures library that runs a dynamic collection of futures concurrently within a single task as a Stream. It contrasts this with multi-task concurrency (spawning tasks, which require 'static and cannot borrow parent state) and intra-task concurrency (joining futures, which can borrow state but only supports a static number), positioning FuturesUnordered as a hybrid that combines borrowing with dynamic arity. However, despite being a natural fit for certain patterns, FuturesUnordered has been implicated in frustrating bugs for async Rust users, which the author plans to investigate in the rest of the post.

React Blog··Joseph Savona, Ricky Hanlon, Andrew Clark, Matt Carroll, and Dan Abramov

React Labs: What We've Been Working On – February 2024

In React Labs posts, we write about projects in active research and development. We’ve made significant progress since our last update, and we’d like to share our progress.

Josh W. Comeau··Josh W. Comeau

How To Center a Div

Back in the day, centering an element was one of the trickiest things in CSS. As the language has evolved, we’ve been given lots of new tools we can use… But how do we pick the best option? When do we use Flexbox, or CSS Grid, or something

Marc Brooker·

Better Benchmarks Through Graphs

AI summaryThe author argues that database engineering remains too opinion-driven because industry-standard benchmarks like TPC-C and YCSB are too easy and poorly represent real-world workloads. They propose generating better synthetic benchmarks by modeling database objects as a graph where transactions are random walks, with parameters like transaction size, coordination, and locality tuned via a Watts-Strogatz small-world model extended with Zipf-distributed rewiring to simulate hot keys. The author finds this approach highly flexible and useful for exploring design trade-offs like atomicity, isolation, and durability, though notes the relationship between parameters and workload characteristics can be non-linear in surprising ways.

Marc Brooker·

How Do You Spend Your Time?

AI summaryThe author shares career advice for people who feel busy and productive but unhappy with what they accomplish, recommending they create an explicit 'time budget' dividing their time among a handful of themes, calibrate it with their manager, and stick to it stubbornly over the long term while staying flexible day to day. This requires defining what success looks like, saying no to unimportant requests, and avoiding failure modes like chasing visibility, drowning in urgent 'dirty work,' or drifting into low-value commitments. The author illustrates the approach with their own themes (IC work, mentoring, strategy, business rhythm, learning, customers) and suggests extending the exercise to teams by explicitly discussing how much time engineers at each level spend on hands-on work.

V8··Olivier Flückiger

Static Roots: Objects with Compile-Time Constant Addresses

AI summaryThe article describes V8's "static roots" feature, which hardcodes compile-time constant memory addresses for core JavaScript objects (like undefined and true) living in the read-only heap, enabling fast direct references instead of runtime lookups. This is achieved by deterministically generating the read-only heap layout through the mksnapshot build process and exploiting pointer compression by placing the heap at the start of the compression cage, with generated offsets cached in a static-roots.h header. The feature, which landed in Chrome 111, delivered performance gains across the VM—especially in C++ code and builtin functions—and enables further optimizations such as identifying object types via address range checks.

Andrew Kelley·

Why We Can't Have Nice Software

AI summaryThe article argues that software's core problem is that it is too efficient and can be 'completed,' which threatens profit-driven business models, so companies deliberately introduce waste through DRM, bitrot, proprietary platforms, and planned obsolescence. It cites examples like ad-laden Windows updates, incompatible charging cables, fragmented messaging apps, and modern dishwashers burdened with buggy smart features that work worse than older models. The author concludes that technologies like blockchain and LLMs appeal to investors precisely because they are wasteful and never truly finished, sabotaging software's potential glimpse into a post-scarcity society in order to keep profits perpetually rising.

Without Boats·

Let futures be futures

AI summaryThe article examines the debate over the futures/promise abstraction and async/await syntax, contrasting Marius Eriksen's argument that futures' distinct type signature enables composable and expressive concurrency with Bob Nystrom's 'function coloring' critique that dividing functions into sync and async is a frustrating burden. The author sides with Eriksen, noting that some of Nystrom's criticisms apply to JavaScript's callback style rather than statically typed languages like Rust. The post sets out to re-examine async Rust's design, imagining a world where the difficulties of futures are resolved so that async Rust becomes not just as easy to use as non-async Rust, but a better experience overall.

Svelte Blog·

What’s new in Svelte: February 2024

AI summaryThe February 2024 Svelte update covers new SvelteKit features released since version 2.0, including a tree-shakeable client router, the reroute hook, the read function in $app/server, and adapters that can emulate the production environment. Development on Svelte 5 continues, now available in preview, with snippets newly able to accept multiple arguments. The post also highlights community-built apps, learning resources, and tools such as Lucia 3.0 and the Paraglide JS Adapter for SvelteKit.

Marc Brooker·

Pat's Big Deal, and Transaction Coordination

AI summaryThe article analyzes Pat Helland's CIDR'24 'BIG DEAL' proposal, in which scalable applications avoid concurrently updating the same key and databases avoid coordinating across transactions that touch different keys, in exchange for scalability. It explains that this deal relies on snapshot isolation, which permits a write-skew anomaly, and shows that upgrading to serializability would require tracking read sets and coordinating across many more keys, potentially harming asymptotic scalability. The author proposes an alternative 'serializable New Big Deal' that eliminates write skew but shifts the burden onto developers to carefully manage their reads to maintain good scalability.