Svelte Creator Rich Harris: Web development should be more fun
infoworld.com
infoworld.com
I guess we'll merge the threads into the earliest submission (the one you linked to) and change the URL to Rich's own post.
At least for the first MVP you can basically do away with the whole node stack and focus in on the backend storage, the html template and css first. Essentially the basics. It just seems so much nicer. It also adds a forcing function for minimal Javascript which is definitely a good thing. Migration from server side to a single page app once you have that MVP is pretty copy paste-able too. That html template and css is still valid in an SPA. You'll need an API but hey you already have the server side stuff there ready to go!
Having a system that would allow you to build server side rendered HTML that could seamlessly integrate client JavaScript seems like it would be a huge advantage. Not sure if there is anything like that though.
I've been using Svelte for the UI on a cross-platform video editor (with the backend in Rust). Svelte has been a joy to use, especially the Stores and Context for sharing state.
I've also been happy to find that its generated code is pretty readable. On one little performance-tuning side quest, I was profiling to figure out why the app was performing a Layout on every video frame, and I was able to step through the compiled Svelte component code and narrow it down to one of my own functions. I also briefly went down a path of trying to manually set the text content on an element, to see if it'd be faster than letting Svelte do it. Turned out the answer was no, but it was nice to know that level of control is available if I need it some day.