3 ms·
No good generalized solution for this it seems. The best you can do is to specialize per situation and leverage all the assumptions you can while being cautious
by chenglou 6y ago
No good generalized solution for this it seems. The best you can do is to specialize per situation and leverage all the assumptions you can while being cautious not to leverage the assumptions you can’t.
This problem contains lots of incidental complexity and it doesn’t help that folks do the opposite of the above and add a ton of accidental complexity on top. For example, for a situation with a crossfade or morphing set of 2 buttons you should:
- leverage the assumption that there are only 2, and static, buttons.
- not assume that there are only 1 button present at any time.
Some end up inclined to create some “reusable” abstraction on top and end up doing the opposite:
- generalize to handling n dynamic buttons. Without realizing that some important properties of that specific situation would have been lost.
- (usually due to the lack of experience/focus/interest on the problem) oversimplify and assume there’s only 1 button present at any time.