Or am I missing something important?
Svelte 5: Runes
41–50 of 404 posts
Re: Svelte 5: Runes
#42Re: Svelte 5: Runes
#43Or have I missed something important?
Re: Svelte 5: Runes
#44React Hooks has its problems, but it got so many things right from the start - code written in 2018, when hooks first came out, still works today. No need to rewrite everything when a new major release comes out. That said, svelte5 does solve a lot of problems that stop me from trying it.
> code written in 2018, when hooks first came out, still works today Does not Svelte from 2018 works today?
They got the DX right from the start, that other libraries are still trying to emulate.
Re: Svelte 5: Runes
#45I’m not particularly comfortable with some of the nature of the change. Runes are magic compiler symbols, but they look even more like just normal code than was the case before. Previously, Svelte’s reactivity model was very easy to understand, including its limitations, because it was the result of very simple analysis—you can cover the rules in a few minutes without difficulty. It included some things that were obv…
Implementation-wise, this is vastly simpler than Svelte 4, because everything is explicit.
One thing we didn't really show today is how this works in your editor in practice — for example, TypeScript thinks `$state` and `$derived` are just the identity function. It makes sense when you use it, but I appreciate that I'm basically asking you to just trust me on that!
> Previously, Svelte’s reactivity model was very easy to understand, including its limitations, because it was the result of very simple analysis
I totally understand what you're saying. But in fact the analysis is _anything but_ simple — in places it's frighteningly complicated, to the point that even I sometimes don't understand what's going on! And that's part of the problem — because Svelte 4 is more implicit, you can't really know what's happening in a lot of cases, you just have to hope that the compiler knows what it's doing.
Re: Svelte 5: Runes
#46Isn’t this just qwik? Or have I missed something important?
Re: Svelte 5: Runes
#47Shared-everything does not scale. It ends in whack-a-mole and an escalating blame game about whether team members are fit to work on the project. It’s bunk. It’s deflecting from the real problem which was dereliction of duty by the “architects” who took a laissez-faire stance on state management instead of providing structure. Worked on a couple of those. Never again.
Practically the whole point of encapsulation is gated access to data, putting constraints on sharing, compressing the possible state space of the system closer to the desired state space.
Re: Svelte 5: Runes
#48Earlier quoted context omitted.
I'm not going to miss $, I've found it to be a weirdly documented nightmare...
I originally created https://neovimcraft.com in Svelte to learn how it works. I found `$:` to be extremely confusing, full of weird quirks, and completely turned me off to using svelte for anything more than basic sites. Runes seem like a clear improvement, but brings Svelte a step closer to React -- which hurts its appeal to me. The difference between `let counter = $state(0)` and `const [counter, setCounter] = useS…
> The magic of Svelte isn't `let count = 0`, it's `count += 1`
That part hasn't changed!
Re: Svelte 5: Runes
#49Re: Svelte 5: Runes
#50Isn’t this just Qwik? Or am I missing something important?