Programming · Latest articles

30 new today · 2,696 articles · from 79 blogs

brandur.org··Brandur Leach

Living APIs, and the Case for GraphQL

AI summaryThis article, originally written in 2018 with a 2025 update, makes the case that GraphQL improves on REST through explicit field contracts, automatic introspection, typed schemas, built-in batch operations, and graph-based modeling, enabling APIs to evolve gradually as 'living' systems rather than ossifying around rigid versions. The author acknowledges, however, that GraphQL is 'better but not better enough'—REST's low bar is adequate for most purposes, and its momentum explains why major providers like Amazon, Google, and Stripe have not adopted GraphQL. The 2025 update tempers the original enthusiasm, suggesting that alternatives like HTTP/3 combined with SDK-driven design may ultimately be a better compromise.

Andrew Kelley·

I Quit My Cushy Job at OkCupid to Live on Donations to Zig

AI summaryThe author, a former senior backend engineer at OkCupid, quit their job to work full-time on the Zig programming language, which they had been developing on nights and weekends as the community rapidly grew. Now supported by monthly donations, they outline an ambitious roadmap including a self-hosted compiler, tuples, a decentralized package manager, and HTTP tooling, along with a daily routine of bug fixes, documentation, and pull request reviews. They argue that Zig is a public service for the open source community, free from profit-driven motives, and ask readers to pledge $5/month to fund their work.

Without Boats·

Async Methods II: object safety

AI summaryThis article continues a series on async methods, recapping that they are implemented as anonymous associated types on traits, with each implementation producing a distinct anonymous future type. The author begins examining the implications of this design, starting with its effect on object safety—whether traits with async methods can be used as trait objects.

Lea Verou··Lea Verou

Easy Dynamic Regular Expressions with Tagged Template Literals and Proxies

AI summaryThe article presents a technique for building dynamic regular expressions in JavaScript using tagged template literals, so that interpolated strings are automatically escaped and a concise syntax like regexp`${start}([\S\s]+?)${end}` just works. It then tackles the problem of passing regex flags by using a function that detects whether it was called as a tag or with flags, and finally shows an even more elegant solution using ES6 Proxies, enabling syntax like regexp.gi`...` without parentheses or quotes.

Without Boats·

Async Methods I: generic associated types

AI summaryRust's async/await feature is progressing well: an RFC describing the syntax has been accepted and compiler implementation is underway, with nightly experimentation expected by early July. However, the RFC did not cover async methods, which are important for library authors who need to define traits containing async functions. The article addresses this gap through the use of generic associated types.

research!rsc··Russ Cox

What is Software Engineering?

AI summaryThe article defines software engineering as programming that must account for time and other programmers, requiring practices like version control, testing, and modularity to keep code maintainable. It argues that nearly all of Go's distinctive design decisions were motivated by software engineering concerns, citing examples such as gofmt enabling tools to edit source code without formatting changes, and URL-based import paths that eliminate ambiguity and simplify collaboration among programmers.

Josh W. Comeau··Josh W. Comeau

Dynamic Bézier Curves

A deep dive into Bézier curves in React. We'll look at how to build dynamic effects such as scroll-to-flatten using SVG path instructions, and how to architect our components for maximum readability and reusability. Keep reading.

Lea Verou··Lea Verou

Never forget type="button" on generated buttons!

AI summaryThe author debugged a strange bug in Mavo where pressing Enter inside a collection item deleted an item instead of adding a new one. The root cause was that Mavo-generated elements lacked a type attribute, making them default submit buttons—so pressing Enter submitted the form and fired a click event on the first delete button, which had become the de facto default submit button. The fix was adding type="button" to all programmatically generated buttons, a practice recommended for any library code operating within unfamiliar HTML.

Lea Verou··Lea Verou

Responsive tables, revisited

AI summaryThe author explores techniques for making HTML tables responsive, favoring the key-value display where headers are repeated for each row, and proposes two new methods to achieve this without duplicating content in the markup or CSS: using text-shadow to copy header text onto each row, and using the element() function (Firefox-only) to duplicate the entire thead. Both approaches work with normal table markup, but they share drawbacks such as unselectable duplicated headers and the requirement that table cells not wrap. As a result, the author considers these techniques hacks and hopes for more viable solutions in the future.

Joel on Software··Joel Spolsky

Announcing Stack Overflow for Teams

AI summaryStack Overflow announced Stack Overflow for Teams, a paid service that lets organizations set up a private space on Stack Overflow where members can ask and answer questions visible only to their team. The article argues that a Q&A system captures institutional knowledge far better than wikis or searchable chat archives, since answers are written to help someone immediately and searching actually works. Pricing starts at $10 per month for the first ten users, and private questions appear seamlessly on stackoverflow.com with a clear distinction between public and team posts.

Lea Verou··Lea Verou

Quicker Storify export

AI summaryWith Storify shutting down, the author found the official manual export process painfully slow, requiring multiple page loads per story. Noticing that the HTML and JSON export URLs could be reconstructed from each story's URL slug, she wrote a quick JavaScript console script that collects all her story slugs and opens both export URLs in tabs, letting her simply save each one. The script isn't perfect—opening dozens of tabs slows the browser significantly—but it saved a lot of time compared to exporting her 40 stories manually.

Joel on Software··Joel Spolsky

Strange and maddening rules

AI summaryThe article reflects on Stack Overflow's founding philosophy, explaining how self-help debugging techniques like rubber duck debugging inspired Jon Skeet's question checklist, and how the founders deliberately welcomed beginner questions—unlike the old comp.lang.c Usenet group whose elitism caused it to languish. While acknowledging that the site's rules can seem strange and maddening to novices, much like Burning Man's seemingly arbitrary principles, the author argues they are necessary for maintaining quality. He expresses concern that rudeness and condescension drive away potential future developers, and describes plans to improve the user interface and moderation tools to encourage friendlier behavior while preserving Stack Overflow's status as the world's most trusted programming resource.

Joel on Software··Joel Spolsky

A Dusting of Gamification

AI summaryThe article, part of a series on Stack Overflow, describes the site's light use of gamification—primarily its reputation system inspired by Reddit Karma and Slashdot's karma—which rewards helpful contributions and signals community norms. The author acknowledges the dark side: downvotes can feel punishing and the system has made the site feel unwelcome, especially to programmers from underrepresented groups, which Stack Overflow is working to address. He concludes that gamification is a weak force that can only reinforce behaviors people are already motivated to do, not create motivation where none exists.

Without Boats·

Async & Await in Rust: a full proposal

AI summaryThe article announces a pair of RFCs proposing async & await notation support in Rust, the result of four months of work expected to significantly impact Rust's network services space. RFC #2394 adds the async & await syntax to the language, while RFC #2395 moves part of the futures library into std to support it. Together, these proposals enable async syntax with the full range of Rust features, including borrowing across yield points.

Without Boats·

Async/Await VI: 6 weeks of great progress

AI summaryThis blog post documents nearly six weeks of significant progress on the async/await feature in Rust, building on the problem laid out in the first post of the series. The author highlights work on the Future trait and the pinning API, including an RFC titled 'Standard library API for immovable types'.

Without Boats·

Failure 1.0.0 on March 15

AI summaryThe author plans to release version 1.0.0 of the failure crate on March 15 and does not intend to make any further breaking changes afterward. This matters because failure is a significant part of the public API of other libraries, whether they use the Error struct or derive Fail for custom error types, so the 1.0 release represents a long-term stability commitment for its dependents.

Lea Verou··Lea Verou

Free Intro to Web Development slides (with demos)

AI summaryAn MIT instructor teaching 6.813 User Interface Design and Implementation has shared slides from three new 2-hour intro-to-web-development labs, created for students who are technically experienced but new to web development. The slides include notes explaining live-coded demos, were tested mainly in Chrome, and are shared as-is with no support, though others may use them for non-profit teaching or submit pull requests to fix issues.