Live data from Hacker News

Svelte 5: Runes

svelte.dev

21–30 of 404 posts

Re: Svelte 5: Runes

#21
post #4

I'll be the first to mourn the (future) loss of $: but the video clearly shows that the changes are a pretty enticing way to make your code that little bit cleaner, and solve all of the "but Redux!" style questions. Svelte for Apps. Svelte for Sites.

I'm not going to miss $, I've found it to be a weirdly documented nightmare...

Re: Svelte 5: Runes

#22
I dont use Svelte or react, im sure its lovely and solves real problems. And maybe im just getting old, but over the last 20 years all evidence I have is that "magic" is a trap. Its so strange to me to see such a high profile project leaning into it like this. Youre writing javascript, but the way you must reason about what your code is doing is so different than javascript.

Re: Svelte 5: Runes

#23
So it's a kind of type system using a kind of Hungarian notation? :Flashbacks to Win32 intensify:

I think a real type system (i.e. compiler checked, rather than relying on falibilities of human programmers) would be a better solution. If Svelte already has a compiler why not implement this as part of it?

Re: Svelte 5: Runes

#24
post #11

Perl called these sigils. They were incredibly useful and powerful, but the dev community decided that they hated them.

Apart from the superficial use of the $ sign, what else is Perl about any of this?

Re: Svelte 5: Runes

#26
post #3

Svelte slowly shapeshifting into jquery. Day after day, methodical evolution.

Apart from the superficial use of the $ sign, what else is jQuery about any of this?

Principle of charity, perhaps they're just referring to how much easier & ergonomic it's becoming over time! ;)

Re: Svelte 5: Runes

#27

"Like every other framework, we've come to the realisation that Knockout was right all along." Nope, nope. Been there, done that, with 2-way data binding and never going back.

I’m still waiting for every other framework to realize that jQuery was right all along.

But if these guys are only now reaching Knockout, I still have to wait for them to catch up to Backbone.js, I guess.

Re: Svelte 5: Runes

#28
post #3

Svelte slowly shapeshifting into jquery. Day after day, methodical evolution.

Apart from the superficial use of the $ sign, what else is jQuery about any of this?

hot takes get a lot of upvotes on Hacker News, I've even done it myself recently and it works (despite me knowing very little about the topic).

Re: Svelte 5: Runes

#29

"Like every other framework, we've come to the realisation that Knockout was right all along." Nope, nope. Been there, done that, with 2-way data binding and never going back.

I thought that quote of yours was a sarcastic overview you yourself had written but no, it's an actual quote from the article! > Like every other framework, we've come to the realisation that Knockout was right all along. > Svelte 5's reactivity is powered by signals, which are essentially what Knockout was doing in 2010. More recently, signals have been popularised by Solid and adopted by a multitude of other framew…

[deleted]

Re: Svelte 5: Runes

#30
post #4

I'll be the first to mourn the (future) loss of $: but the video clearly shows that the changes are a pretty enticing way to make your code that little bit cleaner, and solve all of the "but Redux!" style questions. Svelte for Apps. Svelte for Sites.

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] = 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.

I wrote my initial thoughts on sveltekit when I built neovimcraft: https://bower.sh/my-experience-with-svelte-kit

Post reply on HN