Rich Harris Teaches ThePrimeagen SvelteKit

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ก.ย. 2024
  • Recorded live on twitch, GET IN
    / theprimeagen
    MY MAIN YT CHANNEL: Has well edited engineering videos
    / theprimeagen
    Discord
    / discord

ความคิดเห็น • 236

  • @Ratstail91
    @Ratstail91 ปีที่แล้ว +925

    "What is the best way to learn Svelte?"
    "Learn React first - it'll be a great motivator"

    • @ThePrimeTimeagen
      @ThePrimeTimeagen  ปีที่แล้ว +204

      haha, great line

    • @bronzekoala9141
      @bronzekoala9141 ปีที่แล้ว +22

      Or Angular.... I like Angular but some obvious things are so unnecessarily complicated....

    • @JEsterCW
      @JEsterCW ปีที่แล้ว +18

      @@bronzekoala9141 whole angular ecosystem is unnecessarily complicated and thats why nobody wants to work in this framework lmao, atleast angular devs are making bank lmao

    • @bronzekoala9141
      @bronzekoala9141 ปีที่แล้ว +5

      @@JEsterCW Well - I am one now 😂 although I'd rather have my company use svelte. But it's fine I'll get used to it.

    • @markusmachel397
      @markusmachel397 ปีที่แล้ว +2

      @@JEsterCW i guess i need to look at my contract

  • @nullbeyondo
    @nullbeyondo ปีที่แล้ว +2

    I'm glad they did that stream. Rich Harris seems like a cool guy and this video with feedback from ThePrimeagen would help improve Svelte more.

  • @carloslfu
    @carloslfu ปีที่แล้ว +5

    I really enjoyed watching the face of Rich looking at Prime like :O the whole time. Like thinking, what's going to say this guy next? hahaha

  • @cubondemais
    @cubondemais 3 หลายเดือนก่อน +1

    watching this in 2024 after Svelte 5 entered release candidates stage. At 35:25 ThePrimeagen complains about not being able to mutate objects and just letting the garbage collector run wild and I'm thinking that he would be really happy to know that, in Svelte 5, state will be fully deeply reactive with mutations, not only assignments.

  • @RobertoOrtis
    @RobertoOrtis ปีที่แล้ว +2

    Awesome video! Very entertaining. I love svelte and rust! It’s hard to decide between all front end frameworks available though.

  • @tyunpeters3170
    @tyunpeters3170 ปีที่แล้ว +2

    This was more of a Svelte lesson and not SvelteKit, since there was no data loading or retrieval

  • @mpiorowski
    @mpiorowski ปีที่แล้ว +9

    After You try Svelte, it's so hard to go back to React.......and it's not even all the big things, but even the small ones, like the one that You don't need to wrap jsx in "Fragments" if needed, css scoped to component, prop with default value is automatically "or undefined" ...all these small things gathered togethere just make it absolutely amazing experience. @ThePrimeTime why not putting this on Your main account ? :) Spread the Svelte Love!

  • @najlepszyinformatyk1661
    @najlepszyinformatyk1661 ปีที่แล้ว +1

    37:45 the funniest moment :#

  • @regularyt-pz4ki
    @regularyt-pz4ki 8 หลายเดือนก่อน

    Excuse you react is a library

  • @useruser-ti1og
    @useruser-ti1og ปีที่แล้ว

    Should this be called "Rich Harris Teaches ThePrimeagen SvelteKit" or "ThePrimeagen teaches Rich Harris Rust"? :p

  • @kuglepen64
    @kuglepen64 ปีที่แล้ว

    Oh, it’s like PHP.

  • @yatsuk
    @yatsuk 3 หลายเดือนก่อน

    There are many comparisons with React, but I believe Svelte should be compared to Vue.

  • @reconmaster907
    @reconmaster907 11 หลายเดือนก่อน

    Svelte has Syntax very similar to jinja2

  • @leeeass840
    @leeeass840 ปีที่แล้ว

    49:26 could somebody please explain how does one write front end in Rust?

  • @ebmpinyuri
    @ebmpinyuri ปีที่แล้ว +797

    I like the fact that Rich Harris does not pretend to know everything especially even things he has made himself lmao

    • @kevinkkirimii
      @kevinkkirimii ปีที่แล้ว +71

      It's called maturity.

    • @wadecodez
      @wadecodez ปีที่แล้ว +84

      he's not pretending or humble. he just works with a lot of code. too much for any one person to memorize.

    • @Knigh7z
      @Knigh7z ปีที่แล้ว +8

      You can't remember everything either

    • @markmesser4454
      @markmesser4454 ปีที่แล้ว +4

      pretty sure he was referring to the inner workings of the tutorial "framework" - much of which he did not personally author

    • @obrien8228
      @obrien8228 ปีที่แล้ว +4

      ​@@wadecodez plenty of people out there who will not admit that they don't know/ remember something. I give him a bit of credit

  • @ISKLEMMI
    @ISKLEMMI ปีที่แล้ว +115

    "ThePrimeagen teaches Rich Harris Rust"
    Rich Harris is the man! So glad you guys did this.

  • @effen5931
    @effen5931 ปีที่แล้ว +98

    ever since i started using Svelte, man nothing else can beat its simple way of solving annoying repoetitive things when building websites, add on that speed and the fact that it's JS inside HTML, super sweet

  • @Hobbitstomper
    @Hobbitstomper ปีที่แล้ว +36

    Comic Sans MS is a proprietary typeface owned by Microsoft and requires a license for commercial use. It is pre-installed on Windows and macOS but not on Android, iOS or Linux.

  • @DEVDerr
    @DEVDerr ปีที่แล้ว +171

    Bad that you didn't touch Svelte Stores and transitions. For me, they're the best Svelte features.
    Stores especially, because they finally nail the global state part. And it does it so well that I started to think why the hell stores in React had to be so absurdly complex

    • @skl9942
      @skl9942 ปีที่แล้ว +3

      Exactly what I was thinking!

    • @SpaceChicken
      @SpaceChicken ปีที่แล้ว +2

      Same. Transitions were enough for me, store is so insanely useful. Wonderful features.

    • @baka_baca
      @baka_baca ปีที่แล้ว +3

      Stores are definitely one of my favorite features too! The only things that have come close are Zustand and Pinia, both really good options but neither of which gives quite the same feeling of simplicity and elegance as Svelte stores. I've never had so little trouble making as many stores as I wanted, each being easily customizable to any degree, and then having everything just plain work even though I had just learned it all ! Svelte still strikes me as something truly special in a field crowded with options.

    • @mfpears
      @mfpears ปีที่แล้ว +4

      Stores nail state management like jQuery nails the DOM.

    • @Pavel-wj7gy
      @Pavel-wj7gy ปีที่แล้ว +2

      Stores in react are so absurdly verbose that they may cost you a job.

  • @fitsbachinteractive
    @fitsbachinteractive ปีที่แล้ว +98

    Imagine writing JSX/TSX thinking it's a smooth experience and being one of those that picked "heard about it, not interested" for Svelte/SvelteKit in the StateOfJs annual survey.
    Rich Harris just understands not only what the user experience should be like but the developer experience should be like to.
    Great video. Thanks to both of you

    • @ts8960
      @ts8960 ปีที่แล้ว +2

      JSX is superior DX to svelte

    • @semyaza555
      @semyaza555 ปีที่แล้ว +11

      @@ts8960absolutely not.

    • @MCasterAnd
      @MCasterAnd ปีที่แล้ว +15

      @@ts8960 are you drunk

  • @_timestamp
    @_timestamp ปีที่แล้ว +9

    3:30
    Harris: I don't love doing it in front of an audience of 800 people
    The people: 54k

  • @nullbeyondo
    @nullbeyondo ปีที่แล้ว +14

    If you're new to Svelte and/or coming from React, this video is literally a complete tutorial and also entertaining with actual questions that you might have Wow. You don't need to go anywhere else. I think it was more accurate to rename the title to "Svelte" instead of "SvelteKit" cause it doesn't really teach about SvelteKit or the concept of layouts, routes, and adapters.

  • @NatoBoram
    @NatoBoram ปีที่แล้ว +9

    The best feature is definitely the {#await} keyword. You can start a call, assign the promise somewhere, and have the UI automatically handle all possible states of the promise in a declarative way.

  • @gundo1234
    @gundo1234 ปีที่แล้ว +37

    The Rick Roll Part😂

  • @metatronicx
    @metatronicx ปีที่แล้ว +23

    That part is so true 19:36. I've had a hard time integrating third party libraries in other frameworks especially in Next.js. But it was so easy and straightforward in SvelteKit. SvelteKit is just an amazingly easy framework and I really really like that.

  • @xtraszone
    @xtraszone ปีที่แล้ว +15

    Him: React is not a framework its a library
    Rich: Thats absurd 😂😂

    • @asdfghyter
      @asdfghyter 11 หลายเดือนก่อน

      Rich is 100% correct

  • @lcarv20
    @lcarv20 ปีที่แล้ว +29

    Svelte doesn’t get the love it deserves

    • @IStMl
      @IStMl ปีที่แล้ว +2

      it slowly does

    • @IamSH1VA
      @IamSH1VA 11 หลายเดือนก่อน +1

      It will one day, the way React & other frameworks are progressing. Future seems bright for Svelte.

  • @markmesser4454
    @markmesser4454 ปีที่แล้ว +9

    Rich Harris has a great deal of patience 🙄

  • @minikame2272
    @minikame2272 ปีที่แล้ว +7

    Is it me or does Rich's accent get increasingly South London as he eases into the interview

  • @VemVareSomTossa
    @VemVareSomTossa ปีที่แล้ว +4

    so ruby rails in rust? wait is it backwards? what? Ima confused #juniorprogramer.. I cant spell, wont**

  • @RedHandedBug
    @RedHandedBug ปีที่แล้ว +6

    Comic Sans MS on the discount Mac >_

  • @danvilela
    @danvilela ปีที่แล้ว +9

    Bro the rust part 🤣🤣🤣🤣 Caught Rich completely off guard.

  • @cre8ive65
    @cre8ive65 ปีที่แล้ว +23

    Been running SvelteKit in prod since the early beta. Dealing with the breaking changes as it matured to full release was well worth it, and I would gladly make that same choice again.

  • @TheDanVail
    @TheDanVail ปีที่แล้ว +6

    Ah shit I’ve been wanting to learn Svelte(Kit) let’s go daddy

  • @CodeTalker23
    @CodeTalker23 ปีที่แล้ว +4

    You gotta try F# with don syme or something if u love Rust, F# is pretty close and cool :D greate stream tho

  • @tthiagolino8
    @tthiagolino8 ปีที่แล้ว +8

    Great conversation, especially the part where you broke the New York Times paywall
    It's just a shame you didn't get to address stores and transitions/animations during the conversation, they are in my opinion the best part of Svelte (some frameworks even have apis for state management but none using an open contract approach like Svelte)

  • @stashladki2594
    @stashladki2594 ปีที่แล้ว +5

    The funniest thing to me is that all the concepts Prime reacts "wow!!" to, aren't all particularly new and most got introduced by Angular long time ago which is considered to be hated out of this world by the same people :D

  • @javierflores09
    @javierflores09 ปีที่แล้ว +37

    I was just doing the svelte tutorial yesterday myself, and the error making it lose focus drove me nuts too. Other than that, it does seem like a nice introduction to Svelte.
    Edit:
    Also, what I think Rich Harris meant at 47:16 is that you could just have done:
    $: validated = name == "Hello world";
    and it'd have worked

  • @DamonMedekMusic
    @DamonMedekMusic ปีที่แล้ว +5

    I've used Svelte daily for over a year and I still love it. Extremely minimal and straightforward. Stores are great. Docs are great. My hardest challenge was using the backend as a rest api as a internal database for forms but once I figured that out theres really nothing it can't do so far.

  • @davidroberts1037
    @davidroberts1037 ปีที่แล้ว +3

    Unlike most people here i am a pretty new programmer. Ive written a few things and the Ecom site for my own business but that is about it. The tutorial and this video was well thought out enough even I got it...mostly. My Thanks gentlemen

  • @TsoiIzAlive
    @TsoiIzAlive ปีที่แล้ว +7

    The "You pee outside" got me!
    Props to you this was aawesome to watch! I constantly imagined this would be me during my technical Interview having to laugh all the time 😂

    • @ThePrimeTimeagen
      @ThePrimeTimeagen  ปีที่แล้ว +6

      that is good! want to make sure people feel amazing

    • @kahnfatman
      @kahnfatman 11 หลายเดือนก่อน

      The smell is awesome after a month

  • @LeagueJeffreyG
    @LeagueJeffreyG 8 หลายเดือนก่อน +1

    God I hate react and I like svelt

  • @poolkrooni
    @poolkrooni 10 หลายเดือนก่อน +1

    What Rich meant for the validated function was:
    $: validated = name === 'hello world'
    and then in the template part you could simply have
    {#if validated}

  • @nacs
    @nacs 10 หลายเดือนก่อน +2

    Rich Harris is amazing. Insanely smart but more importantly -- relatable and humble.

  • @voidmind
    @voidmind ปีที่แล้ว +2

    You can tell whoever coded this demo app did it in a Windows centric (Comic sans) and Chrome centric way (I wouldn't be surprised that all the issue Primagen found go away if you use Chrome).

  • @avidworkslol
    @avidworkslol ปีที่แล้ว +7

    Rich is awesome. Love watching his interviews.

  • @heitorlopes9914
    @heitorlopes9914 ปีที่แล้ว +2

    Earned my like after just hanging out by the fireplace together! Amazing vids, Primeagen!

  • @joaodiasconde
    @joaodiasconde ปีที่แล้ว +4

    Svelte seems amazing, so simple, so effective.

  • @saeedatenzi
    @saeedatenzi ปีที่แล้ว +4

    If you value your life learn svelte
    If you want a job...
    Just learn svelte, there are jobs for svelte and it also values your life

  • @BrandonAaskov
    @BrandonAaskov หลายเดือนก่อน

    I loved Rich Harris for his philosophy and approach to svelte and sveltekit but this is the first time I’m hearing and seeing him. Now I’m even more impressed. His humility is fantastic to see.

  • @thederpykrafter
    @thederpykrafter 6 หลายเดือนก่อน +1

    At 18:55 prime just casually reaches into rich's chest lol

    • @jamesdupuis3249
      @jamesdupuis3249 2 หลายเดือนก่อน

      To see if it was beating? If it was cold? Why?

  • @RootsterAnon
    @RootsterAnon ปีที่แล้ว +1

    I don't like when people mention their wealth before last name. That means I'm Poor Rootster... don't like it...😥. Great video 🥰

  • @flamendless
    @flamendless ปีที่แล้ว +2

    Wow ryan gosling is a programmer

  • @thepolygotcoder
    @thepolygotcoder ปีที่แล้ว +2

    you know - I love understanding the ins and outs of stuff - great video - I just love to understand how things work - sooooo listening to rich talking about the actual coding that he and a group have done......wow --- thanks alot guys

  • @vellankiindeevar5530
    @vellankiindeevar5530 ปีที่แล้ว +2

    man you youtubers are so lucky , you get to learn from who build sveltekit

  • @bernardoalves3642
    @bernardoalves3642 ปีที่แล้ว +3

    27:00 It's preaching time

  • @user-hk3ej4hk7m
    @user-hk3ej4hk7m ปีที่แล้ว +1

    On the little intermission about rust traits: that's just syntax sugar for function overloads on return types. Julia, Haskell and many other functional languages allow you to define custom operators on types to do the same thing, or even just using functions, there's nothing special about the dot operator. For some reason rust takes this roundabout overly explicit road just to do function overload on return types.

  • @kokizzu
    @kokizzu ปีที่แล้ว +1

    framework/compiler i love the most past 4 years XD

  • @darkarie
    @darkarie ปีที่แล้ว +4

    we need a part 2 of this !!

  • @stijndcl
    @stijndcl ปีที่แล้ว +1

    What you said about halfway, about Rust standard library types implementing your own traits but only when you import it, is also how it works in Kotlin (extension functions). For example, in Android you can import an extension function on the base "Int" type for sizing (using px or dp or whatever unit), so you can write things like 23.dp.

  • @srdjanpro
    @srdjanpro 6 หลายเดือนก่อน

    For once, can someone name a library that can't be used with React out of the box? 19:40

  • @notnotjake
    @notnotjake 6 หลายเดือนก่อน

    does he just move fast to seem like he knows what he's doing? he seems a bit dense on many of these topics..

  • @metatronicx
    @metatronicx ปีที่แล้ว +1

    37:44 🤣🤣🤣 see that pain in the face ThePrim😂gen when Rich says he's a vs code user 😅

  • @rOxinhoPKK
    @rOxinhoPKK ปีที่แล้ว +1

    this seems much more sensical than react

  • @sirajmussafirr147
    @sirajmussafirr147 ปีที่แล้ว +1

    Two poor fellas who got a new life:
    labels in js
    Enums in Rust

  • @7heMech
    @7heMech ปีที่แล้ว +1

    Now I wanna write something in Svelte.

  • @fullercarey6392
    @fullercarey6392 11 วันที่ผ่านมา

    Young Barbara Moore Patricia Taylor Barbara

  • @christopherenriquez9765
    @christopherenriquez9765 ปีที่แล้ว +1

    Everyone got Rick Rolled lol

  • @aps69
    @aps69 29 วันที่ผ่านมา

    This might be the best resource to learn svelte

  • @AdowTatep
    @AdowTatep ปีที่แล้ว

    Talking about the rust part. Just because I'm interested in learning rust, when he shows the contains_range method, isn't it the same as c# extension methods? The difference being that it's scoped to that file though, like he mentioned.
    Oh yeah i just saw it's called extension traits
    (i know that rust has other stuff other than just that, too)

  • @ofeenee
    @ofeenee ปีที่แล้ว +1

    Where’s the rest? :(

  • @lifelover69
    @lifelover69 ปีที่แล้ว +1

    18:50 Prime suddenly reaching into Rich's rib cage sent me

  • @badunius_code
    @badunius_code ปีที่แล้ว

    48:10 it feels like using a function here is sub-optimal, because it's going to re-render the block on every name change, whereas we only need to re-render on validation result change
    `$: validated = name == "whatever" // this reacts to the name changes
    ...
    {#if validated} // this reacts to the validation result changes`

  • @stugeh
    @stugeh ปีที่แล้ว +5

    Im so upset there are no svelte jobs in my country, it seems like a step up from vue as far as dx goes.

    • @RodrigoDAgostino
      @RodrigoDAgostino ปีที่แล้ว +1

      Yes, indeed! And crearly Svelte took plenty of things from Vue, which ensured its good DX, and these guys took it even further :)

  • @miezekatze3536
    @miezekatze3536 ปีที่แล้ว +3

    everything you told about rust was literally just copied from Haskell...

  • @mattmmilli8287
    @mattmmilli8287 7 หลายเดือนก่อน

    This seems like a worse React from some salty devs 🙈 at least they kept JSX

    • @biesman5
      @biesman5 7 หลายเดือนก่อน

      Lmao what? Working with Svelte is around 10 times more enjoyable.

  • @dmitriyobidin6049
    @dmitriyobidin6049 ปีที่แล้ว

    29:35 So it's like extension of some sort(swift have those, for example), but just because it's in rust it's automatically magical?

  • @jasonrooney1368
    @jasonrooney1368 ปีที่แล้ว

    Theo still doesn’t know that Vue has used signals for years and has a very similar pattern with the composition API.

  • @UGPepe
    @UGPepe ปีที่แล้ว

    so much crap going on in the demo that you can't even write hello slow enough. that's web developers for ya

  • @irlshrek
    @irlshrek ปีที่แล้ว +1

    holy shit! i cant believe this is happening

  • @shirecoding2440
    @shirecoding2440 8 หลายเดือนก่อน

    this looks really like webcomponents, wondering is it using webcomponents underneath?

  • @Yoshie_2000
    @Yoshie_2000 ปีที่แล้ว

    Do how I access the requested URL in server components with the new app directory? I just can't figure it out!

  • @ernestobrussli4160
    @ernestobrussli4160 7 หลายเดือนก่อน

    where is the rest? I want the full tutorial! Did you boot Rich Harris?!? XD

  • @_danisson
    @_danisson ปีที่แล้ว

    Svelte is great, but documentation sucks. Hope they include ssr streaming

  • @ba8e
    @ba8e ปีที่แล้ว

    No joke, Svelte saved my life... I nearly gave up from all the React bullshit.

  • @SemRosto-b9z
    @SemRosto-b9z ปีที่แล้ว

    Reminds SwiftUI very much. I think will definitely try Svelte for front-end part

  • @rasalas91
    @rasalas91 9 หลายเดือนก่อน

    lmao the Rust rant :D

  • @theodorealenas3171
    @theodorealenas3171 ปีที่แล้ว

    I can't understand a lot of what they're saying, and that scares me out

  • @romania-n6q
    @romania-n6q 9 หลายเดือนก่อน

    i am not a react funboy but svelte needs optimization it needs time for us to make sure it works the way it should

  • @starstuff606
    @starstuff606 9 หลายเดือนก่อน

    I love that I stumbled across this video as im about to start learning Svelte. No better way to start than right here :D thanks for the video

  • @RafaelToscano
    @RafaelToscano ปีที่แล้ว

    7:14 - “did you really just do this to me?” 😂😂😂😂😂😂😂

  • @kahnfatman
    @kahnfatman 11 หลายเดือนก่อน

    Your colon is on the wrong side, Prime! You'd better see your doctor.

  • @siyaram2855
    @siyaram2855 ปีที่แล้ว

    Came after reading Now that React is Dead, What is the next Big Thing?

  • @thanhdatvo0
    @thanhdatvo0 ปีที่แล้ว

    Should I learn Rust?
    _ Rich Harris_😅

  • @WyzrdCat
    @WyzrdCat ปีที่แล้ว

    Hey Rich, if you like watching people break stuff that normally works perfectly, you'd love watching me try to use stuff, because everything always breaks in the weirdest ways around me and people who know what they're talking about are always like.. that should not happen.

  • @dforj9212
    @dforj9212 11 หลายเดือนก่อน

    Funny reaction from Prime when Rich says React is a framework

  • @vodyl
    @vodyl ปีที่แล้ว

    It's clear that... it's a firewall betwen them :)..

  • @zakariachahboun
    @zakariachahboun ปีที่แล้ว

    Listen Rich don't learn Rust Learn GO! 😒

  • @kitastro
    @kitastro ปีที่แล้ว

    if its not comic sans ms then its cursive.
    Linux has a ms fonts package

  • @dmitriyobidin6049
    @dmitriyobidin6049 ปีที่แล้ว

    My only question to svelte is - does it have any limitations? Is there anything that we can build with react/angular/vue, that wouldn't be able to build with svelte?

    • @moon_bandage
      @moon_bandage ปีที่แล้ว

      Not with the purely view related part. So svelte vs react you would be able to build the same things, because they fill the same gap: reactivity between JS and the DOM it's all they do.
      It's a different story for SveleKit and Next. Next might be more advanced