Latest articles

408 new today · 7,366 articles · from 241 blogs

Mara Bos·

Writing Python inside your Rust code — Part 3

Have you ever seen the Rust compiler give a Python error? Or better, have you ever seen rust-analyzer complain about Python syntax? In this post, we’ll extend our python!{} macro to make that happen.

Josh W. Comeau··Josh W. Comeau

Lessons Learned Speaking at Conferences

Speaking at conferences is equal parts exciting and terrifying. This article is a behind-the-scenes look at what the experience is like, and shares tips for getting started as a conference speaker. Keep reading.

Without Boats·

Notes on io-uring

AI summaryThe author spent last fall building a library for safely driving futures on top of io-uring, releasing bindings to liburing called iou, though the futures integration, ostkreuz, was never released. Since several people have since started writing libraries with similar goals, the author shares notes on what they learned about working with io-uring and Rust's futures model. The post assumes some familiarity with the io-uring API.

Josh W. Comeau··Josh W. Comeau

Accessible Animations in React

I really love animation, but not everybody does. In fact, it can make some people literally sick! In this tutorial, we'll see how to ensure that we respect user preferences, and create animations that can be disabled. Keep reading.

Josh W. Comeau··Josh W. Comeau

Why My Blog is Closed-Source

AI summaryThe author explains their decision to keep their blog closed-source, breaking from the common trend of open-sourcing developer projects. They share their reasoning behind this choice and offer a workaround for those who really want to see the source code. The article is intended to help others who are deciding whether a project should be open-source.

Ethan Marcotte··Ethan Marcotte

Gardened.

AI summaryThe author discusses two recent pieces: Steve Workman's account of optimizing excessively bloated code from a software library, and Tim Kadlec's research showing that websites built with Angular, React, and Vue deliver far more JavaScript than ideal, costing users significant time and money. He argues these stories reveal the same systemic problem: popular frameworks ship with bad defaults, and producing quality work depends on teams voluntarily adopting best practices, which doesn't scale. He concludes that the tech industry's self-regulation amounts to a failure of governance and calls for formal standards, akin to building codes in other industries, particularly since the web provides life-saving information and services during a global health crisis.

Josh W. Comeau··Josh W. Comeau

The Quest for the Perfect Dark Mode

AI summaryDark mode has become a standard user expectation, but implementing it well in statically-built sites and apps is deceptively tricky. This in-depth tutorial explains how to build a perfect, flicker-free, and customizable theming solution for React/Next.js applications.

Kalzumeus··Patrick McKenzie (patio11)

Dropping hashes: an idiom used to demonstrate provenance of documents

AI summaryThe article discusses the idiom of 'dropping a hash,' a practice widely understood in the security community as a way to demonstrate the provenance of documents, but little known outside it. The author notes the surprising absence of a canonical explanation of the idiom and offers this write-up, drawing on their own experience of dropping hashes, to explain its significance to non-specialists.

Coding Horror··Jeff Atwood

Building a PC, Part IX: Downsizing

AI summaryThe author documents their latest PC build, downsizing from a 2011-era case to a compact mini-ITX system in a Streacom DA2 case chosen over the smaller Dan A4 SFX to accommodate a powerful Intel i9-9900KS CPU and NVIDIA RTX 2080 Ti GPU. They praise the DA2's versatile bracket system and hybrid open-air design (recommending removing the top and bottom acrylic panels for airflow), while criticizing the tight-fitting side panels and intrusive power extension cable. Concluding that PC upgrades have become boring, they suggest that the main innovation in PC building going forward is packing maximum power into less than 20 liters of space.