News for hackers. Stuff that matters.
Re:Svelte 5: Runes by bowsamic on Wednesday September 20, 2023 @10:31AM (#37584639)
I'm not going to miss $, I've found it to be a weirdly documented nightmare...
Re:Svelte 5: Runes by qudat on Wednesday September 20, 2023 @10:36AM (#37584715)
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] = useState(0)` is near its initial value -- zero.

I do love the view library competitive landscape and enjoy seeing different paradigms leveraging reactivity. I also like the compiler optimizations that Svelte is bringing to the entire ecosystem.

Re:Svelte 5: Runes by bowsamic on Wednesday September 20, 2023 @10:41AM (#37584786)
Yeah I gotta agree. No comment on runes but $: was so weird that I was immediately confused at why I would try and use svelte for anything
Re:Svelte 5: Runes by rich_harris on Wednesday September 20, 2023 @10:45AM (#37584850)
As we've taken to saying around the virtual Svelte offices:

> The magic of Svelte isn't `let count = 0`, it's `count += 1`

That part hasn't changed!