Live data from Hacker News

Svelte 5 Released

npmjs.com

171–180 of 254 posts

Re: Svelte 5 Released

#171

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

It's "cybernetically enhanced"!

Re: Svelte 5 Released

#172

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

> vanilla HTML/CSS/JS ...but that's what Svelte is not . The techniques you adopt won't transfer over to vanilla HTML/CSS/JS without the magic Svelte compiler. These habits will become crutch when Svelte inevitably goes the way of every Javascript frontend framework. > something complex like React React is not that complex, certainly not more so than Svelte. It's hard to wrap your head around some behaviors, but at t…

It's a bloated, unnecessarily overcomplicated piece of trash.

Re: Svelte 5 Released

#174

I'm curious what users of Svelte think about https://qwik.dev , have many of you been tempted by it? There are a lot of similarities and both are great at keeping file sizes down with a great DX.

I'm not a front end developer; so what I think about this might not be relevant to someone who works on front end every day. To me qwik looks like many other JS frameworks as far as the developer experience goes - it mixes up the HTML output into JS functions.

I really like the way that Svelte has a single file that encapsulates the HTML, CSS and JS for a page and it does so as three seperate chunks of the svelte file. This means I just need to look at say blogPost.svelte to see everything I need and I don't need to think about namespaceing or BEM or anything else for the CSS.

Its this way of working with Svelte that I really like and rarely see from other frameworks. I find astro to be good for this too.

Re: Svelte 5 Released

#175

Earlier quoted context omitted.

> Do they have a batteries included bootstrap with social auth? Nope, but it does have routing!

Actually, with the new Svelte CLI you get auth “built in” https://github.com/sveltejs/cli

What do you mean? This doesn't seem to say what it does, and the documentation link is broken. I can't find anything related by searching either.

Re: Svelte 5 Released

#176
post #108

Earlier quoted context omitted.

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

This kind of feels like an accidental release, would not expect one of the big frameworks to drop a new major with so little doc around it?!

Re: Svelte 5 Released

#177

Earlier quoted context omitted.

This is more or less where I’ve landed lately. There are some things I really like in Svelte and Solid but not enough to overcome the massive ecosystem advantage React has.

I never understood the ecosystem argument as applied to Svelte. Vanilla js libraries integrate with it pretty much perfectly, meaning you don't need a Svelte port of a given library. The ecosystem is effectively huge.

There aren't very many good modern, maintained vanilla js libraries. But for just about anything I need in React I can find something polished and well supported that just works.

Re: Svelte 5 Released

#178

Earlier quoted context omitted.

> vanilla HTML/CSS/JS ...but that's what Svelte is not . The techniques you adopt won't transfer over to vanilla HTML/CSS/JS without the magic Svelte compiler. These habits will become crutch when Svelte inevitably goes the way of every Javascript frontend framework. > something complex like React React is not that complex, certainly not more so than Svelte. It's hard to wrap your head around some behaviors, but at t…

It's a bloated, unnecessarily overcomplicated piece of trash.

That the whole industry embraced. Not bad for a piece of trash.

Re: Svelte 5 Released

#179
post #130

Earlier quoted context omitted.

I can’t speak for the majority, but for my team it’s because it’s not worth the distraction. We’ve got years of experience and tooling and “tradition” with one approach. Why do we want a second? It’s also just not an interesting issue. In my experience, the actual coding (and later maintenance) of a web application is the least challenging, least interesting part of the project. At that stage, all the interesting pro…

From users' point of view, they only care about the performance really Some e-commerce apps use React in WebView on Android and the apps will become unresponsive after visiting several product pages (more than 10 probably). They have to be force closed and opened to be used again

This has the essential bits of one of the most common critiques of React, its claimed slowness.

As a seasoned React dev of 10 years (aka a heavily biased person) I would claim 99% of this issue is better explained by: - React is the most popular choice => used in all kinds of places by all kinds of people - with varying skill - under all kinds of business pressure to deliver features => a lot of slow apps in React

I'm not saying a case for specific areas where React is slow can not be made, these anecdotes just don't do it for me.

We do have the synthetic framework benchmark, where React is indeed one of the slower candidates. I have yet to build an app with functionality akin to adding 10s of millions of rows, so it has not been an instructive decision driver for technology choice. The project I have been working on (also in Vue, Svelte, SwiftUI) had their bottlenecks in other places.

The non-synthetic argument in favor of React passing the performance test is billions of people using FB, Insta, Netflix, MS Office (to name some of the big React apps), about which I have not much in terms of complaints.\ This is usually where the second big React critique kicks in: it being a Fortune-500 framework. That has not been my non-fortune-ate experience.

I think a residual argument can still survive this: I/my org has not been able to write performant React. I'd be curious to read someone go into the details of where it broke down and how switching view layers solved for that specific situation (I hope that does not read cynical, I'd really be curious).

Re: Svelte 5 Released

#180
post #176
post #108

Earlier quoted context omitted.

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

This kind of feels like an accidental release, would not expect one of the big frameworks to drop a new major with so little doc around it?!

It's because they wanted to release it live during Svelte Summit https://www.sveltesummit.com/2024/fall
Post reply on HN