"What is the best way to learn Svelte?" "Learn React first - it'll be a great motivator"
@ThePrimeTimeagen2 жыл бұрын
haha, great line
@bronzekoala91412 жыл бұрын
Or Angular.... I like Angular but some obvious things are so unnecessarily complicated....
@JEsterCW2 жыл бұрын
@@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
@bronzekoala91412 жыл бұрын
@@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.
@IzzyIkigai Жыл бұрын
Honestly, I think React is just a good example for how swathes of the dev community have become slowly boiled frogs. Like what kind of unpaid intern at Facebook thought HTML syntax in the middle of javascript code was a good idea?? I mean, I've been out of the loop for frontend for a few years and came back to shit like that. Looked at what's hot and p much the only thing that didn't make me want to chug up my coffee like i'm a pressure washer was svelte... Everything else just looks like people threw together "what we learned not to do" examples..
@ebmpinyuri2 жыл бұрын
I like the fact that Rich Harris does not pretend to know everything especially even things he has made himself lmao
@kevinkkirimii Жыл бұрын
It's called maturity.
@wadecodez Жыл бұрын
he's not pretending or humble. he just works with a lot of code. too much for any one person to memorize.
@Knigh7z Жыл бұрын
You can't remember everything either
@toothuncommon0 Жыл бұрын
pretty sure he was referring to the inner workings of the tutorial "framework" - much of which he did not personally author
@obrien8228 Жыл бұрын
@@wadecodez plenty of people out there who will not admit that they don't know/ remember something. I give him a bit of credit
@ISKLEMMI2 жыл бұрын
"ThePrimeagen teaches Rich Harris Rust" Rich Harris is the man! So glad you guys did this.
@effen59312 жыл бұрын
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
@fitsbachinteractive Жыл бұрын
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 Жыл бұрын
JSX is superior DX to svelte
@semyaza555 Жыл бұрын
@@ts8960absolutely not.
@MCasterAnd Жыл бұрын
@@ts8960 are you drunk
@Hobbitstomper2 жыл бұрын
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.
@metatronicx2 жыл бұрын
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.
@DEVDerr2 жыл бұрын
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
@skl99422 жыл бұрын
Exactly what I was thinking!
@SpaceChicken2 жыл бұрын
Same. Transitions were enough for me, store is so insanely useful. Wonderful features.
@baka_baca2 жыл бұрын
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.
@mfpears2 жыл бұрын
Stores nail state management like jQuery nails the DOM.
@Pavel-wj7gy2 жыл бұрын
Stores in react are so absurdly verbose that they may cost you a job.
@NatoBoram Жыл бұрын
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.
@heitorlopes9914 Жыл бұрын
Earned my like after just hanging out by the fireplace together! Amazing vids, Primeagen!
@DamonMedekMusic Жыл бұрын
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.
@adamlul2 жыл бұрын
Rich is awesome. Love watching his interviews.
@BrandonAaskov5 ай бұрын
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.
@TsoiIzAlive2 жыл бұрын
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 😂
@ThePrimeTimeagen2 жыл бұрын
that is good! want to make sure people feel amazing
@kahnfatman Жыл бұрын
The smell is awesome after a month
@nullbeyondo Жыл бұрын
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.
@cre8ive65 Жыл бұрын
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.
@nullbeyondo Жыл бұрын
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.
@nacs Жыл бұрын
Rich Harris is amazing. Insanely smart but more importantly -- relatable and humble.
@lcarv202 жыл бұрын
Svelte doesn’t get the love it deserves
@IStMl Жыл бұрын
it slowly does
@IamSH1VA Жыл бұрын
It will one day, the way React & other frameworks are progressing. Future seems bright for Svelte.
@thepolygotcoder Жыл бұрын
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
@gundo12342 жыл бұрын
The Rick Roll Part😂
@ThePrimeTimeagen2 жыл бұрын
i got owned so hard
@starstuff606 Жыл бұрын
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
@javierflores092 жыл бұрын
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
@ThePrimeTimeagen2 жыл бұрын
yeah! it was very fun!
@_timestamp Жыл бұрын
3:30 Harris: I don't love doing it in front of an audience of 800 people The people: 54k
@ThePrimeTimeagen Жыл бұрын
gotem
@stijndcl Жыл бұрын
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.
@danvilela2 жыл бұрын
Bro the rust part 🤣🤣🤣🤣 Caught Rich completely off guard.
@ThePrimeTimeagen2 жыл бұрын
gotem
@RobertoOrtis2 жыл бұрын
Awesome video! Very entertaining. I love svelte and rust! It’s hard to decide between all front end frameworks available though.
@carloslfu Жыл бұрын
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
@minikame22722 жыл бұрын
Is it me or does Rich's accent get increasingly South London as he eases into the interview
@davidroberts1037 Жыл бұрын
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
@ThePrimeTimeagen Жыл бұрын
:)
@joaodiasconde Жыл бұрын
Svelte seems amazing, so simple, so effective.
@darkarie2 жыл бұрын
we need a part 2 of this !!
@poolkrooni Жыл бұрын
What Rich meant for the validated function was: $: validated = name === 'hello world' and then in the template part you could simply have {#if validated}
@xtraszone Жыл бұрын
Him: React is not a framework its a library Rich: Thats absurd 😂😂
@asdfghyter Жыл бұрын
Rich is 100% correct
@tthiagolino82 жыл бұрын
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)
@g1uh4 Жыл бұрын
This is a good way to learn Svelte. No bs, straight to the point.
@stashladki2594 Жыл бұрын
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
@mosesnandi Жыл бұрын
AngularJS?
@user-hk3ej4hk7m Жыл бұрын
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 Жыл бұрын
framework/compiler i love the most past 4 years XD
@cubondemais8 ай бұрын
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.
@fer.guitar Жыл бұрын
This was a great video, love Svelte!
@aps695 ай бұрын
This might be the best resource to learn svelte
@laurieinjapan2 жыл бұрын
Love the little rust section in the middle!
@christinefredricksen87432 жыл бұрын
This is great, Thank you!
@RafaelToscano Жыл бұрын
7:14 - “did you really just do this to me?” 😂😂😂😂😂😂😂
@metatronicx2 жыл бұрын
37:44 🤣🤣🤣 see that pain in the face ThePrim😂gen when Rich says he's a vs code user 😅
@RedHandedBug2 жыл бұрын
Comic Sans MS on the discount Mac >_
@TheDanVail2 жыл бұрын
Ah shit I’ve been wanting to learn Svelte(Kit) let’s go daddy
@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`
@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)
@vellankiindeevar5530 Жыл бұрын
man you youtubers are so lucky , you get to learn from who build sveltekit
@voidmind2 жыл бұрын
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).
@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?
@7heMech Жыл бұрын
Now I wanna write something in Svelte.
@tyunpeters3170 Жыл бұрын
This was more of a Svelte lesson and not SvelteKit, since there was no data loading or retrieval
@mcchikin27512 жыл бұрын
29:17 this is cool and works in swift as well‼️
@toothuncommon0 Жыл бұрын
Rich Harris has a great deal of patience 🙄
@SemRosto-b9z Жыл бұрын
Reminds SwiftUI very much. I think will definitely try Svelte for front-end part
@lifelover692 жыл бұрын
18:50 Prime suddenly reaching into Rich's rib cage sent me
@RootsterAnon2 жыл бұрын
I don't like when people mention their wealth before last name. That means I'm Poor Rootster... don't like it...😥. Great video 🥰
@irlshrek2 жыл бұрын
holy shit! i cant believe this is happening
@dailyfunnytv358 Жыл бұрын
he just went full `if true else false`
@bernardoalves36422 жыл бұрын
27:00 It's preaching time
@el.bromas2 жыл бұрын
Oh man I love you both
@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 Жыл бұрын
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
@shirecoding2440 Жыл бұрын
this looks really like webcomponents, wondering is it using webcomponents underneath?
@kaibe5241 Жыл бұрын
One thing I REALLY love in Svelte, is two-way data binding. This is something that Vue takes a really strong stance on, not allowing it - which has been a huge source of frustration for me, because it means you have to use a store or something, which actually complicates your code. Sometimes components are meant to work together as part of a single system, where two-way data binding makes much more sense. The fact that Svelte supports this, meant I moved away from Vue entirely.
@garretmh Жыл бұрын
Is it different than v-model in Vue? It sounded exactly the same
@tehsimo Жыл бұрын
is the rust thing at 30:51 the same as an extension method in C#?
@TheStickofWar7 ай бұрын
pretty much, Prime knows a lot about the things he uses but he doesn't know a lot about the whole landscape (which is fair, it's a lot of stuff and you only spend your energy on what you need to care about or are interested in). But it isn't unique to Rust
@pengain4 Жыл бұрын
Svelte and SvelteKit are true gems
@Yoshie_2000 Жыл бұрын
Do how I access the requested URL in server components with the new app directory? I just can't figure it out!
@dipooktama935 Жыл бұрын
I tried svelte today and I loved it
@saeedatenzi Жыл бұрын
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
@soixantelly2 жыл бұрын
this is one hell of an entertaining stream, chris taught the pimeagen svelte and somehow the stream turned into chris getting thought rust
@leeeass840 Жыл бұрын
49:26 could somebody please explain how does one write front end in Rust?
@derschredder7612 Жыл бұрын
Wasm
@flamendless2 жыл бұрын
Wow ryan gosling is a programmer
@thederpykrafter10 ай бұрын
At 18:55 prime just casually reaches into rich's chest lol
@jamesdupuis32496 ай бұрын
To see if it was beating? If it was cold? Why?
@naska6782 жыл бұрын
which episode was it ? on twitch i mean . can someone share the link . the video quality here is horrible.
@naska6782 жыл бұрын
nvm . it is awesome on safari . for some reason....
@eliasgill24532 жыл бұрын
It's not your browser, is that you were literally 1 minute after video was uploaded 🤣, KZbin can't process HD quality that quick .
@naska6782 жыл бұрын
@@eliasgill2453 ohhh hahahahhaa
@ThePrimeTimeagen2 жыл бұрын
my faulht :)
@TheAriznPremium2 жыл бұрын
it's this btw www.twitch.tv/videos/1679778196?filter=archives&sort=time
@ernestobrussli416011 ай бұрын
where is the rest? I want the full tutorial! Did you boot Rich Harris?!? XD
@christopherenriquez9765 Жыл бұрын
Everyone got Rick Rolled lol
@FredoCorleone Жыл бұрын
Well, the part about reactivity with reassignment is better in Angular as it's track objects by default you can have it refresh even if you mutate the same object. Obviously it's more expensive and infact you can disable with OnPush something (I don't remember) but still it's very beginner friendly. And... Unless you do really stupid things you can track A LOT of objects in the same view.
@PeterBernardin Жыл бұрын
Oh my lord I was pulling my hair out when you weren't getting Rich's syntax description at 47:00 ... I mean he could have just said use the ternary operator, but still!!! You had to turn this: $: { if (name == "hello world") { validated = true } else { validated = false } } Into this: $: validated = name === "hello world"
@rafaeljacovmedel8953 Жыл бұрын
That doesn't work. It's actually $: validated = name = "hello world"
@toxicitysocks Жыл бұрын
Did not see that rickroll coming
@Arzen84 Жыл бұрын
I just fell in love with svelte.
@CodeTalker232 жыл бұрын
You gotta try F# with don syme or something if u love Rust, F# is pretty close and cool :D greate stream tho
@ThePerfectaTrifecta Жыл бұрын
Can’t you do the same thing in Python? Aren’t you able to add any attribute to a type by creating your own object of a that type then defining default attributes to be a part of your new class Object?
@IStMl Жыл бұрын
hum maybe but what does it have to do with Svelte
@CTimmerman Жыл бұрын
@@IStMl You could run Python in client browsers in Pyjamas and such, but the point of these frameworks is dynamic updates. Add a product to the cart and have some new component light up without messing with the cart code.
@thepolygotcoder Жыл бұрын
I loved how The Primeagan tried to do an XSS attack LIVE LOL That would have been embarrassing.
@Mankepanke Жыл бұрын
Self-xss isn't hard or possible to stop, though. Also not dangerous
@moon_bandage Жыл бұрын
@@Mankepankeindeed... It's not even XSS if there's no server spreading the code to other users, this is just a sandbox code container that exists for only your session
@ofeenee2 жыл бұрын
Where’s the rest? :(
@clamhammer24632 жыл бұрын
So does this mean that you can only have a max of 64 reactive values/statements per component since he mentioned they map a reactive value using a bitmask?
@LongNguyen-dh3bm Жыл бұрын
They can easily have multiple bitmasks in an array
@patchshorts Жыл бұрын
I have a coder crush on this sesh
@trubnikov2 ай бұрын
On Colon Click is Awesome
@fabioluizalvaresosti7115 Жыл бұрын
That thing in Rust is also available in C#
@dforj9212 Жыл бұрын
Funny reaction from Prime when Rich says React is a framework
@rx0-rx Жыл бұрын
this seems much more sensical than react
@AScribblingTurtle Жыл бұрын
Should you ever be able to get Svelte propperly running in Vim, please make a tutorial. Your "0 to LSP" Video was one of the reasons, why I started to work with Vim (I'm using NvChad at the moment) Got Svelte set up far enough, so that all the highlighting works propperly, but the Intellisense is mostly broken. VSCode and PHPStorm/WebStorm are fine but it just does not feel the same, even with their respective Vim-Plugin installed. 😥
@bfkgod Жыл бұрын
I also followed his 0 to LSP, then tried switching to NVChad but I was already used to the defaults and NVChad changes so much it pissed me off. So I'm back to Prime's config 😂
@AScribblingTurtle Жыл бұрын
@@bfkgod Yea, had a similar experience with NVChad. Now I'm using my own config system, since I still know a little bit of Lua. Feels good. Even the TS / Svelte LSP works correct now.
@sirajmussafirr1472 жыл бұрын
Two poor fellas who got a new life: labels in js Enums in Rust
@najlepszyinformatyk16612 жыл бұрын
37:45 the funniest moment :#
@asescodes Жыл бұрын
What the hell is that font? 😂😂😂
@bljdev Жыл бұрын
when 2 premium knowledge meets....
@jasonrooney1368 Жыл бұрын
Theo still doesn’t know that Vue has used signals for years and has a very similar pattern with the composition API.
@mpiorowski2 жыл бұрын
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!