Mark DiMarco: User Interface Algorithms [JSConf2014]

Channel:JSConf · Length:27:42 · Published:2014-06-11 · Views:52508

Watch on YouTube

Summary

A JSConf 2014 talk visually breaking down algorithms behind everyday UI patterns, such as dropdown menus that vanish when the mouse drifts and picking the nearest target to the cursor. It shows how these are implemented in JavaScript.

Why HN recommends it

HN links it whenever menu hover problems or nearest-to-pointer selection come up, and as proof algorithms matter in front-end work.

Algorithms do play an important role as you can see in this great presentation — HN, 2015

Web development · Algorithms & data structures · UX & UI design

Subtitles (excerpt)

[Music] [Music] [Music] hello everybody uh so like Alex said uh we work together at bizar voice I've been at bizar voice for four years now and that's been long enough to see a sort of transformation and that is four years ago we required a computer science degree to get a job in the R&D Department uh that is no longer a requirement we sort of grown up and so has the frontend engineering community um and it's no longer um even necessary I think even have a degree I believe we've hired people without um degrees let alone computer science degrees I'd say that right now about half of my friends and colleagues they have um computer science degrees and half don't so when I introduced my talk title uh UI algorithms I received a lot of questions um mainly from two camps of people there were the computer science background people who had the algorithm part down but really weren't sure what I meant by the UI portion of it and then there were the non-computer science back end who had the U the UI part down um just not so much um what an algorithm was so today what I'm doing um what I'm planning to do is help sort of blend these two camps and show you how we can achieve beautiful things in user interface land um algorithmically so we'll be diving into

On Hacker News

I think you make an excellent observation that FE is a system engineering challenge. Algorithms do play an important role as you can see in this great presentation by Marc de Marco ( [VIDEO] ) However I think it's fair to say most FE engineers apply existing solutions and the system design is a bigger part of their role. I differentiate between UI Engineering and Front-End Engineering. The former… — jsteenkamp, 2015-07
Great work! It might be cool if you could use voronoi diagrams to select the closest path to the mouse's position like the NYT did [0] because without really zooming in, the lines on some terrains appear to be very thin which makes hovering over a specific one a little harder. There's also a great talk that discusses this from JSconf2014 [1] [0] [LINK] [1] [VIDEO] — cipher0, 2014-12
Mark DiMarco gave a talk at JSConf 2014 called User Interface Algorithms which touches upon this [VIDEO] relevant section starts at 4:13 rest of the talk is good as well — dkannan, 2014-08
Am I correct thinking you are talking about this bug? [LINK] If so, then yes they are aware of it and treating it as critical. Edit: Reading into this bug is so cool. This video was linked from it, fascinating stuff: [VIDEO] — scrollaway, 2014-07
The original implementation at bloomberg.com is really well-executed, even solving the famous problem that when you accidentally hover another menu item while moving the cursor to the right, you might activate the adjacent menu item. [1] It took VLC ages to get rid of this issue, but it is solved as of VLC 3.0.3 (relevant Qt bug: [2]). [1] [VIDEO] [2] [LINK] — currysausage, 2018-06

Related videos