top | item 39008523

(no title)

abhibeckert | 2 years ago

> the program is in control of the main event loop, user input is handled as part of program flow

Is that supposed to be a good thing? I don't want to write an event loop - I'll probably screw it up and introduce bugs.

> the program state is both minimal [...]

Um... The comparison of normal web programming and your proposed alternative shows an order of magnitude more code for the same result. And it's not even really the same result, I can't select text and right click to copy for example. What about complex things like varying the UX depending on the size of the screen and input method. Or accessibility features for someone who's blind or can't move their hands... those aren't optional.

> and cleanly separated.

Huh? You've got a function called "loop()" that contains all of the code. Where is the separation?

discuss

order

No comments yet.