Live data from Hacker News

A feature-rich front-end drag-and-drop component library

github.com

61–70 of 80 posts

Re: A feature-rich front-end drag-and-drop component library

#61
post #24

Earlier quoted context omitted.

Do you do any consulting? Would love some help on something similar? @pieperz on twitter.

I've got my hands pretty full with another project and unfortunately I don't use Twitter anymore since it became X. If you'd like, though, I can send an email to your quilt store's contact email (team@) and you can reply to that to tell me a bit more about what you're trying to do, and if I can give any genuinely useful suggestions as to how I would go about it, I will do so. But I realize technical advice != actual…

Can I inquire why you decided to jump ship on X?

If something(s) changed there would you have stayed or would you return?

By measurable account he's made the platform better overall, contrary to certain propaganda narrative talking points.

He did of course make Twitter-X less of a bubble machine, which arguably is bad for society because then ideological mobs with certain unchallenged ideas or beliefs go unchallenged (doesn't matter what "side" you're on, there are extreme and bad-wrong ideas on both/all) - so you'd begin to get exposed to content that may make you uncomfortable. If you're not able to quickly scan through it and not react so you just move on, it would become a tiresome and a challenge.

You could go "full bubble" like Instagram recently did though and create a setting default on to not show you "political" content from people you don't follow - arguably adding to the detriment of society, and of a seeming concerted effort by bad actors towards division and conquering us by helping reinforce the bubble walls.

Re: A feature-rich front-end drag-and-drop component library

#62
post #29

Earlier quoted context omitted.

Both the dndkit and pragmatic-drag-and-drop are great for simple use cases. If you're building something complex though, neither will cut it, nor will any other dnd library I've seen. I built a card game interface last year that involved 3 forms of droppable: - a hand, where cards were display in a row and could be reordered - a pile, where cards stacked and only showed the topmost card, which could be dragged off th…

To be fair, this is like saying Legos aren't appropriate for building a house or a pocket calculator isn't appropriate for analyzing a particles accelerator -- simple tools are great for their intended use case but you need much more advanced tools for complex scenarios. With that said, I agree that emulating playing cards is tricky, I'm curious what you used. I built https://play.cheatatbj.com using ZimJS (whose web…

> https://play.cheatatbj.com/

What's the point of this? To get better at blackjack?

I ask because I did a blackjack trainer to train me via repetition on perfect play (circa 2008). Still one or two things left unimplemented to this day, though, but over the course of playing a few games a day over months, I definitely did get better (losing less over time than I used to :-))

Re: A feature-rich front-end drag-and-drop component library

#63
I'm here for the phenomenon of the GitHub stars on this repo. Which was quite a weird event. Even with just the readme in the repo they got a crazy number of stars and were on GitHub trending for a day or two. What's with that? Are there just so many front-end developers, is it possible that DND is such a huge unsolved pain, is it just cause its Atlassian, did they sent a mass e-mail? I am honestly confused? What's the value of stars these days for an individual developer consuming the code?

Re: A feature-rich front-end drag-and-drop component library

#64
This is off topic a bit, and not a criticism of this library or its authors, but: I do think that DnD is bad for accessibility. Especially on mobile, where it's much harder to precisely click, so the deadzone required to distinguish a click from a drag has to be much larger.

But whether it's on a mouse, trackpad, touchscreen, trackpoint, or other more esoteric system, it requires a muscle hold while doing a precise movement along another axis. And this can be more difficult and RSI-inducing. God help you if you're trying to drag on a resistive touchscreen where more force is required, too.

I feel that the copy-paste workflow of pick source -> copy -> pick destination -> paste is actually easier (and much more prevalent!) than pick -> hold AND move -> drop. It also works better in windowed systems because you can more easily interact with the window system while "holding" the thing; this is often impossible or more difficult while using DnD and having to hold down the primary button.

(some drawing tools actually recognize this by having different tools/cursors for "select items" and "move item(s)". The old Acorn Archimedes used a different mouse button (middle) reserved for DnD. I feel it could work well with a stylus with a button too. But in both those cases I would prefer "click to pick up, click to drop" to holding.)

Re: A feature-rich front-end drag-and-drop component library

#65
post #64

This is off topic a bit, and not a criticism of this library or its authors, but: I do think that DnD is bad for accessibility. Especially on mobile, where it's much harder to precisely click, so the deadzone required to distinguish a click from a drag has to be much larger. But whether it's on a mouse, trackpad, touchscreen, trackpoint, or other more esoteric system, it requires a muscle hold while doing a precise m…

Totally agree - that drag and drop is over-rated.

The only area I think where drag and drop has an advantage is if you want to be precise about where you drop and thus realtime feedback about where it will drop is useful.

ie drag and drop effectively adds a mode while you are dragging - and as such you can have mode sensitive UI feedback that operates only in that mode - not so easy with cut and paste - the UI doesn't know you are about to paste.

Re: A feature-rich front-end drag-and-drop component library

#68
post #66

The funny thing about this is that they don’t use it in trello

Pragmatic drag and drop is already being used to power drag and drop for Trello boards. There is some sprinkling of other drag and drop interactions around Trello - which have moved, or are moving to, Pragmatic drag and drop.

Re: A feature-rich front-end drag-and-drop component library

#69
post #6

To provide some context for this, Atlassian originally created a drag and drop library called react-beautiful-dnd. A few years ago they stopped maintaining the library, and some community forks took over (I think @hello-pangea/dnd is the most popular). In the interim I've found https://dndkit.com a _really_ nice solution, but it's only available in React-land. Looks like this new library was written at least in part…

Both the dndkit and pragmatic-drag-and-drop are great for simple use cases. If you're building something complex though, neither will cut it, nor will any other dnd library I've seen. I built a card game interface last year that involved 3 forms of droppable: - a hand, where cards were display in a row and could be reordered - a pile, where cards stacked and only showed the topmost card, which could be dragged off th…

I’m just wrapping up a project at work with similar constraints and share the same experiences. Good library, best used for simpler use cases. Drag and drop across browsers and devices is still not a smooth dev experience. Dnd did improve it a lot and performance issues are not noticeable to the end user in our use case. Hopefully the new version that comes out continues to be as good.

Re: A feature-rich front-end drag-and-drop component library

#70
post #61

Earlier quoted context omitted.

I've got my hands pretty full with another project and unfortunately I don't use Twitter anymore since it became X. If you'd like, though, I can send an email to your quilt store's contact email (team@) and you can reply to that to tell me a bit more about what you're trying to do, and if I can give any genuinely useful suggestions as to how I would go about it, I will do so. But I realize technical advice != actual…

Can I inquire why you decided to jump ship on X? If something(s) changed there would you have stayed or would you return? By measurable account he's made the platform better overall, contrary to certain propaganda narrative talking points. He did of course make Twitter-X less of a bubble machine, which arguably is bad for society because then ideological mobs with certain unchallenged ideas or beliefs go unchallenged…

I find your perspective fascinating but I never ‘got’ Twitter. My current perspective is that a bunch of idiots are loudly shouting the shortest/most successful piece of mimetic garbage has currently evolved and the day I see something useful arise out of that morass of RNA-analogue I’ll be amazed but until then I wish it would stop taking attention away from larger more nuanced conversations which are more than a couple hundred base pairs (or tokens) long that we need to be having in order to navigate our current waters
Post reply on HN