TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Three ways of handling user input

58 pointsby joesavageover 3 years ago

2 comments

kevmo314over 3 years ago
Does anyone else find approach #3 to be wildly unintuitive? Like how does an infinite loop terminate? There&#x27;s a lot of magic going on.<p>I like approach #1 the best. Sure, there are some bugs, but a state diagram would help make it clearer instead of introducing magic.
评论 #29836260 未加载
评论 #29840367 未加载
评论 #29836948 未加载
评论 #29836177 未加载
_pmf_over 3 years ago
Using Statecharts or FRP is completely orthogonal to the choice of polling vs. event driven.