News for hackers. Stuff that matters.
Re:Ask HN: Current best practice for drag-and-drop? by aikah on Tuesday August 19, 2014 @01:36PM (#8198668)
Use a well tested library,even if it means extra load.The reason for this is DnD apis are a nightmare that will work on 90% of the devices and browsers but not on the rest. Trust libraries that are well tested over a wide range of browsers.

> I'm about to add a dependency on jQuery and jQuery UI just to allow the use of their bulletproof Draggable and Droppable elements. Somehow that feels dirty.

What feels even more dirty is a UI that doesnt work properly across browsers.Better have a solid UI rather than thinking using jQuery == DIRTY.

Re:Ask HN: Current best practice for drag-and-drop? by couchand on Tuesday August 19, 2014 @03:47PM (#8199384)
As I said, we don't need to support anything other than Firefox and Chrome. It's an internal app, we know everyone's on modern versions.

And as I mentioned in another comment, jQuery itself isn't dirty, but adding a dependency on a swiss army knife library for just one feature does seem dirty.