by yawnxyz · 4y ago · 0 comments
But I'm a "hacker type" and don't work in a large tech company. I haven't seen Svelte in any sort of "real tech companies", haven't seen it on job boards, and it doesn't seem a very desirable skill.
Does this mean that Svelte "doesn't work" for large teams, because it lacks the boilerplate of React?
0 - https://www.quora.com/What-does-the-phrase-Nobody-ever-got-f...
You can't imagine the amount of flak I've taken for that. Managed to get it on a back-of-the-house system, while we built a massively complex React app for the main product. Everyone who worked on it loved it, but was still considered risky. Now that it has a gazillion GH stars and is mentioned in 1 out of 3 blog posts, of course things are much easier.
On the other hand, novelty burnout is a real thing. Javascript has mutated so much in a short period of time that it's become impossible to keep up with -- especially once you factor in frameworks and tooling.
Times like this, I wish vanilla JS/ECMAscript was more powerful out of the box. For a language designed to work with the HTML DOM -- the ONLY language that works natively with it -- it is so woefully underpowered. Why do we need a framework at all to do a simple stateful AJAX UI? =/
For many sites and apps, the business logic SHOULD be the focus of dev time, but it's not... it's implementing trivial business logic inside of the ever-growing monster that is the JS ecosystem. There are 1000 ways to do anything in JS, but never just one good way.
I'm bitter, and I'm not opposed to moving on and learning this stuff, but it's like employers barely understand the value of HTML/CSS relative to how much React is prioritized/used as a single qualifier.
I have "1-2 years experience" with React & friends if that matters, and I consider myself a 10 year Web development vet.
You're lucky that Svelte has taken off but it could have easily been abandoned and you could be stuck with an outdated framework.
Three years ago, someone at my company made the bad call to use Aurelia. It didn't take off, and we are still stuck with this decision.
I'm not claiming that the success is random - Svelte is clearly a far better framework than Aurelia. But the weaknesses often become apparent only later into development, and so it's safer to bet on established approaches.
However I imagine there isn't alot of community libraries to leverage with such a small ecosystem.
- No one else in the team was familiar with React.
- React did not play nice with the rest of the app and developer work flow.
- It was huge and slow
- He didn't know React as well as he thought he did and we had endless bugs.
- He spent ages working on it.
We rewrote in vanilla JS in 4 days - one dev.
And, yeah, effing JS.
The point is about making safe choices compared to alternatives. Migrating a project without full team buy in and without testing the waters in small incremental experiments is a developer/management problem.
Many types of errors that the equivalent vuejs/react app will show an error page and allow reporting to sentry for will result in an uncatchable halting (some may describe this as "freezing") and with no way to report this to a service like sentry.
This is unacceptable for a framework claiming to be production ready.
It's unclear to me if this has been fixed in the last year or two.
Oh, I know people who would. Especially if that choice was made mechanically, without proper assessment of project requirements and framework strengths/weaknesses.
You're right that this doesn't hold true in a large corporation where they may already have a ton of code and preferred frameworks.
It makes sense for this small website extension because you can build and compile a small component without having to bundle the entire react runtime in.
Supposedly Svelte is able to do this very well, haven't had the chance to try it with D3 myself.
Fixed.
The critical point of adoption is libraries, there must be variety of them to serve broad kind of application. That's "late mover" problem, people are tired of re-implementing stuff again. I wish popular frameworks would pass down some funding to vanilla js libs individuals.
Marketing, it's about image of "facebook's engineering team" vs "these individuals guys". (often time, big corp's team is not that smart, really)
Hiring pool. Small companies couldn't afford shinny things (risks management), so the larger pools of dev, the less risk.
Cult, ahaa.. It seems to LOTs of devs agree that Re*ct sucks. Leaving a cult is not easy, it's leaving community. Most people don't want to leave at all, and in a sense they hate that people are leaving too! They become angry and defensive. So we don't make progress more quickly here.
I've been working exclusively with Vue for the last... 6 years. Since the launch of v2. So my mind is already conditioned ;-)
edit: oh nvm, we haven't upgraded our codebase to Vue 3 yet, there are a lot more ".value"'s if you click through to the Vue 3 examples in the original post.
Since vue does not hide the fact that something is a ref, you need to call `myRef.value` to get to the underlying value of `const myRef = ref(10)`.
In a new and currently experimental syntax, you can use `const myRef = $ref(10)`, at which point you can just use `myRef` directly. This will then be converted by the Vue SFC compiler.
Another option is to use a reactive object as the state: `const state = reactive({ myVal: 10 })`, at which point you can just use `state.myVal`.
In svelte, top level variables are automatically reactive.
And also the #jobs channel on the Svelte Discord https://svelte.dev/chat
There are jobs being posted every day. And btw, we're one of those looking for Svelte engineers.
https://twitter.com/sveltesociety/status/1260209026563858432...
Nowhere near enough “to work for large teams”, as is the argument for Angular and the Java world it gets its bad ideas from.
If you hate React for some reason I'd consider SolidJS a much more principled framework.
[1] https://blog.nativescript.org/perf-metrics-universal-javascr...