Top posts

Every blog post that took off on Hacker News, ranked by the votes of its best submission. 3,824 posts.

Any topic
2023
40

Draggable objects

Many of my interactive pages have a draggable object . I want the reader to move the object around, and I want the diagram to respond in some way. Here I’ll document the code I use to make this work with both mouse and touch input, using browser features that are widely supported since 2020. Here’s a common case I…

50

The age of average

In the early 1990s, two Russian artists named Vitaly Komar and Alexander Melamid hired a market research firm to survey the public on what they wanted in a work of art. Across 11 countries they then set about painting a piece that reflected the results. Each piece was intended to be a unique a colla

58

Scrollbars are becoming a problem

Scrollbars. Ever heard of them? They’re pretty cool. Click and drag on a scrollbar and you can move content around in a scrollable content pane. I love that shit. Every day I am scrolling on my computer, all day long. But the scrollbars are getting smaller and this is increasingly becoming a problem. I would show you…