News for hackers. Stuff that matters.
Re:Svelte 4 by nailer on Thursday June 22, 2023 @05:39PM (#36439427)
> It's really quite simple and elegant. Svelte's model would likely be more complex tbh.

Prop drilling in Svelte is exactly the same complexity.

useState() wouldn’t exist because Svelte doesn’t need a virtual DOM and the compiler takes care of reactivity (per the famous React vs Svelte meme).

Stores are way, way simpler than redux reflux whatever else.

Re:Svelte 4 by nightski on Thursday June 22, 2023 @05:45PM (#36439504)
I prefer an explicit function call over compiler voodoo magic, especially when it comes to reactivity (of which can have performance implications). Any solution where a compiler is changing the semantics of my code on the fly is just a hard pass.
Re:Svelte 4 by nailer on Thursday June 22, 2023 @05:53PM (#36439590)
Shrug. You’re comparing compiler voodoo with vdom voodoo.