Live data from Hacker News

Svelte is the most beautiful web framework I've seen

thefutureoftheweb.com

21–30 of 210 posts

Re: Svelte is the most beautiful web framework I've seen

#21

I get a 500 error on the second page of the "getting started", so... nope, not the most beautiful I've seen.

Yep, having some problems this week with Google Cloud Run (which hosts the site). I guess that's what happens when you use a platform that's still in beta...

Re: Svelte is the most beautiful web framework I've seen

#22
post #9

Svelte is so great... so were react, angular, ember, meteor, and vue. I'm sorry, but I've got trouble seeing how having one more framework to learn is going to help any thing. There's a webcomic of some sort to which I can't find the link, which talks about this. Some one is sick of the bloat of x framework/tool/whatever, and decides to build it better. He works hard, and finally version 1.0 is released to dramatic m…

This is the webcomic in question: https://xkcd.com/927/

Re: Svelte is the most beautiful web framework I've seen

#23
post #9

Svelte is so great... so were react, angular, ember, meteor, and vue. I'm sorry, but I've got trouble seeing how having one more framework to learn is going to help any thing. There's a webcomic of some sort to which I can't find the link, which talks about this. Some one is sick of the bloat of x framework/tool/whatever, and decides to build it better. He works hard, and finally version 1.0 is released to dramatic m…

> I've got trouble seeing how having one more framework to learn is going to help any thing.

That's a good question.

- Svelte makes far smaller files than React

- Svelte is faster to execute than React

- Svelte is easier to learn

Re: Svelte is the most beautiful web framework I've seen

#24
post #9

Svelte is so great... so were react, angular, ember, meteor, and vue. I'm sorry, but I've got trouble seeing how having one more framework to learn is going to help any thing. There's a webcomic of some sort to which I can't find the link, which talks about this. Some one is sick of the bloat of x framework/tool/whatever, and decides to build it better. He works hard, and finally version 1.0 is released to dramatic m…

We should probably all just give up, eh?

Re: Svelte is the most beautiful web framework I've seen

#25
post #17

Earlier quoted context omitted.

It's just more options. Svelte is new in that it actually compiles the components and logic into plain low-level JS code instead of having a "runtime". It's something most of these frameworks should have already done by now considering they need build steps but maybe it needed a new project to make it happen. It's a brand new release though so it'll take more time for uptake, and by people who think the opposite of w…

You're right that it's more options, but it's also one more box a "competent JS dev" is expected to tick. One of the best and worst things about the JS ecosystem is the plethora of choices available. On compilation, nope. Riot.js did it first, and this is literally the entire premise of typescript (I know typescript is a different language, but I see little difference here as it can mix with JS between writing only s…

> But I also don't see why they couldn't have submitted a PR to react/angular/ember/meteor/vue.

I see this sentiment a lot in open source. When I made Rollup — which is now used to build the most popular libraries in the JavaScript ecosystem, including some you just mentioned! — people asked why I didn't just submit a PR to webpack?

I understand why people ask that. But it just doesn't work like that. Very often, to take a step forward, you can't simply make incremental changes to an existing project — you need to create new foundations altogether. When Svelte 1 came out in 2016 I was already responsible for a different framework (Ractive), and it wasn't possible to make the changes I wanted there. If you can't do what you need to do by making a PR to your own project, then imagining that you can do it in a PR to someone else's is a fantasy.

And it's not simply about adding some extra compiler smarts to existing frameworks. The whole point of Svelte 3 is to rethink the developer experience. It has radical opinions about how we should be building apps, which I've written about in https://svelte.dev/blog/svelte-3-rethinking-reactivity and https://svelte.dev/blog/write-less-code.

Re: Svelte is the most beautiful web framework I've seen

#26
post #9

Svelte is so great... so were react, angular, ember, meteor, and vue. I'm sorry, but I've got trouble seeing how having one more framework to learn is going to help any thing. There's a webcomic of some sort to which I can't find the link, which talks about this. Some one is sick of the bloat of x framework/tool/whatever, and decides to build it better. He works hard, and finally version 1.0 is released to dramatic m…

It's just more options. Svelte is new in that it actually compiles the components and logic into plain low-level JS code instead of having a "runtime". It's something most of these frameworks should have already done by now considering they need build steps but maybe it needed a new project to make it happen. It's a brand new release though so it'll take more time for uptake, and by people who think the opposite of w…

[deleted]

Re: Svelte is the most beautiful web framework I've seen

#27
post #5

Earlier quoted context omitted.

Using JS ternaries for conditional rendering doesn't feel natural to me at all

You don't have to, you can create a simple 1 line component to turn it into a declarative style. It's the benefit of having a full language instead of a template DSL for rendering. Declarative syntax is easy inside of an imperative flow, doing the opposite tends to lead to problems though.

You don't need a one line component, you can just declare an extra variable before your main JSX.

A redundant extra component is bad for performance.

Re: Svelte is the most beautiful web framework I've seen

#28
I have a table of 100 rows x 10 columns mostly of numbers which change 10 times a second (think trading).

The source data sits in an array of objects.

On each update, I need to update the table cells with the latest values from the source array. The content of each cell can change, possibly it's css class too (from red it become blue for example).

I'm using Vue/Bootstrap-Vue table at the moment, but it's quite slow.

Is Svelte suitable for this? Other options to quickly update a from data in an array of objects, one object per row?

Re: Svelte is the most beautiful web framework I've seen

#29
post #8

Earlier quoted context omitted.

I get a 404

The site is hosted on Google Cloud Run, which seems to have been having some intermittent problems for the last couple of days. EDIT: some other people have had the same issue and the Cloud Run team are investigating

Looks like this issue: https://issuetracker.google.com/issues/136539678

Re: Svelte is the most beautiful web framework I've seen

#30

I have a table of 100 rows x 10 columns mostly of numbers which change 10 times a second (think trading). The source data sits in an array of objects. On each update, I need to update the table cells with the latest values from the source array. The content of each cell can change, possibly it's css class too (from red it become blue for example). I'm using Vue/Bootstrap-Vue table at the moment, but it's quite slow.…

Seems to me that you'd want to update the part of the table that's viewable.
Post reply on HN