3 ms·
> it’s all JavaScript I don’t get this narrative and Svelte isn’t the only community guilty of pushing it. Granted, the bulk of the logic you will write using
by makingstuffs 3y ago
> it’s all JavaScript
I don’t get this narrative and Svelte isn’t the only community guilty of pushing it.
Granted, the bulk of the logic you will write using the framework is ‘just JS’ but that is true of most frameworks.
Most of the code you write in ReactJS is ‘just JS’ as I am sure is true for VueJS and god knows what else.
However, Svelte, as with all frameworks, has a learning curve.
Even the example pretty high up on the page is not ‘just JS’ nor is the JS used very standard, who on earth labels a scope with `$` in vanilla JS land?
If I saw that while doing code review (in a vanilla codebase) I’d be instantly asking what the purpose is and for a more self explanatory label than a dollar sign, if a label was even required.
Further down the page you get an example with a redux comparison using a hook called `writeable` which exposes a `subscribe` and `update` method. Neither of the three are standard JS.
I realise this sounds like I’m bagging on Svelte, I’m not. I’m actually quite intrigued and want to try it out. I just cannot deal with all the false claims of ‘it’s just JS’, ‘you know it already’, ‘there is no learning curve’ etc. when there clearly is a learning curve and it clearly is not ‘just JS’.
The framework is doing solid work and should be celebrated for what it is and not what it isn’t.