3 ms·
Now if only we had an analogous borrow checker in Vue and Svelte so that we don't hang ourselves with 2-way binding. That might a good research project, actuall
by satvikpendem 3y ago
Now if only we had an analogous borrow checker in Vue and Svelte so that we don't hang ourselves with 2-way binding. That might a good research project, actually.
- jauntywundrkind 3y agoReact & redux both come standard with tools to dynamically observe behavior. A flurry of updates is easy to pin down & fix. Static analysis seems like a nice to have. All in all I class this category of concern as very far down the list of concerns, one way or two way. Yes bad things are possible. But the martial attitude that oh no people will do it wrong this tech is horrible is, in my view, actively harmful. 99.99999% of times it goes great. We don't need to make coding environments were bad things are impossible.
- satvikpendem 3y ago> 99.99999% of times it goes great. I'll disagree with you on that. I've seen and used enough 2-way binding in various projects to know that even the best of devs can create tangles of effects everywhere. At some point, you gotta blame the tool for having footguns, which is why Rust was created over C and C++, to solve such footguns. In the same vein, something like that should be made for frontend frameworks too.
- ttfkam 3y agoBut have you used 2-way binding with a more modern framework? Or are you still hanging on to your experience with a defunct framework like Knockout from over a decade ago? And don't get me started on React's "put all the logic you want in our templating language that doesn't even target HTML5" elephant-footgun. Oh! Sorry! Forgot that React's footguns are aKeats elegant and reasonable while everything else's footguns are dealbreakers.
- RussianCow 3y ago> And don't get me started on React's "put all the logic you want in our templating language that doesn't even target HTML5" elephant-footgun. Sorry, but how is JSX a footgun? I have a lot of issues with React, but JSX doesn't even come close to making the list.
- ttfkam 3y agoYou obviously keep the amount of JS logic to a minimum in your templates. I have encountered many React codebases that did not do this.