Svelte 5 Preview | Runes

Ғылым және технология

Recorded live on twitch, GET IN
/ theprimeagen
Reviewed article: svelte.dev/blog/runes
MY MAIN YT CHANNEL: Has well edited engineering videos
/ theprimeagen
Discord
/ discord
Have something for me to read or react to?: / theprimeagenreact
Hey I am sponsored by Turso, an edge database. I think they are pretty neet. Give them a try for free and if you want you can get a decent amount off (the free tier is the best (better than planetscale or any other))
turso.tech/deeznuts

Пікірлер: 266

  • @maninalift
    @maninalift8 ай бұрын

    All the magic is in the $ for that nostalgic feeling of when you first discovered jQuery after trying to write IE6-compatible plain js for the first years of your webdeveloper life 😂

  • @AndrewStuart2

    @AndrewStuart2

    8 ай бұрын

    And the magic of angularjs (1.x) for me.

  • @blancfilms
    @blancfilms8 ай бұрын

    That trick to break into out of the outer loop from an inner loop at around 04:00 was great. I have definitely found myself having to break out of an inner loop in the past and didnt know how to do this!

  • @P4INKillers

    @P4INKillers

    8 ай бұрын

    i = j = 9000;

  • @monad_tcp

    @monad_tcp

    8 ай бұрын

    you break by using a "GOTO", I'm kidding

  • @yblackfrost
    @yblackfrost8 ай бұрын

    Vue did not start SFC. Vue modeled its API and single-file components after Ractive.js, the predecessor of Svelte.

  • @daleryanaldover6545

    @daleryanaldover6545

    8 ай бұрын

    Yes, many people have misconceptions about SFC. When svelte was announced together with how SFC works, Evan quickly explored the possibility and implemented it in Vue and that is how Vue compositions API was born (and the moving away from Vue2 options API began). Like how Evan took the better parts of react, the vue team also tried to explore implementing a compiler runtime which obviously would not be feasible because it will change the entirety of the runtime engine as mentioned in Vue 3 docs. Same thing with Quik and Astro, all those better parts cannot be implemented with Vue due to how the initial runtime is designed.

  • @mariogutierrez4989
    @mariogutierrez49898 ай бұрын

    Feature sets do seem to be converging among Svelte, Vue, Solid (React is not signals based) on the surface. The difference is Svelte is a compiler. Runes are first and foremost hints that can be optimally compiled for reactivity or server side use. Didn't Rich show runes compiling to noop in simple cases? It's vanilla JS at that point.

  • @avishjha4030
    @avishjha40308 ай бұрын

    Thanks for teaching me about labels! That's gold!

  • @SilvestreVivo
    @SilvestreVivo8 ай бұрын

    if $effect had another name, people would stop to make references to React. The concepts are not the same.

  • @fitemilkhero

    @fitemilkhero

    8 ай бұрын

    It's literally the same thing now. 😂

  • @SilvestreVivo

    @SilvestreVivo

    8 ай бұрын

    @@fitemilkhero definitely no. You don’t have to deal with the useEffect craziness

  • @brod515

    @brod515

    8 ай бұрын

    🤔 it does have another name... `watchEffect` ... I think it's called.

  • @noherczeg

    @noherczeg

    8 ай бұрын

    What craziness? @@SilvestreVivo

  • @fennecbesixdouze1794

    @fennecbesixdouze1794

    8 ай бұрын

    @@noherczeg Manually managing reactive dependency arrays.

  • @Kane0123
    @Kane01238 ай бұрын

    Runes have two connotations for me - spending far too long in Lower Kurast or laying land mines in Skyrim… neither feels good to have involved in my code base.

  • @hamm8934

    @hamm8934

    8 ай бұрын

    Also death knights button mashing in WoW

  • @guhkunpatata3150

    @guhkunpatata3150

    8 ай бұрын

    did not see that coming

  • @oscarstorm4694

    @oscarstorm4694

    7 ай бұрын

    That reference to D2 got me, i feel you!

  • @dzisonline
    @dzisonline8 ай бұрын

    Svelte, be careful with my heart. Please do not become React. Don't make me write code just to tell your library how to function.

  • @baxalasse

    @baxalasse

    8 ай бұрын

    Agree 100%

  • @can.slaughter

    @can.slaughter

    8 ай бұрын

    $store == useState 🤣🤣

  • @complexity5545
    @complexity55458 ай бұрын

    I'm into svelte because of the author; that's pretty much the only reason (and it easy to sling up a svelte websites in 30 minutes compared to reactjs). I can comeback to the code in 2 months and recall svelte better than reactjs. Ecommerce doesn't need crazy JS libraries. I don't know what the heck everybody else is doing with a website. **UPDATE**: Oh yeah, I remember. All this JS craziness came when Steve Jobs killed off Flash. And still to this date, we don't have a flash replacement for the the creative types.

  • @puffin_000

    @puffin_000

    8 ай бұрын

    I think Webgl is cover the creativeness side of things.

  • @Manas-co8wl

    @Manas-co8wl

    6 ай бұрын

    Well we have (had, until its disastrous blunder) Unity on the game side, the animators moved on to Krita or other tools I don't know of (if they don't use Animate), and some of them who took a liking to as3 actually developed Haxe. Also social media as a whole developed such as KZread or Soundcloud. And yes we have had WebGL for quite a while now, so I'm not really sure we need flash again.

  • @MahbuburRahman-uc7np
    @MahbuburRahman-uc7np8 ай бұрын

    Basically Svelte is becoming in Vue 3 and I can finally also add another JS framwork to my CV :)

  • @anj000
    @anj0008 ай бұрын

    I'm always confused about HTMX. Internally I feel like it appeared two weeks ago, but Prime is acting like he was building large scale production apps with it for years. Is it really that good or it is just new and no major flaws were found yet?

  • @daliareds

    @daliareds

    8 ай бұрын

    In truth, HTMX is just a modern way to do something people were doing before the whole client rendering craze. I reckon he's excited about it because he's primarily a backend dev and it lets him control the state of the app entirely on the server and not have two copies of the same state that could go out of sync It might be like how Rust was for him, he was head over heels for it for months and then one day he snapped and stopped recommending it

  • @ryanleemartin7758

    @ryanleemartin7758

    8 ай бұрын

    @@daliaredsThe Rust leadership took a giant shit in the punch bowl. He still recommends Rust for some stuff but yeah, he got out of the cult just in time.

  • @TurtleKwitty

    @TurtleKwitty

    8 ай бұрын

    HTMX the name and tiny scripting language is fairly new but the concepts it puts forwards are the literal building stones of the web with a bit more flexibility now that we have JS.

  • @crab-cake

    @crab-cake

    8 ай бұрын

    @@ryanleemartin7758 "just in time"? the rust drama is extremely overblown at this point. if it were as big a deal as you were implying companies would be dropping it. there is drama with every language.

  • @ryanleemartin7758

    @ryanleemartin7758

    8 ай бұрын

    @@crab-cake I referenced the leadership. The drama is just a symptom of the real problem with Rust which is: "Rust will always be political". That, in my view, is a poison pill and a breeding ground for cultish behavior and a wellspring for endless drama. Some people don't want to deal with that crap, it's extremely offputting.. way more than tech related drama or individual personality drama. If you are into the politics that Rust supports then you think it's all good, nothing to see here and the world is being saved by Rust. to which I say.. good luck. It is a great language.

  • @imxd9698
    @imxd96988 ай бұрын

    Svelte is finally growing up!

  • @a-yon_n
    @a-yon_n8 ай бұрын

    Isn’t rune a data type that stores codes that represent Unicode characters, aka code point?

  • @vitiok78
    @vitiok788 ай бұрын

    Hmmm... Svelte is becoming a compiled version of Vue 3 now...

  • @coldestbeer

    @coldestbeer

    8 ай бұрын

    Vue OWNS svelte

  • @hamm8934

    @hamm8934

    8 ай бұрын

    Always has been. From its single file component architecture to its minimal syntax with script setup. I’ll stick with Vue though because it’s 100% completely native JS, unlike sveltes compiler magic. Also, I can use Vue without a build step if need be.

  • @bobDotJS

    @bobDotJS

    8 ай бұрын

    I don't quite get why people prefer svelte over Vue. I use Vue at work and Nuxt is actually 🔥🔥

  • @vitiok78

    @vitiok78

    8 ай бұрын

    @@bobDotJS The killing feature for me personally is Vuetify.

  • @hamm8934

    @hamm8934

    8 ай бұрын

    @@bobDotJSnuxt 3’s dev tools are a game changer! It’s hard to work on frontend code without them Also useFetch makes react server components look like a chump

  • @danvilela
    @danvilela8 ай бұрын

    They say knockout was right but you can change it to Vue. It’s exactly the same as composition api

  • @daltonyon
    @daltonyon8 ай бұрын

    Interesting, I put Svelte in my pocket to playing later!

  • @alexgerdisch
    @alexgerdisch8 ай бұрын

    I’ve been dealing with the $ and stores quirks first hand. Very excited for svelte5 to drop. I used to be excited for new games to release… now I just patiently wait for rich to send dopamine. Pls don’t make us wait sveltekit long for this

  • @ProfRoxas
    @ProfRoxas8 ай бұрын

    I remember i once learned labels, maybe it was Java, then i missed it in some other language Usually you can replace it with functions and return if it's a simple one, like inner-outer loops only

  • @ymi_yugy3133
    @ymi_yugy31338 ай бұрын

    Maybe I'm wrong about this, but I'll never use loop labels instead of found variables. In fact I try to avoid control statements in general.

  • @bjesuiter
    @bjesuiter8 ай бұрын

    Nice, exactly appeared at the start of the segment

  • @EskoLuontola
    @EskoLuontola8 ай бұрын

    Strangely I remember Knockout. Planetary Annihilation's UI uses it, so I've used Knockout when writing PA mods. I never used it for web dev.

  • @chaselewis6534
    @chaselewis65348 ай бұрын

    svelte is my framework of choice, but what keeps it out of a lot of projects is the UI libraries just aren't up to snuff for it yet. So quick & dirty often is easier in other languages. Soon as a couple better libraries popup for it probably be the only UI library I use.

  • @chychywoohoo

    @chychywoohoo

    8 ай бұрын

    what about skeleton ui?

  • @guhkunpatata3150

    @guhkunpatata3150

    8 ай бұрын

    flowbite is good

  • @kitastro
    @kitastro8 ай бұрын

    its rethinking 'rethinking reactivity'

  • @n4bb12
    @n4bb128 ай бұрын

    They fixed all the things that bothered me about Svelte.

  • @noherczeg
    @noherczeg8 ай бұрын

    Please tell me why is manually creating a wrapper function for state a good thing all of a sudden? It's like a custom hook, what is all the hype about?

  • @hootmx198

    @hootmx198

    4 ай бұрын

    Reusing stateful logic across components required stores and the store contract is rather awkward. If you want to reference the current state of a store outside of .svelte file you have to use a helper function which comes with a warning that it is not efficient and should be avoided in hot code paths. Runes fix that.

  • @evax2975
    @evax29758 ай бұрын

    that minecraft kind of shit at 2:28 got me laughing so hard

  • @terionname
    @terionname8 ай бұрын

    Name reactivity functions with fancy word and make marketing) Now it's code looks even more like vue3 =)

  • @zzyzxyz5419
    @zzyzxyz54198 ай бұрын

    so the svelte team built vue 3 but backwards? 😂

  • @GrantGryczan
    @GrantGryczan8 ай бұрын

    For those not a fan of this: `$state` is just a compiler hint! It doesn't actually affect the value of the variable _at all._ The variable still literally equals its value. If you do `let count = $state(0)`, then `count === 0` will be true. It's the `count` variable itself that becomes reactive, not its value. If you assign its value to a different variable, its reactivity isn't copied. *I'm still not a fan of the `$state(...)` syntax because it doesn't make that clear at all.* Due to this common confusion, I think putting runes on the right-hand side of the equal sign was the wrong move, since it has nothing to do with what the variable is being set to. This would be much clearer and simpler imo: let $count = 0; Then it clearly communicates it's the variable that's reactive, not its value. And as a bonus, then dollar signs would explicitly indicate everywhere reactivity is present in your app. (But then you'd also have to think of better syntax for `$derived` which has the same problem.)

  • @DomskiPlays

    @DomskiPlays

    8 ай бұрын

    I prefer your way. The code even just looking like React makes me smadge

  • @jaideepshekhar4621

    @jaideepshekhar4621

    8 ай бұрын

    Exactly. You already have the $: x = y syntax. Just please use that.

  • @frazuppi4897
    @frazuppi48978 ай бұрын

    this new reactive update looks good

  • @user-tv5vg5yb4g
    @user-tv5vg5yb4g7 күн бұрын

    it avoided react, now it's becoming react. NOICE.

  • @shariar13877
    @shariar138778 ай бұрын

    Thoughts on angular breaking changes??

  • @jonathangamble
    @jonathangamble8 ай бұрын

    Quik too buddy!

  • @TheHackysack
    @TheHackysack8 ай бұрын

    I learned Python before I learned Bash, so imagine my frustration when I learned that breaking out of nested for-loops was very straightforward in Bash, but required extra work in Python. w=3 for x in {0..9}; do for y in {0..9}; do for z in {0..9}; do if ((x + y + z == 10)); then break "${w}" fi done done done printf "%s, %s, %s " "${x}" "${y}" "${z}" or some shit

  • @YaroslavFedevych
    @YaroslavFedevych8 ай бұрын

    „Knockout was right all along”? The joke’s on you, I’ve been just using Knockout all along!

  • @raenastra
    @raenastra8 ай бұрын

    hilarious in the comments that moving from let count = 0 to let count = $state(0) means that Svelte is dead and lost its simplicity. interesting priorities if you've written/refactored enough reactive $ statements in the current version of Svelte you'll understand why unifying this part of the API makes sense. signals seem to be the most clear way to offer reactivity

  • @fennecbesixdouze1794

    @fennecbesixdouze1794

    8 ай бұрын

    Yes but this could have been unified far less cumbersomely if the APIs didn't already have all the baggage of Svelte's mistaken insistence of building in magic pixie dust.

  • @danvilela

    @danvilela

    8 ай бұрын

    I mean. Now it’s a runtime thing. Also, Vue still have a bigger ecosystem.. i kinda want to try Vue again after this news..

  • @RiadDZz

    @RiadDZz

    8 ай бұрын

    I think people just dont like the "$", (JQuery PTSD ?) why not just make it "state(0)"

  • @WalterWoshid

    @WalterWoshid

    8 ай бұрын

    @@RiadDZz No, the $ is not the problem, the problem is that it really loses its simplicity. That's why I loved it, but now I am not so sure anymore.

  • @danvilela

    @danvilela

    8 ай бұрын

    @@RiadDZz php ptsd..

  • @francisgeorge7639
    @francisgeorge76398 ай бұрын

    "Needn't" upper class English english. Our colonists often think even the English of the plebiscite speak upper class english but the real thing is very rare. Rich Harris has it with I think a northern lilt (not sure about that). He sounds like he went to Harrow or Eton. Harrow is for the upper class upper classes, Eton for the upper-middle classes with pretensions, like Harry and William.

  • @vert3cx373
    @vert3cx3738 ай бұрын

    The “$” syntax just reminds me of AngularJS, so much trauma.

  • @netssrmrz
    @netssrmrz8 ай бұрын

    Runes look interesting but I can't shake off a feeling of deja vu. It feels like an admission that the previous scheme didn't really work, in the same way that React introduced functions/hooks to "fix" classes. Also, not keen on "features" that seem like a different way to do the same thing. Starts to taste like syntactic sugar.

  • @celiacasanovas4164

    @celiacasanovas4164

    8 ай бұрын

    a feeling of deja Vue

  • @oskrm
    @oskrm8 ай бұрын

    1:30 That's Rich lol

  • @XKCDism
    @XKCDism8 ай бұрын

    thank you for the minecraft slurp

  • @pesterenan
    @pesterenan8 ай бұрын

    The coin flip hahhahahha

  • @RiadDZz
    @RiadDZz8 ай бұрын

    so svelte made a full circle back to Vue 3 🤔

  • @andzagorulko
    @andzagorulko8 ай бұрын

    So svelte 5 is vue 3. Ok.

  • @buc991

    @buc991

    8 ай бұрын

    and vue 3 is just worse react

  • @ghalamat2821

    @ghalamat2821

    8 ай бұрын

    @@buc991 I am curious what made you come up with this idea

  • @faridguzman91

    @faridguzman91

    8 ай бұрын

    @@buc991how can you be so wrong lol

  • @anthonysteinerv

    @anthonysteinerv

    8 ай бұрын

    yeah but worse, heavier, and slower and wrapper dependent

  • @breezycodes
    @breezycodes8 ай бұрын

    Vue 3? Yay 🎉

  • @bunnykek
    @bunnykek2 ай бұрын

    11:33 lmao funny af

  • @Wielorybkek
    @Wielorybkek8 ай бұрын

    I like Angular

  • @nextorLeon
    @nextorLeon8 ай бұрын

    instead of outer i always use "break dance"

  • @grinsk3ks
    @grinsk3ks8 ай бұрын

    5:40 that's why I love vue. You can extract component code into plain js by just copying it. That's what threw me of svelte. Using writeable was kinda weird.

  • @cooltune

    @cooltune

    8 ай бұрын

    Yeah I don't think a lot of people realize this. the power of writing the same code inside components and es-modules, is the most liberating thing.

  • @tharnos767
    @tharnos7678 ай бұрын

    With all these new frameworks coming out and these major changes to existing ones, I'm more confident by the day that Vue was right all along.

  • @nooalovern

    @nooalovern

    8 ай бұрын

    Virtual DOM :/

  • @dejangegic

    @dejangegic

    8 ай бұрын

    I used to be a Vue guy, it's really good, especially compared to React and Ang**ar. But give Svelte a try, it's a breath of fresh air. You can just ignore runes

  • @hamm8934

    @hamm8934

    8 ай бұрын

    @@nooalovern they’re adding vapor mode this quarter which is signals that you can enable at the app or component level and will work without a build step as well

  • @modernkennnern

    @modernkennnern

    8 ай бұрын

    "right all along". You are aware that they did a huge change as well just a few years ago, right? Vue has gone through 3 main phases as well; Vue options API (The old, ugly, domain-cutting syntax), Vue Class Components(The old, 2nd-party, class-based boilerplate-ridden syntax), and the most recent composition API. All of the major languages have had major changes throughout the years; Svelte is far from alone in this. React has had the most

  • @hamm8934

    @hamm8934

    8 ай бұрын

    @@modernkennnern I think he’s referring to Evan You’s “svelte script” tweet about the problem with having a separate JS environment in the compiler

  • @sinasalahshour
    @sinasalahshour8 ай бұрын

    svelte is nice

  • @nykowow
    @nykowowАй бұрын

    How can I achieve routing in htmx?

  • @ba8e
    @ba8e8 ай бұрын

    Svelte saved my fucking life!

  • @solitary200
    @solitary2008 ай бұрын

    Svelte #1

  • @patricknelson
    @patricknelson8 ай бұрын

    I saw their demo for declaring props, which is def nice since it has additional features and is a good option. That said: I still really like the elegance and simplicity of “export let” as your means of defining props. At least aesthetically. 🤷‍♂️ Hope that doesn’t go away in Svelte 6, for example.

  • @noherczeg
    @noherczeg8 ай бұрын

    Learning compiler - driven behavior is much worse than learning plain API-s. The fact that you don't even need to import $props or $derived should also be classified as "magic". In e.g. React I can observe every available API by pressing Ctrl + Space in the import block which is a native language feature.

  • @rapzid3536
    @rapzid35368 ай бұрын

    Mobx and chill going on 7 years.

  • @soundrightmusic
    @soundrightmusic8 ай бұрын

    Svelte becoming Vue

  • @MichaelBrauner-dq4de
    @MichaelBrauner-dq4de8 ай бұрын

    What makes htmx better than hotwire, other than being newer?

  • @hnazmul

    @hnazmul

    8 ай бұрын

    I think they are just kidding about htmx.

  • @DarrylHebbes
    @DarrylHebbes4 ай бұрын

    The appearance of the word colour most likely means Rich Harris himself wrote it.

  • @monad_tcp
    @monad_tcp8 ай бұрын

    When I'm going to see Elm-like things ?

  • @amn3siacx
    @amn3siacx8 ай бұрын

    hahaha that was good :D about quitting :D

  • @PwrXenon
    @PwrXenon8 ай бұрын

    Best framework is state on the backend and dom manipulations when needed ❤

  • @mikeonthebox
    @mikeonthebox7 ай бұрын

    Svelte risking a lot with this changes. Lets see how it turns out once Svelte 5 comes out, but all this overhead and boilerplate definitely feels like a huge stepback.

  • @mpiorowski
    @mpiorowski8 ай бұрын

    Svelte Power!

  • @monad_tcp
    @monad_tcp8 ай бұрын

    7:09 they finally killed React

  • @shadow_vertex
    @shadow_vertex8 ай бұрын

    Most important part of the video 2:28

  • @thierrybeaulieu4403
    @thierrybeaulieu44038 ай бұрын

    this guy works at Netflix btw

  • @CrzyMan_Personal
    @CrzyMan_Personal8 ай бұрын

    Svelte is going from a soft magic system to a hard magic system. People are smad about it

  • @Eldarlll

    @Eldarlll

    6 ай бұрын

    Underrated joke

  • @beebomation4508

    @beebomation4508

    4 ай бұрын

    love this

  • @sankalpmukim1052
    @sankalpmukim10528 ай бұрын

    Is Svelte 4 becoming React?

  • @SvelteSociety
    @SvelteSociety8 ай бұрын

    *chefs kiss*

  • @user-fo8zl6iw9u
    @user-fo8zl6iw9u8 ай бұрын

    Yet another atomic store like reatom. Reinvented. Congratulations 🎉

  • @brunor.922
    @brunor.9228 ай бұрын

    How to loop WITHOUT loop in GoLang import "fmt" func main() { A: fmt.Println("A") fmt.Println("B") goto A // i love the fact that goto statements are available inside go }

  • @user-of6ls2ng5l
    @user-of6ls2ng5l8 ай бұрын

    JQuery vibe

  • @kibaakashi9602
    @kibaakashi96028 ай бұрын

    Goodbye svelte

  • @Jeff-co.
    @Jeff-co.Күн бұрын

    Svelte is amazing... was amazing. Just like Vue, Svelte had an original and unique idea of how to handle state and build pages. It was its own thing, different from Angular/React/Vue. But now, just like Vue 3, Svelte 5 is slowly changing into React. This thing about "$derived", "$state", "$effect", is all just React useMemo, useState, useEffect. Vue stopped being Vue on version 3, and so its originallity lasted 2 versions (up to Vue 2). Now Svelte's originallity would've lasted 4 versions, because version 5 just proved, yet again, that React has been right all along. Two amazing frameworks, Vue and Svelte, who started gorgeouslly doing their own thing and making devs around the world fall in love and have faith in modern JS, have now copied React and become what they were originally trying to defeat. What a sad time for all JS devs. I'll have to keep with Svelte 3/4, just like I've kept with Vue 2. Knockout was right all along. Svelte... was amazing.

  • @chm10323
    @chm103238 ай бұрын

    finally the svelte claim that they make a witchcraft; how magically cool it is

  • @chm10323

    @chm10323

    8 ай бұрын

    but I support the lifecycle instead of just $effect,

  • @JoepKockelkorn
    @JoepKockelkorn8 ай бұрын

    How come no one mentions Qwik also has these already with the additional benefit of breaking stuff up into chunks and improving time-to-interaction? $state = signal $effect = useTask$/useVisibleTask$/useResource$ $derived = useComputed$ $props = just normal function args

  • @aislanarislou

    @aislanarislou

    8 ай бұрын

    " useTask$/useVisibleTask$/useResource$ " ---> what a strange names... duurrrrr!!!!!!!!!

  • @programaths
    @programaths8 ай бұрын

    And those who don't know about function use two nested for with a break. 😂

  • @nightshade427
    @nightshade4278 ай бұрын

    So svelte is now vue? They're nearly 1:1 now in look and feel and behavior. I think it's crazy no one ever talks about vue on these channels (like it's the red headed step child), but then it's like all these frameworks are becoming more and more vue like, and they are praising them, but still ignore vue?

  • @maharta8458

    @maharta8458

    8 ай бұрын

    Yeah it's weird

  • @fennecbesixdouze1794

    @fennecbesixdouze1794

    8 ай бұрын

    Not quite. It's like Vue 3, but not quite as nice because of all the baggage tacked on from the old API.

  • @anthonysteinerv

    @anthonysteinerv

    8 ай бұрын

    what crack u smokin?

  • @tiagocerqueira9459
    @tiagocerqueira94598 ай бұрын

    I'm not sure I like the direction svelte is taking

  • @fennecbesixdouze1794
    @fennecbesixdouze17948 ай бұрын

    So in other words it's taken six years, but the Svelte team is finally taking Evan You's famous "svelte-script" tweet to heart. Glad the Vue team also took the tweet to heart and abandoned the reactivity transform proposal.

  • @vikingthedude

    @vikingthedude

    8 ай бұрын

    I think about that tweet everytime i look at svelte code

  • @HydeSladd
    @HydeSladd8 ай бұрын

    yuh yuh yuh yuh

  • @DreanPetruza
    @DreanPetruza8 ай бұрын

    $ brings me nightmares from my 17 years of PHP. Ugh! Also, is Svelte turning silently into React?

  • @TheVertical92
    @TheVertical928 ай бұрын

    I dont think i like the direction svelte is going with this. This feels like Vue3. And what about TS?

  • @eppiox
    @eppiox8 ай бұрын

    always hated 'effect' as a name.. feels like it makes sense to be named something else

  • @nomadshiba
    @nomadshiba8 ай бұрын

    5:40 tf is `.js`???

  • @SXsoft99
    @SXsoft998 ай бұрын

    Js using $, finally you can get as much dolars as in php taking the joke aside, it's like you write code in C with pointers

  • @thesaintseiya
    @thesaintseiya7 ай бұрын

    I am glad I'm investing time into Solid instead of Svelte haha No point to learn Svelte 5 when you already know Vue 3, especially when their syntax is horrible...

  • @j1d7s
    @j1d7s8 ай бұрын

    I wouldn't use a coin to decide between React and Angular, I would use a 20-sided dice and pick Angular when it shows 21. For me the current hierarchy is htmx > Svelte > Solid > ClojureScript > React > a pile of horse manure > Angular.

  • @JakoTheWacko

    @JakoTheWacko

    8 ай бұрын

    Where does vue fit in?

  • @hamm8934

    @hamm8934

    8 ай бұрын

    And Vue has been trumping them all for years

  • @shrin210

    @shrin210

    8 ай бұрын

    why svelte > solid Performance is better of solid

  • @j1d7s

    @j1d7s

    8 ай бұрын

    @@JakoTheWacko I did not comment on frameworks that I did not use, which is the case with Vue.

  • @j1d7s

    @j1d7s

    8 ай бұрын

    @@shrin210 Maybe, I but like the Svelte approach and syntax in particular more.

  • @dracula5752
    @dracula57528 ай бұрын

    i choose vue because had nice router but now seems like i made right choose

  • @mariogutierrez4989

    @mariogutierrez4989

    8 ай бұрын

    Unless I'm mistaken, runes are analagous to Vue's `ref`, `computed`, `watchEffect`. From what I've read in blogs, SvelteKit is the reason to stay with Svelte over Nuxt+Vue.

  • @Ataraxia_Atom
    @Ataraxia_Atom8 ай бұрын

    I really like svelte

  • @oussama40612
    @oussama406128 ай бұрын

    Svelte's syntax seems to become worse every time

  • @theohallenius8882
    @theohallenius88828 ай бұрын

    Don't like this direction of Svelte, so far never had any issues with the way I use Svelte now. At least current API is not deprecated, so that's a plus+

  • @_y7ya

    @_y7ya

    8 ай бұрын

    They plan to deprecate/completely delete it in svelte 6/7.

  • @hamm8934

    @hamm8934

    8 ай бұрын

    Theyve needed to fix this since the start

  • @WinterHawke

    @WinterHawke

    8 ай бұрын

    I'm also skeptical, it feels like we're losing the best parts of svelte and making more react -like. I like the store changes. But everything else seems unnecessary.

  • @_y7ya

    @_y7ya

    8 ай бұрын

    @@WinterHawke Yeah agreed, I already had a hard time convincing colleagues to use svelte over react, now there's even less reason to switch. And if performance was really an issue, solidjs would make more sense.

  • @Raynhardx

    @Raynhardx

    8 ай бұрын

    Look at the introduction video. It's still svelte. The termonology "signal", "effect" and "state" are unfortunate. You draw a connections with patterns that emerged in other frameworks you clearly dislike. But that is not what svelte is doing here. Watch the video. It's nothing like that signals/react/vue at all. Instead of highjacking javascript `let x = 1` and `$: y = 2 * x`, you write instead `let x = $state(1)` and `y = $derived(2 * x)`. You don't even import `$state` and `$derived`. Those are just markers for the compiler, not functions. Nothing else changes, except that those things now work outsite .svelte files and in nested code.

  • @gustavbw
    @gustavbw8 ай бұрын

    Softcore React

  • @fennecbesixdouze1794
    @fennecbesixdouze17948 ай бұрын

    "This works well... until it doesn't." Describes literally the entire design of Svelte. Something like $derived is just plain wrong. It doesn't solve the problem. area = $derived(width + height) is not any more ergonomic than area = computed(() => width.value + height.value) all it is is simply worse. Because if I look at the latter, I actually know what it is. There is no magic. I can refactor it, it works just like any other javascript. There are no red functions and blue functions.

  • @nomadshiba

    @nomadshiba

    8 ай бұрын

    i agree but there is one problem when you have it inside a function, within the html template, you can't narrow types well i have been writing my own hobby ui framework, its a problem, solid has the same problem as well. its not about its ergonomics its not nice, but a good solution for narrowing issue

  • @anthonysteinerv

    @anthonysteinerv

    8 ай бұрын

    I guess when you don't go to college and you are simply a braindead frontend dev I can see how compilers can be magic to the plebs.

  • @edo7283
    @edo72838 ай бұрын

    Add some bass into your mic, ears can't handle this much treble

  • @dinyox
    @dinyox8 ай бұрын

    Funny, vue tried to become svelte with $ref() and ditch '.value' using reactivity transform though they canceled it. Everything is just going circle lmao.

  • @anonAcc575
    @anonAcc5758 ай бұрын

    Solidjs continues to be infulential.

  • @venir_dev
    @venir_dev8 ай бұрын

    > signals have been popularised by Solid ACHKUTALLY, the first doing it after knockout was Vue3's composition API, which is identical to Svelte 5, but people be hatin' on that ecosystem lmao

  • @fennecbesixdouze1794

    @fennecbesixdouze1794

    8 ай бұрын

    Well, much of the ecosystem is still stuck on Vue 2. And Vue 3 still allows you to use the options API if you want, which is not a plus. Imagine going into an industry job where half the code base is still using options API and half is composition: it's the worst of both worlds. Even if you're starting a new project write now, make sure to set up your pipelines to reject any PR that contains the words "defineComponent", or you're only one clueless junior away from having that hot garbage littering your code base.

Келесі