by azemetre · 3y ago · 0 comments
I wonder if these types of messaging/marketing hurt adoption? If you're looking for something stable and you see large version changes, why would you adopt it?
You'd think with all the react misfires over the last year (telling the community common of useEffect is wrong, server components landing flat, poor performance) that the community would be open for adopting something new like solid, svelte, vue, or hell even htmx; but react still climbs in usage rates.
If you're working on an average crud app and just need something to handle an SPA why would you choose svelte? In less than a year there's breaking changes, now add another potential one. I want to say this hurts optics more than it helps, because I know my coworkers at boring enterprise company will just say it's unstable. It doesn't matter how performant it is, it doesn't matter how similar to react/vanillaJS it is; all they see is a library with massive changes that breaks compatibility and fractures what little 3rd party libraries there are, doesn't matter if this argument is right that's the perception.
So we decide to do another project in react and the world continues turning.
I think I'm understanding why htmx is becoming popular...
A lot of panic in here about how people think this is a Angular v1 to v2 transition all over again. Svelte version updates are largely behind the scenes so there's really not much to upgrade if your app is already built in Sveltekit.
People who haven't tried Svelte/Sveltekit yet are seriously missing out. It's a breath of fresh air in today's UI landscape. The constant performance gains are the cherry on top.
People who are still considering adoption don't know enough yet to read release notes and understand what are breaking changes and what are not.
Trust is hard-earned but easily lost. Best not to use a semver number blithely as a marketing tool.
Backward compatibility is best, but if you have to break things, make it 100% clear to folks downstream. This is what Svelte 4 did. The changes were mostly esoteric and changed a couple of defaults due to experience/lessons learned, but they were breaking changes made for good reasons. Leave semver considerations out of the marketing and concentrate on the problems you're trying to solve and how well the tool helps solve them for you.
It is yet another custom templating language with its unique limits [0].
If I have an option i'll stick with JSX.
"I don't like the way the garnish looks they put on my ribeye, so I'm just gonna head over to McDonalds."
JSX doesn't even parse the same as HTML5; it matches XHTML from decades ago. Again, the source doesn't match what the target uses (browsers). It's close, but not the same.
A Big Mac is close to a good burger, but it's not a good burger.
literally spending 2 seconds reading the Svelte 4 release makes it clear that its a maintenance release. you could've done that instead of typing all this.
https://nodejs.dev/en/about/releases/
v16 had maintenance + development for 2+ years. Seems pretty good for an ecosystem that has a reputation of breaking changes across minor npm packages.
I use svelte for some side projects, I want to adopt it where I've worked in the past but it's very hard to win mindshare against arguments about stability and support. And honestly? Those arguments are very valid, that's why I asked if these types of hype posts actually hurt adoption. It was a question, this is a forum.
---
As an aside I'm very disappointed with your reply attacking my education level.
You don't remember me but I met you at React Boston 2018 and complimented your talk. If this is how you talk to people online that are nobodies, I don't know what to say... except thanks for showing me your true colors.
Hopefully you're just having a moment of stinginess and this isn't who you actually are.
I wasn't trying to diss Svelte at all with my comment, my question is very sincere. I use Svelte for a few local apps on my home network (board game and a music playlist selectors) but I have a very hard time convincing people starting new projects to consider it. That's why I tried to pose it as a question because I don't really know how to argue against it.
Four years in the JavaScript ecosystem denotes a very stable API. 99.9% of all Svelte 3 projects would likely need no code changes at all moving to v4, at least that's been my experience.
Svelte is substantially similar to plain HTML, CSS, and JS than any other framework out there except for htmx, and htmx gets there by actively avoiding any JS (punting to AlpineJS, which will have its own major version change issues) and therefore limiting the scope of problems htmx can tackle on its own.
htmx is great for what it is, and I love that it is helping people understand the inherent power of HTML before JS even joins the chat. However, it's not a complete web development solution like Svelte (or React, Angular, Vue, Solid, etc.).
Used carefully, semantic versioning shouldn't just describe the development choices you made, it should encourage you to make more conservative choices to avoid unnecessary breaking changes, small or large.
Have you seen the insane abuse that the Chrome (and later, Firefox) teams have subjected their version numbers to?
In the first ten years Firefox existed, it went from version 0.1 to version 5. They're completely meaningless concepts now. It is ludicrous we are now on major version >100 for both browsers!
For a library or a language, developers like to use Semantic Versioning: a major update will break client code.
it's something the linux kernel could have adopted too. because the difference between 5.19 and 6.0 is just as incremental as all the other versions.
the only benefit with the kernel versioning is that the first number gives you a rough indicator how old a system is. are you still on 4.x? you should probably upgrade. but actually the same can be done with current browser versions. your browser version is in the 80s? you should probably upgrade.
in the kernel case it would have been interesting to increase the major version exactly every 5 years to help with the age estimate.
as it is, the kernel settled on the version number being base 20
I was feeling this with Quarkus too, but they finally set one of their recent versions as LTS. Setting an LTS and migration guides between LTSs is a practice I'd like to see more in front-end tech.
It still works locally, been meaning to update it which I think will be painless as well because it's a dead simple site. No regrets either, I really like Svelte and tried to convert some data visualization apps with it but couldn't win mindshare at the time in these companies.
I haven't look into too much, but what made react easy to adopt was that Facebook would put out codemods to help migration during major transitions. It was easy to justify these version bumps when there was tooling that made these transitions somewhat painless.