Comment by kjksf
7 hours ago
Not only it can but it does.
Just as I was reading this claude implemented a drag&drop of images out of SumatraPDF.
I asked:
> implement dragging out images; if we initiate drag action and the element under cursor is an image, allow dragging out the image and dropping on other applications
then it didn't quite work:
I'm testing it by trying to drop on a web application that accepts dropped images from file system but it doesn't work for that
Here's the result: https://github.com/sumatrapdfreader/sumatrapdf/commit/58d9a4...
It took me less than 15 mins, with testing.
Now you tell me:
1. Can a farm worker do that?
2. Can you improve this code in a meaningful way? If you were doing a code review, what would you ask to be changed?
3. How long would it take you to type this code?
Here's what I think: No. No. Much longer.
The code is really bad, so I'd have a lot to say about it in a review. Couldn't do it in 15 minutes, though.
Why is it using a temp file? Is there really no more elegant way to pass around pointers to images than spilling to disk?
Of course there is, but slop generators be slopping
What is it, o wise person stingy with the information.
1 reply →