The fact this is already outdated by more recent Svelte releases which changed things drastically is exactly my problem with the modern JS space. So fast moving and most of it is still doing JQuery like reactivity. I am probably just not smart enough to get it, but it reminds me of the constant seemingly pointless rewrites I see in companies. Figure out what works and keep it, is that so hard? Why can other languages…
ReactJS is pretty consistent since last 5 years and probably won't be changing for next 5 years.
Svelte’s characteristics that likely contribute most to improved performance
41–50 of 205 posts
Re: Svelte’s characteristics that likely contribute most to improved performance
#42I'm no longer a fan of using any front-end libraries at all en lieu of just using standard event listeners and web components, but in their defense, by the time that you're creating or updating that many elements, most developers are backing out of the framework anyway. It's the primary reason virtual table libraries exist.
> I'm no longer a fan of using any front-end libraries at all en lieu of just using standard event listeners and web components You can get away without using frontend frameworks for small and simple projects. However, for large and complex projects you will struggle. For example, try building Google Docs without a frontend library. You will struggle even if you have an army of developers at your disposal. In fact, w…
Except that Google Docs is not built with a framework. At least not a generic one and being generic is kind of the hallmark of framework.
Re: Svelte’s characteristics that likely contribute most to improved performance
#43I'm so sick of these performance benchmarks. I understand it's easy to spin them up to show that one framework is faster than another, but in general all these frameworks are fast enough for 99.9% of use cases. Where frameworks lack today, in my opinion, are in providing the right tools further optimize the UX of interacting with web sites. It's a constant struggle of loading spinners and flicker and loss of scroll p…
Re: Svelte’s characteristics that likely contribute most to improved performance
#44I'm no longer a fan of using any front-end libraries at all en lieu of just using standard event listeners and web components, but in their defense, by the time that you're creating or updating that many elements, most developers are backing out of the framework anyway. It's the primary reason virtual table libraries exist.
> I'm no longer a fan of using any front-end libraries at all en lieu of just using standard event listeners and web components You can get away without using frontend frameworks for small and simple projects. However, for large and complex projects you will struggle. For example, try building Google Docs without a frontend library. You will struggle even if you have an army of developers at your disposal. In fact, w…
Most software doesn't require large teams, ones with large enough structure to utilize cross-functional teams are siloed enough that it also still doesn't matter and the most standardization that's effectively useful is the company's specific UI library for their corporate branding.
At that point you're really using the company's library, and less of the underlying framework anyway. Uber, AAA, American Express, etc. All of them do basically this.
Re: Svelte’s characteristics that likely contribute most to improved performance
#45Did Svelte gain the adoption like React and Vue ? I am not sure how mature the ecosystem is. I am always wary of using things in production that have not gained significant adoption.
Re: Svelte’s characteristics that likely contribute most to improved performance
#46It's worth pointing out this article is discussing Svelte 3.x when the current version is Svelte 5.x and has some significant departures from previous versions (i.e. the introduction of runes) I haven't finished reading the article yet. I am a fan of Svelte, though, and have switched to using it by default for new projects - coming from a React background.
Things change so fast in web dev. Is it so hard to find a pattern that works and stick to it? I think the constant rewrites are honestly _worse_ for dev experience and security. Nobody knows whats standard and docs become outdated so quick a lot of frameworks just have outdated docs or multiple versions that contradict eachother.
Also, I'm not a huge fan of synthetic benchmarks like in the article such as "render a static list of 25000 elements". This never happens in the real world, you would use some implementation of a virtual list instead.
Re: Svelte’s characteristics that likely contribute most to improved performance
#47Did Svelte gain the adoption like React and Vue ? I am not sure how mature the ecosystem is. I am always wary of using things in production that have not gained significant adoption.
Long answer: https://2024.stateofjs.com/en-US/libraries/#tools_arrows
It shares a space with React and Vue in terms of positive opinions. Opinions are worse since v5 due to the perceived increase in complexity of using the Runes system.
It is the fourth most used JS framework behind React, Vue, and Angular.
Re: Svelte’s characteristics that likely contribute most to improved performance
#48I wasn't (and still am not) the biggest fan of the new Runes syntax, but I've gotten used to it, and it doesn't really hurt my productivity or get in my way that much.
There's definitely an ecosystem gap compared to React, but there are still lots of really good components and frameworks out there. For example, there's a native Svelte version of IBM's Carbon Design[1] which I've used and found to be very high-quality.
And as for arguments that React will keep winning due to LLMs not having enough corpus to learn less-popular frameworks, I've anecdotally had good success with using LLMs to edit and generate Svelte code. There are occasionally some issues (like it generating pre-runes syntax or using deprecated stuff like stores) but it works well enough to be useful, and definitely better than I expected.
Re: Svelte’s characteristics that likely contribute most to improved performance
#49It's worth pointing out this article is discussing Svelte 3.x when the current version is Svelte 5.x and has some significant departures from previous versions (i.e. the introduction of runes) I haven't finished reading the article yet. I am a fan of Svelte, though, and have switched to using it by default for new projects - coming from a React background.
Re: Svelte’s characteristics that likely contribute most to improved performance
#50(I say this speaking from a NixOS laptop; Nix operations are invariably much faster than alternatives, like Docker, assuming you have the technical chops to get them to work)