Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That looks really nice!

The interface designer in me immediately wants to scream "Fitt's Law!"¹ and move the header with run/select/save from above the output to between the output and the code blocks though.

EDIT: Actually, Fitt's Law tells us not to do that. But scrolling to find those buttons is also wrong. Why not make it a sticky header?

¹ https://www.interaction-design.org/literature/topics/fitts-l...



I remember getting into a discussion on Reddit where someone claimed tagging on to a bus was faster by pressing the card right up against the card reader. Always felt like an abuse / misinterpretation of fits law to me.


If I understand your sentence correctly it's a bit of an edge-case (pun not intended).

When designing interfaces for a screen, the edges (assuming that moving the mouse to the edge doesn't cause scrolling) can be considered "infinitely" wide or tall for the purpose of Fitt's law. This is a really old insight:

https://www.joelonsoftware.com/2000/04/27/designing-for-peop...

Pressing your card against the card reader is the same idea: you don't have to be precise with your motor functions, because as soon as you hit the card reader you know you're close enough. So people can be faster with this approach.

(with that in mind, my earlier solution is actually wrong: the buttons shouldn't be put between the output and the code, they should be made sticky)


Unrelated question:- how are ui/ux courses from interaction-design.org?


I wouldn't know, I never took them. However, looking at the "people behind" page¹ I can say that they have an impressive list of well-known experts in the field there. So at the very least they have that going for them.

¹ https://www.interaction-design.org/about/people-behind




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: