Svelte 5 is Bigger Than You Think

  Рет қаралды 27,290

Ben Davis

Ben Davis

Күн бұрын

Svelte 5 is (basically) here, and I wanted to go over the major changes that have made this framework SO much better.
Some great videos going deep on runes:
[Svelte 5: Introducing Runes... with Rich Harris]( • Svelte 5: Introducing ... )
[Let's Make A Todo App Using Svelte 5 Runes]( • Let's Make A Todo App ... )
[Svelte Runes: Awesome or Awful?]( • Svelte Runes: Awesome ... )
[svelte now has magic]( • Svelte now has magic )

Пікірлер: 100
@lcarv20
@lcarv20 7 ай бұрын
Keeping the title of “The best fontend framework” for a few years in a row. Love to see it. Nice video.
@stephanpio
@stephanpio 7 ай бұрын
Awesome video, I started using classes for most of my shared state and it was a game changer. Realizing I could export the class (for local state specific to a component) as well as exporting an instance of the class and reusing it basically covers all of the typical use cases I have for shared state. I didn't really comprehend the value when I first started using Svelte 5 but I think the pattern you described in the video will become the norm. Thanks to you, JoyofCode, and Huntabyte for providing a lot of helpful short videos on these topics.
@seethruhead7119
@seethruhead7119 5 ай бұрын
can do the same thing with a factory function
@grenadier4702
@grenadier4702 7 ай бұрын
Svelte 5 also uses event delegation. Now instead of adding an event listener to each element, it creates an event context for each element and when any event is dispatched, svelte detects what event context to execute
@pjc825
@pjc825 7 ай бұрын
Great to see you back to covering more Svelte 💯😃👍
@adriablancafort
@adriablancafort 7 ай бұрын
Svelte 5 is amazing! I love runes and I love how cleaner the syntax looks now. Thanks Rich Harris for listening. Now I can confirm that it is "vibes optimized".
@ozgurNY
@ozgurNY 6 ай бұрын
Svelte 5 is pain after Svelte 4. They runed Svelte DX.
@adriablancafort
@adriablancafort 6 ай бұрын
@@ozgurNY You have no idea what upi talk about. They removed the last ugly syntax there was.
@C4CH3S
@C4CH3S 6 ай бұрын
​@@adriablancafortthe svelte 4 syntax is great until you want to know what is reactive or not in a big page. Honestly I'm a fan of slightly more boilerplate in exchange of readability.
@adriablancafort
@adriablancafort 6 ай бұрын
@@C4CH3S That's why Svalte 5 is amazing and we love it!
@zap813
@zap813 7 ай бұрын
4:00 in practice you'll probably want to use the context API anyway by initializing the object within the top level layout or something, since globals could get reused on the server between requests and leak data. On the plus side you don't have to worry about context rerendering your whole application like you do in React.
@bmdavis419
@bmdavis419 7 ай бұрын
yea its not something you are gonna be using all the time, its just really nice that it exists
@pjc825
@pjc825 7 ай бұрын
@@bmdavis419 Would love you to do a video on the proper usage of state in a multi user application using Svelte5/SvelteKit that uses server side data and the proper way to handle state so that data is properly isolated based on the logged in user so that no data is leaked or corrupted between multiple different users 👍
@arnavshukla2408
@arnavshukla2408 7 ай бұрын
I'd love for you to do a Svelte 5 Tutorial. I'm really enjoying your videos, keep it up!
@bmdavis419
@bmdavis419 7 ай бұрын
just uploaded my svelte 5 + supabase video!
@JustSuds
@JustSuds 7 ай бұрын
I’m using svelte5 in two production apps currently already, and I’ve got to say snippets are one of my favourite things.
@moveonvillain1080
@moveonvillain1080 7 ай бұрын
Any way I can break into Svelte ecosystem.... Haven't seen many jobs for it. Currently working in Angular 16 have worked in Next.Js as well
@karolus__
@karolus__ 7 ай бұрын
Svelte5 is awesome, but as for now it's not production ready. There is plenty of libraries that doesn't work with Svelte5 or u need some additional fixes to make it work. I can't wait for the release.
@bmdavis419
@bmdavis419 7 ай бұрын
The nice thing is it is fully backwards compatible, you either opt in or opt our at the component level, so if u need a lib that does not work with it use svelte 4 syntax, but for new stuff you can adopt runes!
@Animadroids
@Animadroids 4 ай бұрын
"Svelte 5 production is not landing when you think" is more accurate title
@bmdavis419
@bmdavis419 4 ай бұрын
XD
@nro337
@nro337 7 ай бұрын
Really great coverage on this one!
@RyoukenDofus
@RyoukenDofus 7 ай бұрын
Fuckk Ben you just convince me to start migrating my app to svelte 5 before releasing the mvp
@bmdavis419
@bmdavis419 7 ай бұрын
i mean like u shouldn't but also i did so
@rumble1925
@rumble1925 7 ай бұрын
Bro don't churn just for the sake of it
@XRENDERMAN
@XRENDERMAN 4 ай бұрын
It's not a win, it's the main and only thing that differentiated Svelte - concise syntax. Now I see no reason why to pick it over Vue for example.
@HariPrasad-mn5vu
@HariPrasad-mn5vu 7 ай бұрын
Finally i found someone who keps that annoying sidebar on the left :-). Btw what theme are you using??
@bmdavis419
@bmdavis419 7 ай бұрын
Github Dark
@rerere1569
@rerere1569 7 ай бұрын
Thank you for the video, might check svelte 5 once it's fully released Btw have you tried Solid? I've been playing around with it for a while and it looks like better react in some ways
@bmdavis419
@bmdavis419 7 ай бұрын
never used it, but yea "better react" is the vibe I get
@prashlovessamosa
@prashlovessamosa 3 ай бұрын
I have a question whenever svelte 5 releses are we able to use version 5 features in sveltekit I am little bit confused with the ecosystem as we dont have react router for svelte than how can we do routing in svelte we have to use sveltekit correct please guide me
@just_a_dev_023
@just_a_dev_023 6 ай бұрын
How do I get started with Svelte 5??
@MadeInJack
@MadeInJack 7 ай бұрын
How would you create your Workout AI app using Svelte 5 (without RSC)? A video would be great about that, to show that you can build Generative UI apps using Svelte too! Thanks!
@bmdavis419
@bmdavis419 7 ай бұрын
You would just need to do a lot more custom work, working on implementing it now, will cover it soon!
@scott_itall8638
@scott_itall8638 7 ай бұрын
Svelte 5 has taken so long to come out I went off and learnt Laravel lol.
@maloxi1472
@maloxi1472 7 ай бұрын
It's actually Laravel that led me to learn Vue (when Vue was still a dependency of the project), before I drank the Svelte Kool-aid. I still like Laravel but would never voluntarily go back to it 😄
@scott_itall8638
@scott_itall8638 7 ай бұрын
@@maloxi1472 Laravel has become part of my job now so knowing it well is a must, still love Svelte. Been using Livewire which I'm finding pretty cool the similarities between Livewire and what the rest of the frameworks are trying to accomplish is cool to see. Cant compare them cause Laravel is a full batteries included framework.
@seethruhead7119
@seethruhead7119 5 ай бұрын
would prefer a factory function rather than a class
@ozgurNY
@ozgurNY 6 ай бұрын
Compare your Svelte 5 code with Svelte 4. Svelte 5 runed all DX. It was such a joy learning Svelte 4.
@mbokil
@mbokil 6 ай бұрын
For devs coming from React it is like a breath of fresh air and makes it easier to understand.
@jingle1161
@jingle1161 5 ай бұрын
@@mbokil which is a bad sign.
@XRENDERMAN
@XRENDERMAN 4 ай бұрын
@@mbokil yes but React is the worst thing that ever happened to dev world, any step on making Svelte closer to it - is a bad step.
@mbokil
@mbokil 4 ай бұрын
@@XRENDERMAN depends how you define worst. I don't find React very intuitive but the idea of function composition is now a standard for component frameworks. If you just want to make money React can be very good since it is used everywhere.
@XRENDERMAN
@XRENDERMAN 4 ай бұрын
@@mbokil I can't think of a less pleasant way of earning money than working with React.
7 ай бұрын
How is the experience of using Svelte5 with SvelteKit? I used Sveltekit a long time ago when it was quite early and got burnt by all the hard coding needed to leverage the unstable parts. Looking at using SvelteKit for a new project but Svelte5 not being stable it feels a bit like getting back in the risk of having to deal with breaking changes.
@bmdavis419
@bmdavis419 7 ай бұрын
I have it in production and have not used svelte 4 in months, personally I've had zero issues and massively prefer it to svelte 4
7 ай бұрын
@@bmdavis419@bmdavis419, your videos have convinced me to give it a try. thanks for sharing.
@prix4638
@prix4638 7 ай бұрын
hi, i rlly liked your vscode theme, how's it called? thanks and awesome content!
@racapella
@racapella 7 ай бұрын
github theme
@bmdavis419
@bmdavis419 7 ай бұрын
Github Dark Default
@mikelchannel4080
@mikelchannel4080 7 ай бұрын
look out, there´s a typo in the title, is Than, not Then
@bmdavis419
@bmdavis419 7 ай бұрын
idk what ur talking about ;)
@dan-bz7dz
@dan-bz7dz 7 ай бұрын
Any better abstraction than using a class?
@bmdavis419
@bmdavis419 7 ай бұрын
u can use a function, but I've been using it a lot over the last few days and I honestly think classes are the best
@BhideSvelte
@BhideSvelte 7 ай бұрын
Amazing 🎉🎉🎉
@DavidSmith-ef4eh
@DavidSmith-ef4eh 6 ай бұрын
hmmm.. mobx did that since forever and doesn't require special $ sign syntax and is cross librarry. you can use mobx in react/flutter/react-native/angular etc...
@meka4996
@meka4996 7 ай бұрын
Amazing! I am SOLD!
@anth0ni33
@anth0ni33 6 ай бұрын
jack harlow teaching svelte
@sean_reyes
@sean_reyes 7 ай бұрын
what brand and model is that keyboard behind you?
@bmdavis419
@bmdavis419 7 ай бұрын
www.keychron.com/products/keychron-q4-pro-qmk-via-wireless-custom-mechanical-keyboard?variant=40487284605017
@sean_reyes
@sean_reyes 7 ай бұрын
@@bmdavis419 I’m honestly grateful with your reply, but I was actually talking about the other keyboard 🎹
@bmdavis419
@bmdavis419 7 ай бұрын
@@sean_reyes oh lmao my bad roland fp-60x
@nomadshiba
@nomadshiba 7 ай бұрын
still uses compiler
@WebDevCody
@WebDevCody 7 ай бұрын
Looks like mobx to me
@bmdavis419
@bmdavis419 7 ай бұрын
kinda does lol
@BhideSvelte
@BhideSvelte 7 ай бұрын
Which vs code theme do u use ?
@bmdavis419
@bmdavis419 7 ай бұрын
Github dark
@luka1790
@luka1790 7 ай бұрын
Can you store state in a snippet?
@bmdavis419
@bmdavis419 7 ай бұрын
I don't think so, I tried importing them from a seperate file and that did not work, so I think their state is tied to the in their file
@luka1790
@luka1790 7 ай бұрын
@bmdavis419 i like Svelte, but snippets feel redundant to me without being assign to state within. They might aswell adopt jsx, then maybe typescript finally works properly within a svelte component.
@bmdavis419
@bmdavis419 7 ай бұрын
@@luka1790 I actually had a real life usecase that was really nice yesterday Basically in the new insiderviz we have a company screener, and a form screener. Both of these use the same sidebar "screener" component, but each need to have a different "Save screener" section based on the page. So what I did is create a snippet on each page, then pass it into the component and render it out there.
@dei8bit
@dei8bit 7 ай бұрын
aguante svelte ♥
@buiquockhoi
@buiquockhoi 7 ай бұрын
Hi, what font are you using? It looks nice and clean!
@bmdavis419
@bmdavis419 7 ай бұрын
Geist vercel.com/font
@HowPortal
@HowPortal 7 ай бұрын
The instability of this library send frameworks are just insane. you don't have anything to do other than upgrading upgrading upgrading.
@seanknowles9985
@seanknowles9985 6 ай бұрын
looking more and more like react lol
@StephenRayner
@StephenRayner 7 ай бұрын
Zustand
@lordxan1
@lordxan1 7 ай бұрын
Basically svelte5 is vue3
@EladBarness
@EladBarness 7 ай бұрын
For me it’s becoming too much react
@bmdavis419
@bmdavis419 7 ай бұрын
I agree, but I actually think its a good thing. To me runes feel like react hooks without the annoying parts (no dep arrays, no getter/setter, etc)
@zap813
@zap813 7 ай бұрын
I don't get why people are saying this when the only similarity is the use of the word 'state' and 'effect'. How you use them and how they work under the hood is completely different.
@bmdavis419
@bmdavis419 7 ай бұрын
@@zap813 under the hood 100% they are completely different, but as end users the abstractions FEEL pretty similar
@adriablancafort
@adriablancafort 7 ай бұрын
It has almost nothing to do with react. It is much more similar to solid, which looks just like react but works completely differently. Runes are all about signals, which are clearly the way to go for reactivity. And they remove all the ugly syntax of $: in svelte 4.
@EladBarness
@EladBarness 7 ай бұрын
I don’t have any experience in solid however I liked the ease of use of old svelte and the straight forward approach, however I definitely understand your point, the limitations are clear but I liked the way that the work arounds are plain js without any abstractions, I feel the new approach is the reason why I don’t like react but again I definitely understand the point.
@gadgetboyplaysmc
@gadgetboyplaysmc 7 ай бұрын
first
@mikelCold
@mikelCold 7 ай бұрын
I knew nothing about Svelte before watching this, and while you've explained things well, I've concluded that Svelte is in fact garbage. I assume as such, now it's confirmed. Svelte geeks are like the ruby geeks of the php days. Nerds need to learn to type with their keyboard and stop coming up with awful ways of programming.
@MetalGuruSvk
@MetalGuruSvk 7 ай бұрын
Would you care to provide at least one reasonable argument why you think it is "garbage"?
@debugger4693
@debugger4693 7 ай бұрын
Conclude whatever you want, i'm still using svelte and you can't stop me :D
@mohabedr5030
@mohabedr5030 7 ай бұрын
why do you talk too much ?
@a7kerkh
@a7kerkh 7 ай бұрын
What?
@TheHermitHacker
@TheHermitHacker 7 ай бұрын
There it is! They say there are no stupid questions, but I just discovered one in the wild.
@bmdavis419
@bmdavis419 7 ай бұрын
being more succinct is definitely something I'm working on!
@edenassos
@edenassos 7 ай бұрын
@@bmdavis419 You don't have to worry about being cancelled, just say what you really mean when someone comments something like this. ;)
JavaScript Framework Tier List
40:57
Theo - t3․gg
Рет қаралды 389 М.
Deploy Golang App to Google Cloud Platform
28:46
david ostrowski
Рет қаралды 2,6 М.
БАБУШКА ШАРИТ #shorts
0:16
Паша Осадчий
Рет қаралды 4,1 МЛН
7 Projects To Learn Svelte 5
1:14:29
Joy of Code
Рет қаралды 25 М.
Svelte 5: Introducing Runes... with Rich Harris
12:35
Svelte Society
Рет қаралды 98 М.
Svelte 5 Ruined Svelte (and that's why I love it)
12:37
Ben Davis
Рет қаралды 14 М.
Svelte Is Good For Beginners
9:28
ThePrimeTime
Рет қаралды 87 М.
Svelte's ecosystem is amazing, actually
17:38
Nev the Dev
Рет қаралды 2,8 М.
Svelte 5 Is Like React, But Better
19:33
Theo - t3․gg
Рет қаралды 88 М.
Svelte 5 is a beast, but is it worth switching?
37:55
Syntax
Рет қаралды 23 М.
The Svelte 5 Reactivity Guide
21:41
Joy of Code
Рет қаралды 38 М.
Svelte 5 Preview | Runes
12:40
ThePrimeTime
Рет қаралды 81 М.