Earlier quoted context omitted.
I'm almost finished with a large, complex app written with Svelte 5, web sockets and Threlte (Three JS) [0]. Previously, I'd written React for about a decade, mostly on the UI side of things. I vastly prefer Svelte, because of how clean the code feels. There's only one component per file, and the syntax looks and writes deceptively like vanilla JS and HTML. There's a bit of mind-warp when you realize Svelte doesn't w…
"There's only one component per file" If you don't do this in React, its your own fault.
Svelte: $derived can now be overwritten
31–40 of 55 posts
Re: Svelte: $derived can now be overwritten
#32As someone who has not used Svelte 5: What is the significance of his change?
Re: Svelte: $derived can now be overwritten
#33People who have migrated a large enough production codebase to Svelte 5, what's your devex like?
As much as I appreciate Svelte, the React devex is unmatched. I built a client-side app using Wails with Svelte 5 and I found myself wanting React's seamless devex and vast ecosystem. Once I migrated over to React it was like a huge handicap was lifted. Svelte is great. But if you're in a time crunch and you don't have a specific technical requirement that makes React a bad match, I don't think Svelte is worth it. A…
I'll add devex extends to TSX/JSX itself too, the editor support and language server experience is miles ahead. Alternative formatters/linters like Deno, Biome, oxc etc. all have great support out of the box too, not so much for svelte.
For when react is a bad match; I'm investigating solid instead for this reason.
The svelte ecosystem is in a particularly unfortunate spot right now comprising of single/few author projects that were starting to stabilise but now have a svelte 4 -> 5 migration shaking things up.
Re: Svelte: $derived can now be overwritten
#34Wow, the optimistic UI example is so simple: https://svelte.dev/docs/svelte/$derived#Overriding-derived-v... I wonder what Ryan Carniato, the author of Solid, thinks of it.
Re: Svelte: $derived can now be overwritten
#35Re: Svelte: $derived can now be overwritten
#36Agh, I understand why runes were implemented, but I still can't get myself to like them. It feels like Runes take away from what made Svelte Svelte (the simple, concise syntax), and changes like this seem like slow concessions back in that direction anyway.
You just have to build a big project with Svelte 5 and you will come to like them. A lot of magic is okay for simple application, but when you want to build anything that scales Svelte before runes was just horrible. With Svelte 5 and Runes you can look at any component and instantly know what it does. You couldn't do that with Svelte 4 unless you wrote the whole code yourself.
Runes are the right choice for the library, but there is still a loss there.
Re: Svelte: $derived can now be overwritten
#37Re: Svelte: $derived can now be overwritten
#38People who have migrated a large enough production codebase to Svelte 5, what's your devex like?
Re: Svelte: $derived can now be overwritten
#39Earlier quoted context omitted.
I'm almost finished with a large, complex app written with Svelte 5, web sockets and Threlte (Three JS) [0]. Previously, I'd written React for about a decade, mostly on the UI side of things. I vastly prefer Svelte, because of how clean the code feels. There's only one component per file, and the syntax looks and writes deceptively like vanilla JS and HTML. There's a bit of mind-warp when you realize Svelte doesn't w…
"There's only one component per file" If you don't do this in React, its your own fault.
Re: Svelte: $derived can now be overwritten
#40Together, they offer a seamless entry into development, allowing you to swiftly grasp concepts akin to JS/HTML.
Other options require a significant learning effort.
Wish it came earlier...