Live data from Hacker News

Svelte 5 Released

npmjs.com

51–60 of 254 posts

Re: Svelte 5 Released

#52
post #34

Do they still operate with very little backwards compatibility policy? They killed the sapper project and replaced it with sveltekit. Is sveltekit still alive?

Sapper was a looong time ago in terms of web dev chronology. I even forgot.

Why makes you think SvelteKit could be dead? What a weird a pessimistic phrasing.

Re: Svelte 5 Released

#53
An interesting datapoint:

I made my first website a few months ago (I'm an ML engineer). I tried in both Svelte and React.

I used Sonnet as a copilot the whole time and expected Svelte to be more difficult because there are orders of magnitude less training data on it.

To the contrary! The LLM tied itself in knots very quickly with React but mostly did ok with Svelte/Sveltekit. Also, the Svelte stuff it makes is usually snappier. However it does have a wider range of UI widgets it can grasp with React.

It seems that my opinion that React is horrendously and hideously overcomplicated is at least somewhat objective! Svelte has been quite pleasant.

To any devs out there that have to work with React, you have my sympathies. Compared to Svelte it's just flaming hot putrid garbage.

Re: Svelte 5 Released

#54

An interesting datapoint: I made my first website a few months ago (I'm an ML engineer). I tried in both Svelte and React. I used Sonnet as a copilot the whole time and expected Svelte to be more difficult because there are orders of magnitude less training data on it. To the contrary! The LLM tied itself in knots very quickly with React but mostly did ok with Svelte/Sveltekit. Also, the Svelte stuff it makes is usua…

Strong words, I actually enjoy it quite a lot. For trivial stuff I can see how Svelte can seem simpler. But effects, JSX, and the React model tend to be incredible at composition at scale. And the close to the metal to JS nature is something I strongly prefer.

Now granted I’d never use a reducer, and imo a decent state library is the biggest win if you are using React.

Re: Svelte 5 Released

#57
post #43

Is there are Svelte 5 Runes tutorial for those who are familiar with previous Svelte and Sveltekit?

Svelte is getting a new website soon too. It's in preview mode here: https://svelte-omnisite.vercel.app/. Tutorial is not completely converted yet.

(edit) Sorry, for previous users the preview site might be better: https://svelte-5-preview.vercel.app/docs/introduction

Re: Svelte 5 Released

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

Re: Svelte 5 Released

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

Re: Svelte 5 Released

#60
post #38

Earlier quoted context omitted.

Definitely try Astro for static sites, I'm loving it!

Do you think Astro would be good for a site with tons of data (graphs, tables etc)? Can it be used with db, user logins?

Yes, yes and yes. It kind of depends what your project uses under the hood and what it depends on, but Astro is quite flexible with the frameworks it supports and for many things there’s a first-class integration that lets you just install support for certain libraries and frameworks (for example Tailwind, React, Partytown, certain CMSes) with one command.

For DB and user logins, you might have to run in SSR mode to be able to do server-side stuff, but you can certainly build API routes, server middleware and interact with cookies for user token stuff.

Post reply on HN