Live data from Hacker News

Svelte 5 Released

npmjs.com

101–110 of 254 posts

Re: Svelte 5 Released

#101
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.

Gradio is built with svelte https://github.com/gradio-app/gradio

Re: Svelte 5 Released

#102

Earlier quoted context omitted.

My only problem with this is because now is more verbose, why I should use Svelte over Vue? Arguably a more stablish framework. No shadow dom and a better template directives? Maybe, not sure.

I don’t have a definite answer as I haven’t worked with Vue that much. Still, I like Svelte syntax a bit better (e.g. {#each x in xs} vs. v-for), and yeah, all the compile time reactivity stuff works out pretty well in terms of performance. The runes are still optional, I think, and you can still use the old syntax. Not sure if that will be true in Svelte 6 though!

The old syntax is considered legacy and it is recommended to upgrade. There is a migration tool to do most of it automatically for you.

Re: Svelte 5 Released

#103
I love Vue. Svelte is great! Unfortunately nothing beats react especially if one plans to develop for mobile. Despite how ugly the nuances in react are compared to those two, it’s still more mature making the other two trying to catch up and feel outdated in terms of features.

Re: Svelte 5 Released

#104
post #95
post #91

Any recommendations for component libraries for Svelte?

DaisyUI and shadcn-svelte are the big two.

shadcn-svelte is great!!

https://www.skeleton.dev/ and https://flowbite-svelte.com/ are another couple of popular ones.

There's a big list at https://www.sveltesociety.dev/packages?category=design-syste...

Re: Svelte 5 Released

#105
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.

Apple Music isn't OSS, but it's quite a large Svelte app: https://music.apple.com

Re: Svelte 5 Released

#106

I love Svelte and use it for all my personal projects and all company projects (except strictly static sites are still built with just 11ty but I hate it and want to move off it). But I'm going to wait a bit on v5 for the company, scanning all the issue headlines, it looks like there are a still a lot of unresolved edge cases: https://github.com/sveltejs/svelte/issues As for my latest personal project, upgrading righ…

What do you hate about 11ty?

Re: Svelte 5 Released

#107
post #14

Exciting, I love Svelte! Does anybody have experience with both Vue and Svelte? It's been a while since I used Vue but it seems like both frameworks have converged quite a bit over the years. With this release I'm particularly curious now: why would somebody pick one over the other?

There is no way around trying yourself. Stop wasting time asking people for their opinions about frameworks and start building your own insights from first hand experience.

Oh, okay. Thanks.

Re: Svelte 5 Released

#108

From the changlog on Github: The new version brings: - even better performance, - a more granular reactivity system with runes, - more expressive template syntax with snippets and event attributes, - native TypeScript support, - and backwards compatibility with the previous syntax!

Here’s the release on GitHub: https://github.com/sveltejs/svelte/releases/tag/svelte%405.0... Probably a better link for this post?

Or even https://svelte-omnisite.vercel.app/ which is linked from there. It is the v5 Svelte homepage, currently svelte.dev is v4

Edit: I'm not so sure that's up to date actually. Lots of "Coming soon" sections

Re: Svelte 5 Released

#109

I can wholeheartedly recommend Svelte. As someone who can only do vanilla HTML/CSS/JS, it lets me build projects quickly and efficiently without having to learn something complex like React. Case in point this silly side project made in Svelte over a weekend: https://meoweler.com

> As someone who can only do vanilla HTML/CSS/JS

This is also why I chose SvelteKit as my first framework. I was actually pretty fluent in vanilla since my first real web project was a full stack chrome extension, but when it came time to choose a framework for my first true web app, I chose Svelte because it was the only framework I could immediately understand.

Re: Svelte 5 Released

#110
post #7

We use Svelte 4.0 in production and it performs beautifully; it rarely is the cause of our frustrations. Excited to try the new version. Lately I’ve also been wondering about the relationship and correlation between software writing skills and writing skills.

I had the same thought recently: https://bower.sh/on-writing
Post reply on HN