News for hackers. Stuff that matters.
Re:Svelte 5: Runes by jauntywundrkind on Wednesday September 20, 2023 @11:17AM (#37585300)
React & 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.

Re:Svelte 5: Runes by satvikpendem on Wednesday September 20, 2023 @11:31AM (#37585476)
> 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.

Re:Svelte 5: Runes by ttfkam on Wednesday September 20, 2023 @12:32PM (#37586296)
But 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.

Re:Svelte 5: Runes by RussianCow on Wednesday September 20, 2023 @02:50PM (#37588343)
> 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.

Re:Svelte 5: Runes by ttfkam on Wednesday September 20, 2023 @03:27PM (#37588838)
You obviously keep the amount of JS logic to a minimum in your templates. I have encountered many React codebases that did not do this.