5 Things I Wish I Knew When I Started Using SvelteKit

  Рет қаралды 7,053

Ben Davis - Tech

Ben Davis - Tech

Ай бұрын

Been wanting to make this one for a while, hyped that Svelte 5 is getting closer, there will be so much to talk about...
my stuff
discord: / discord
x (twitter): / bmdavis419
insiderviz: www.insiderviz.com
blok: www.theblokapp.com
timestamps
00:10 Number 1
1:38 Number 2
3:26 Number 3
5:20 Number 4
6:40 Number 5

Пікірлер: 39
@RikunoFilms
@RikunoFilms Ай бұрын
Worth noting that Svelte actually does not "need" the ecosystem react has because it already has it from a decade or two ago. React's ecosystem is so large partially because we needed to take every JS framework people worked in and "wrap" it in React for optimization and compatibility. Svelte does not need wrappers so your vanilla JS libraries just work.
@bmdavis419
@bmdavis419 Ай бұрын
This is absolutely true, definitely should have called out in the video!
@MadeInJack
@MadeInJack Ай бұрын
Could you please do a compressed crashcourse of each feature to clearly distinguish what runs on the client/server (and in which use case you would do each option)? Still struggling 😭 Gotta take the time to go read the full tutorial but a video would be nice too. Thank you!
@bmdavis419
@bmdavis419 Ай бұрын
Check back on monday :)
@MadeInJack
@MadeInJack Ай бұрын
@@bmdavis419 Nice birthday gift actually 🤩
@MadeInJack
@MadeInJack Ай бұрын
@@bmdavis419 Nice birthday gift actually! 😄
@MerkieAE
@MerkieAE Ай бұрын
I started learning full-stack development in like 2020ish and SvelteKit played a huge role in that. I now use NextJS at my job. All this framework based development really makes me appreciate the client and server model lol. Back when I first started, wrapping my head around what happened on the server vs client was tough. Now I pretty much got it, but I recently had a situation where I had to explain what runs where in NextJS and I had one of those moments where, as I was explaining it, I was thinking "This may be a little too complicated" lol. Also certain components like a table with a search, filter, and sort or even an infinite scrolling feed are easier to code as just client components that do an initial fetch on page load then one on every query update. Idk if this is a grass is always greener situation though
@FilipeFreire
@FilipeFreire Ай бұрын
Awesome video Ben! I love how SvelteKit is becoming sturdier each day that passes. Definitely my tool is choice for web development right now.
@s.adnansami5106
@s.adnansami5106 Ай бұрын
3:51- This is precisely why I love Astro, you can just code in whatever framework you like and even mix-n-match. It resembles the Svelte workflow relatively closely and it does many of the things Svelte is known for as well. It's even got a built in backend for API endpoints and you showed in a recent video how to plug-in Hono.js into those HTTP handler functions very easily(which I am doing for my own project). On a side note, I just love plugging in Hono into the Astro.js backend because it really makes things flexible and in case you need to host your project in a specific way or need to change framework to let's say Next.js, it's very convenient because you don't have to rewrite your backend or modify it much.
@s.adnansami5106
@s.adnansami5106 Ай бұрын
If you want to primarily code in Svelte and need to use React packages, Astro is great for that. Makes me wonder why despite this, you don't use it?
@jitx2797
@jitx2797 Ай бұрын
yes I really like Astro SSR.
@bmdavis419
@bmdavis419 Ай бұрын
I do! I have multiple sites in production using Astro
@strmchsr1537
@strmchsr1537 Ай бұрын
You're still saying "lew-see-jah"! 😁I've been working with Sveltekit for months and did NOT know about streaming! 🤯Awesome video.
@gamingwolf3385
@gamingwolf3385 Ай бұрын
Hello , ben thank you for this beautiful video , but i have one question , are runes stable to start usingg them , i know they are built as signals like in solid quick so they are really amazing
@didiercatz
@didiercatz Ай бұрын
the API is fairly complete according to the maintainers, but as with any alpha, it's not stable.
@bmdavis419
@bmdavis419 Ай бұрын
The official responsible answer? No. But that has not stopped me from using them in prod
@portalteam5832
@portalteam5832 Ай бұрын
Can you do a video analyzing what kind of usage a production app is going to use on something like Vercel? Since there is so much SSR, every page view is a serverless function execution, so how does that use up your quotas?
@bmdavis419
@bmdavis419 Ай бұрын
Yea, Insiderviz 2 launches next week so once that’s been going for a bit I’ll talk about how we keep costs down (it uses a lot of ssr in sveltekit on Vercel)
@portalteam5832
@portalteam5832 Ай бұрын
@@bmdavis419 awesome, thanks!
@s.adnansami5106
@s.adnansami5106 Ай бұрын
I wonder why you mix arrow function syntax and regular function syntax right at the beginning in the video with the load function file?
@s.adnansami5106
@s.adnansami5106 Ай бұрын
ngl, Code inconsistency really gives me OCD.
@bmdavis419
@bmdavis419 Ай бұрын
I did not even notice that lmao, I really should be better about that
@nevillebrem
@nevillebrem Ай бұрын
very cool video!
@skyhappy
@skyhappy Ай бұрын
Your opinion of SvelteKit vs. Nuxt?
@efimgibsun7969
@efimgibsun7969 28 күн бұрын
Cool
@boccobadz
@boccobadz Ай бұрын
Svelte ecosystem is JS ecosystem, not some weird react-way wrappers without any proper documentation. Compare Apache Echarts and how simple its usage is in Svelte vs its react wrapper which is abysmal.
@bmdavis419
@bmdavis419 Ай бұрын
Yea I definitely should have mentioned this
@cbaesemanai
@cbaesemanai Ай бұрын
I picked up svelete kit about a month ago, spent some time with it and wrote a test app. I was loving it right up until I looked at what it took to deploy it. That is where I bailed out, what a mess.
@bmdavis419
@bmdavis419 Ай бұрын
Really? I've found it to be one of the easiest of the JS frameworks to deploy, NextJS is easy on Vercel, hard everywhere else, but SvetlteKit's adapters make it pretty simple to put anywhere
@nixoncode
@nixoncode Ай бұрын
that you should have stuck with react all along?
@readywhen
@readywhen Ай бұрын
hihi
@realitydesigners
@realitydesigners Ай бұрын
Here’s my 5 things: 1. I should of just used react. 2. I should of just used react. 3. Why didn’t I just use react? 4. I should use react. 5. I’m only using react.
@bmdavis419
@bmdavis419 Ай бұрын
idk where all this pro-react sentiment is coming from but I generally agree. For me I still prefer sveltekit for a lot of things, but react is feeling better and better, I'm really coming around
@twd2
@twd2 Ай бұрын
shadcn,Wow 😍😍😍...
Svelte 5 Preview | Runes
12:40
ThePrimeTime
Рет қаралды 73 М.
Svelte 5 Is A Triumph
22:04
Joy of Code
Рет қаралды 55 М.
Super sport🤯
00:15
Lexa_Merin
Рет қаралды 11 МЛН
小路飞姐姐居然让路飞小路飞都消失了#海贼王  #路飞
00:47
路飞与唐舞桐
Рет қаралды 90 МЛН
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 118 #shorts
00:30
Why SvelteKit is Great
22:18
Ben Davis - Tech
Рет қаралды 7 М.
I Tried Every Svelte UI Library
20:57
Joy of Code
Рет қаралды 37 М.
i didn't know these svelte tips
18:56
Nev the Dev
Рет қаралды 1,2 М.
Svelte 5: Introducing Runes... with Rich Harris
12:35
Svelte Society
Рет қаралды 89 М.
Svelte 5 is a beast, but is it worth switching?
37:55
Syntax
Рет қаралды 18 М.
I built a $5 chat app with Pocketbase & Svelte. Will it scale?
13:34
We need to talk about this benchmark
42:25
Theo - t3․gg
Рет қаралды 62 М.
I DONT USE NEXT JS
54:01
ThePrimeTime
Рет қаралды 310 М.
Decrusting the tokio crate
3:31:48
Jon Gjengset
Рет қаралды 45 М.
Дени против умной колонки😁
0:40
Deni & Mani
Рет қаралды 5 МЛН
Распаковка айфона в воде😱 #shorts
0:25
Mevaza
Рет қаралды 1,6 МЛН
A4 Reset to zero
0:26
STYLE YT
Рет қаралды 17 М.
Apple. 10 Интересных Фактов
24:26
Dameoz
Рет қаралды 115 М.