Svelte, my new favorite shiny framework
A couple of days I came across this video. It blew my mind. I'm a big fan of React, and Vue sounds good, but this Svelte thing is a whole different game:
Given that there doesn't seem to be a big difference between React and Vue, I don't feel a strong motivation to spend my time learning Vue instead of deepening my knowledge of React.
From this video I get the impresion that it's a very well thought out framework, questioning what framewors should be like and how they should behave. It just makes so much sense and there's such a big difference in performance.
Svelte is a radical new approach to building user interfaces. Whereas traditional frameworks like React and Vue do the bulk of their work in the browser, Svelte shifts that work into a compile step that happens when you build your app.
Instead of using techniques like virtual DOM diffing, Svelte writes code that surgically updates the DOM when the state of your app changes.
I think I'm getting to understand why developers with years of experience start to get a big cranky and resist learning the flashy new thing. You start to become productive with a given technology. Then comes a new technology that could potentially make you even more productive, but you know that will take time, so you're stuck evaluating whether to squeeze a bit more productivity out of your current skillset or bite the bullet and jump into the latest new thing.
I want to look into Svelte. I might try to use it to build one of the product ideas I have in my implementation queue. But I think I'll still spend most of my time working in React. Some of the brilliant ideas from Svelte might make it to React and Vue and developers could get many of those benefits without having to learn a new way of doing things.
😆 you wish! I don't think it works that way in JavaScript-land. No escaping the learning.