4 ms·
> Our “impedance mismatch” is not between Databases and Objects. It is between the React programming model and the imperative setInterval API. I haven't used i
by saagarjha 8y ago
> Our “impedance mismatch” is not between Databases and Objects. It is between the React programming model and the imperative setInterval API.
I haven't used it much, but React gives me the feeling that it's trying to come up with hacks to shoehorn imperative UI (which seemingly can't go away) into the "the state is the UI" model. Anything with timers, or animations, or other things that reach across multiple renders seems to be poke through the nice React model because it by definition requires dropping the abstraction of the UI being defined by the state because the change is more "incremental" than transitioning to a new value.
(As an aside, I love the dark mode support on your website!)
- sudhirj 8y ago> React gives me the feeling that it's trying to come up with hacks to shoehorn imperative UI React IS a hack to shoehorn declarative UI into an imperative language and DOM system. All further progress in the field is going to be a collection of hacks. ReasonML, Elm etc are clear ways forward that attempt to start from a clean slate, but you're trying to do declarative UI on JS+DOM, everything is going to be a hack. React is just the nicest currently available hack.
- jakelazaroff 8y agoBy this logic, though, everything declarative is a hack. Computers are imperative. At some point everything becomes an instruction; dig deep enough and all declarative code calls imperative code.
- deleted 8y ago[deleted]