Live data from Hacker News

Svelte 5 Released

npmjs.com

71–80 of 254 posts

Re: Svelte 5 Released

#71

Svelte 5 has been very nice to work with over the past few months. Yes, runes require you to think more carefully about lifecycles and updates. And you may end up writing a little more code initially than with svelte 4. But it serves you better in the long run with complex apps. I found a process for gradually turning a simple app into a more complex one that works for me. I iteratively move $state() runes out of .sv…

MVC is all the rage these days

Re: Svelte 5 Released

#72
post #59

Someone on Twitter claimed that Svelte 5's runes are basically a nicer (custom) syntax for Solid.js -- is that true? I find the way Solid.js decouples signals from components to be a huge step up from React's state management in terms of abstraction capability and composability.

Hm i haven't checked the svelte 5 runes yet but last time I checked i also felt that solids reactivity concept is just beyond what svelte offers. If i wasn't that much in love with solidjs i'd probably pick svelte though. But i already see it coming that i won't be able to let it go until i checked the new runes now...

Re: Svelte 5 Released

#73
Why should someone use Svelte 5 over Vue 3?

Performance might be the only reason IMO, but once Vue Vapor is release that will most likely not be an advantage.

The Vue3 and Svelte 5 API are almost the exact same, but Vue can be used in TS/JS and Svelte 5 can't.

I do think SvelteKit is better than Nuxt by a lot. Maybe that's a big advantage.

Re: Svelte 5 Released

#74
post #27

Earlier quoted context omitted.

What's the goal of disabling SSR though? I get that hydrations value is mainly in SEO and a tiny improvement in initial draw speed, but why would you want it disabled, specifically? It's pretty much what you already wrote though. https://kit.svelte.dev/docs/single-page-apps

SSR always yields surprises! If you don't _need_ it, don't enable it; everything is simpler.

What!? Why would that be?

Re: Svelte 5 Released

#75

Why should someone use Svelte 5 over Vue 3? Performance might be the only reason IMO, but once Vue Vapor is release that will most likely not be an advantage. The Vue3 and Svelte 5 API are almost the exact same, but Vue can be used in TS/JS and Svelte 5 can't. I do think SvelteKit is better than Nuxt by a lot. Maybe that's a big advantage.

One of the speakers at the recent ViteConf (maybe Antfu) said something interesting: most of the modern libs now are interchangeable. It comes down to preferred syntax and ecosystem.

Re: Svelte 5 Released

#76

Svelte 5 has been very nice to work with over the past few months. Yes, runes require you to think more carefully about lifecycles and updates. And you may end up writing a little more code initially than with svelte 4. But it serves you better in the long run with complex apps. I found a process for gradually turning a simple app into a more complex one that works for me. I iteratively move $state() runes out of .sv…

Just my personal opinion: I love svelte for small projects but the whole runes rewrite just feels so much less ergonomic. A step in the direction away from the simplicity that drew me to svelte in the first place.

That said, there is backwards compatibility with the older syntax, so this isn’t a dealbreaker, and the team does a good job of explaining the reasons behind their selected design patterns.

(Interestingly, I’ve felt the opposite with react lately - they’ve been making the dx simpler).

Re: Svelte 5 Released

#77
post #58

Svelte 5 has been very nice to work with over the past few months. Yes, runes require you to think more carefully about lifecycles and updates. And you may end up writing a little more code initially than with svelte 4. But it serves you better in the long run with complex apps. I found a process for gradually turning a simple app into a more complex one that works for me. I iteratively move $state() runes out of .sv…

Do you know of any large OSS software built with Svelte? I'd like to see how it turns out in the long run, because I'm reticent of all frontend frameworks nowadays through what I perceive as gateways to uncontrollable accidental complexity and abstractions.

Does https://github.com/dbgate/dbgate count?

Re: Svelte 5 Released

#78
post #49

Earlier quoted context omitted.

Besides a mathematical inclination, an exceptionally good mastery of one's native tongue is the most vital asset of a competent programmer. -- Edsger W.Dijkstra https://www.cs.utexas.edu/~EWD/transcriptions/EWD04xx/EWD498...

If your native tongue isn't English, I don't think that's necessarily true any more.

Expression, comprehension, and mastery of the form are still independent of English, it was never about direct utility or anything.

Re: Svelte 5 Released

#79

Why should someone use Svelte 5 over Vue 3? Performance might be the only reason IMO, but once Vue Vapor is release that will most likely not be an advantage. The Vue3 and Svelte 5 API are almost the exact same, but Vue can be used in TS/JS and Svelte 5 can't. I do think SvelteKit is better than Nuxt by a lot. Maybe that's a big advantage.

One of the speakers at the recent ViteConf (maybe Antfu) said something interesting: most of the modern libs now are interchangeable. It comes down to preferred syntax and ecosystem.

No they are not. They would if they were natively webcomponents based but none are

Re: Svelte 5 Released

#80
Svelte. Interesting framework, I dipped into React then tried Svelte and loved it initially - very noob friendly.

I really liked having HTML/CSS/Js all in one place.

But then tailwind became popular, and I realised I could get this same UX with React + Tailwind.

Now I prefer React + Tailwind to Svelte.

No Svelte jobs, weird compiler magic. Hated SvelteKit

Post reply on HN