Declarative Dragging
birdculture
11 points
1 comment
November 05, 2026
Related Discussions
Found 5 related stories in 48.5ms across 3,874 title embeddings via pgvector HNSW
- Declarative Dragging smusamashah · 760 pts · November 04, 2026 · 100% similar
- ExcalidrawZ: Local Native Excalidraw on macOS/iOS Qision · 117 pts · November 12, 2026 · 41% similar
- Show HN: Get your coding agent off ~2019 JavaScript, onto modern web primitives paulirish · 323 pts · November 10, 2026 · 41% similar
- Show HN: Alloy CSS, dialogs, menus and tabs that work with JavaScript off prafandy · 189 pts · November 17, 2026 · 40% similar
- Spreading Liquid with Three.js mooreds · 242 pts · November 02, 2026 · 39% similar
Discussion Highlights (1 comments)
corbins
The demos[0] and the inspectability of them are both really amazing! I'm reminded of Deprecating the Observer Pattern[1], which looks at an FRP approach to drag-n-drop - it's a good read and shows that we've never had a solid idiomatic approach to such an elemental interaction. I have a growing hunch that state machines, possibly extended for greater composition as in statecharts[2], are the best way to represent many UIs. They're declarative and represent change as a first-class thing: an `arrow`. Functions and methods don't map well to this concept and I think that's why it's a bitch to specify state machines in code. Maybe we gave up too early with `goto` [0] https://declarative-dragging.github.io/dragology/#/demos [1] https://news.ycombinator.com/item?id=17845341 [2] https://news.ycombinator.com/item?id=25454175