Runes: The Solution to Svelte's Magic Problem?

  Рет қаралды 2,362

Kodaps Academy

Kodaps Academy

8 ай бұрын

Svelte Runes: Are they the answer to Svelte's magic problem? Don't get me wrong. Svelteis a great framework. It uses its compiler to augment vanilla JS syntax with reactivity and state. But that compiler magic is also a problem. Why? We’ll dive into that in a second.
Because to solve that problem, the Svelte team is leaning into the magic, not shying away from it, with a new feature coming in Svelte 5: Runes.
Runes use the function syntax to provide more expressive reactive magic.
What are Runes? Are they making Svelte more magical? Or is Svelte becoming un-svelte-like? Do Runes make Svelte more like… well, the framework which must not be named?
What does this mean for the future of Svelte?
We’ll look into all that and more. To understand all that, we first need to understand the problem Runes are trying to solve.
#svelte #runes #frontend #webdevelopment
----
Want to go into further depth? Head to kodaps.dev/en

Пікірлер: 17
@mikeonthebox
@mikeonthebox 7 ай бұрын
2:46 You CAN.... It's called a Store.
@vutruong4164
@vutruong4164 7 ай бұрын
You took your time to make this video, and the quality definitely shines through! The adoption of Signal in FE frameworks new and old (besides React haha) is probably one of the few times the FE land agree on something common. I hope it's a sign that the FE javascript world is maturing/converging to an optimal solution for reactive state management. People are realizing that the State and the DOM should have always been tightly coupled through a reactive primitive like Signal (or its more complicated async counterpart, RxJS Observable), rather than being decoupled by a slow, heavy middle-man runtime in between, like React VDOM + Diffing or Angular Zone.js. I like the way Svelte (and FE frameworks in general) are heading, and hopefully the Svelte community do not look at this like a "regression" towards React-like hooks. In fact, Rune (Signal) is far far apart from React, a much different mental model underneath.
@blackpurple9163
@blackpurple9163 7 ай бұрын
Finally after this long, your video among others have made it easy to understand exactly what runes were trying to fix
@KodapsAcademy
@KodapsAcademy 7 ай бұрын
I'm glad I was able to be helpful :)
@blackpurple9163
@blackpurple9163 7 ай бұрын
@@KodapsAcademy I hope this doesn't make learning svelte any more complex, I like the simplicity of svelte over react, but yes svelte seems to be getting more complex now
@KodapsAcademy
@KodapsAcademy 7 ай бұрын
@@blackpurple9163 it should't, but it does require that you change your mental model a little, so that might be a little difficult
@blackpurple9163
@blackpurple9163 7 ай бұрын
@@KodapsAcademy then I'm lucky, I just started learning and so far it's pretty new to me so I'll adapt pretty fast, just that there's no job scope for it in my country yet, but I'll prepare just in case, it seems fun to make things in svelte since it's basically going back to HTML and js
@mikeonthebox
@mikeonthebox 7 ай бұрын
I believe they are going away from the magic and not leaning into it. _let value = 5;_ this been reactive is magic, adding $state isn't Magic anymore, it's Vue, React or Solid... The magic is gone. 2:30 The compiler clearly sees multiplyByHeight in here, it's just been lazy and not going inside it to know what's happening there, and to know if it's return value will affect area and grab other dependencies while doing so.
@IamSH1VA
@IamSH1VA 7 ай бұрын
Everything in svelte is magic ✨
@dangelomedina3091
@dangelomedina3091 7 ай бұрын
Beautiful explanation for this topic. In no case could it be a step backwards. Preference, whether you like it more or less is another thing.
@laikmoshwa1028
@laikmoshwa1028 15 күн бұрын
i was looking a long list of videos and then this started playing and the audio is completely different to everything else, was this recorded with a binaural mic? what is the magic here?
@KodapsAcademy
@KodapsAcademy 15 күн бұрын
I'm not 100% sure which mike I used for this video - I used to have a Rode NT1A before it broke (after about 10 years of faithful service) so it might be that :) I have a Sure SM 7B now so it could be that (but it is hardly original :) ).
@zorgius
@zorgius 7 ай бұрын
Thank you for the explanation
@Esimaxchannel
@Esimaxchannel 7 ай бұрын
Fantastic, could not explain better
@Moon-oz3mu
@Moon-oz3mu 26 күн бұрын
In svelte diynamic state management was big gotcha especially with $:, so i guess this new runes will solve that problems.
@Damienxx
@Damienxx 2 ай бұрын
I don't know how many people have the ability to listen and read the different contents in the same time, but definitely not me.
@icarusgk
@icarusgk 6 ай бұрын
happy to see them leaning into a more Vue 3 approach 🙌🏼
React vs Angular in 2024
9:00
Kodaps Academy
Рет қаралды 20 М.
Understanding Svelte (vs React)
5:19
Kodaps Academy
Рет қаралды 30 М.
КАКОЙ ВАШ ЛЮБИМЫЙ ЦВЕТ?😍 #game #shorts
00:17
La final estuvo difícil
00:34
Juan De Dios Pantoja
Рет қаралды 29 МЛН
СҰЛТАН СҮЛЕЙМАНДАР | bayGUYS
24:46
bayGUYS
Рет қаралды 795 М.
How I Use Notion as a CMS (with Next JS)
9:47
Kodaps Academy
Рет қаралды 4,9 М.
Go vs Rust: Which To Learn In 2024?
6:27
Kodaps Academy
Рет қаралды 133 М.
React vs HTMX: Why we chose HTMX?
5:01
Kodaps Academy
Рет қаралды 3,7 М.
Drizzle vs Prisma: Which ORM is right for YOU?
5:59
Kodaps Academy
Рет қаралды 693
Why learn LUA?
6:24
Kodaps Academy
Рет қаралды 4,3 М.
Why does Zig pay more?
6:44
Kodaps Academy
Рет қаралды 6 М.
Svelte Runes Change How Reactivity Works In Svelte
8:52
Joy of Code
Рет қаралды 30 М.
Introduction To Svelte Runes (Every Svelte Rune Explained)
12:36
Cooper Codes
Рет қаралды 3,6 М.
React VS Svelte...10 Examples
8:35
Beyond Fireship
Рет қаралды 515 М.
Где раздвижные смартфоны ?
0:49
Не шарю!
Рет қаралды 285 М.
wyłącznik
0:50
Panele Fotowoltaiczne
Рет қаралды 23 МЛН
Очень странные дела PS 4 Pro
1:00
ТЕХНОБЛОГ ГУБАРЕВ СЕРГЕЙ
Рет қаралды 299 М.
Huawei который почти как iPhone
0:53
Romancev768
Рет қаралды 617 М.