3 ms·
Every time I think about this problem (whether it's clicking-drag to re-order, or click-and-swap as described here) I always wonder if there's some smart "box p
by wildrhythms 5y ago
Every time I think about this problem (whether it's clicking-drag to re-order, or click-and-swap as described here) I always wonder if there's some smart "box packing" algorithm that will just distribute the elements with some "suggestions" (x,y) about where they should fit and let the algorithm place everything.
- franky47 5y agoI've used react-grid-layout for a client last month and it seems to work like that: the (x,y) coordinates are only guidelines and the layout engine will try and do its best to solve for size and position constraints. https://www.npmjs.com/package/react-grid-layout https://www.npmjs.com/package/react-grid-layout
- inopinatus 5y agoThe moment you release this you’ll get a feature request to pin items in place, and after releasing that everyone will pin everything rather than varying the constraints at their natural conceptual level, and this is how clever software degrades into crap. I’ve seen this happen with a diverse range of systems, from firewall policy to music notation to workforce management. Ensuring the algorithmic level continues to be more attractive than the explicit override remains one of the hardest problems of UX affordances. Step 1 is obtaining a deep affinity with domain-expert users, we must make it easy for the cynical to trust our algorithmic automation.
- deleted 5y ago[deleted]
- egypturnash 5y agoIs this how clever software degrades into crap, or is this how users work around "clever" software that isn't actually all that clever and constantly gets things wrong and moves stuff around just often enough to drive your spatial memory crazy?