logoalt Hacker News

adastra22 • yesterday at 10:43 PM • 2 replies • view on HN

Dumb question: why? It’s been a long time since I touched GUI code, but I thought it gave you a message with the URI to the file. How is this significantly different than file-open?


Replies

gavinray • yesterday at 11:53 PM

This was circa 2010 or so, and it was a web app. So pre-ES6 JavaScript, before React.

Nowadays you would just "npm install drag-and-drop" but back then you often had to hand-roll solutions.

If anyone can dig up an ancient library on GitHub for drag-and-drop back in those days, I'd imagine it would be several thousand lines long, not to mention the absolute nightmare that testing something like this with a proper framework and accompanying testing library.

➕ show 2 replies
mcculley • yesterday at 10:50 PM

There are more possible actions than opening files.