Nobody ever got fired for using callbacks. But what are some better ways of handling user input?
One idea is *interactors* — see "A New Model for Handling User Input" by @bradamyers: cs.cmu.edu/~amulet/papers….
One idea is *interactors* — see "A New Model for Handling User Input" by @bradamyers: cs.cmu.edu/~amulet/papers….
Another one I like is "Polyphony: Programming Interfaces and Interactions with the Entity-Component-System Model": hal.inria.fr/hal-02147180/d…
Of course there are also approaches based on state machines / statecharts. Steve Oney's "Interstate" is a great recent example: from.so/Oney_et_al-UIS…
I also love the idea of treating event handling as a parsing problem. I first saw this in "Proton: Multitouch Gestures as Regular Expressions" at CHI 2012: graphics.pixar.com/library/Proton…
https://twitter.com/dubroy/status/1333357859749453824 ∙ Archived on 2025-03-28.