Slash Lustre Load Times with Server Side Rendering

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

Isaac Harris-Holt

Isaac Harris-Holt

Күн бұрын

Пікірлер: 48
@sadkebab
@sadkebab 6 ай бұрын
Looks like we finally have a real contestant for the monopoly of JS in full-stack development
@IsaacHarrisHolt
@IsaacHarrisHolt 6 ай бұрын
Hopefully! Gleam is great
@callowaysutton
@callowaysutton 6 ай бұрын
Monopoly? Hahahahaha If you only watch KZbinrs/Twitter maybe
@sadkebab
@sadkebab 6 ай бұрын
​@@callowaysutton specifically I was talking about single language options and yeah you have Phoenix, Livewire and so on but they limit a lot what you can do client-side (that's why IntertiaJS is so popular for their reference frameworks)... so yeah JS is the only option that gives you "uncompromised" full-stack development.
@simonricard4403
@simonricard4403 6 ай бұрын
@@sadkebab I haven't encountered a single thing I couldn't do with Phoenix Liveview that I could do with an SPA framework. Just gotta use a JS hook for those few cases, but you still write 90% less JS versus using a traditional front-end framework
@sadkebab
@sadkebab 6 ай бұрын
​@@simonricard4403 yeah and you have 90% more points of attrition. You will always build complex UXs faster with any JS metaframework. I think Phoenix is really great, don't get me wrong and it's great that it allows Elixir developers to build cool stuff without getting delving too much into JS. But rich UXs normally involve a lot of client-side stuff going on and unless you use something like InertiaJS on top of Pheonix, you will be slower and will struggle much more to get the job done. For simple webapps I don't think it really matter tho, use what you are confortable with and you'll get the best results.
@lowerclasswarfare
@lowerclasswarfare 6 ай бұрын
Really great explanation, speed (not too fast), and just a really well done video.
@IsaacHarrisHolt
@IsaacHarrisHolt 6 ай бұрын
Thank you!
@naomieowdev
@naomieowdev 6 ай бұрын
Brilliant video as always Isaac!
@kollpotato
@kollpotato 6 ай бұрын
too much unnecessary gifs in my opinion
@IsaacHarrisHolt
@IsaacHarrisHolt 6 ай бұрын
Thanks Naomi!
@IsaacHarrisHolt
@IsaacHarrisHolt 6 ай бұрын
I'm trying to cut down the number, but creating the animations etc. takes a lot of time I don't have at the moment 😅
@cryptonative
@cryptonative 6 ай бұрын
who in the history of blasphemy orders pokemon alphabetically
@IsaacHarrisHolt
@IsaacHarrisHolt 6 ай бұрын
😂 that part of the program only has the names to go by! It's open source if you wanna upgrade it 😉
@cryptonative
@cryptonative 6 ай бұрын
@@IsaacHarrisHolt Jk! Thanks for the video mate
@IsaacHarrisHolt
@IsaacHarrisHolt 6 ай бұрын
Glad you enjoyed!
@cristobalgajardovera5433
@cristobalgajardovera5433 6 ай бұрын
@@cryptonative Smogon does hahaha 🐒
@StingSting844
@StingSting844 3 ай бұрын
Me who doesn't know anything about Pokemon
@rajmajumdar5253
@rajmajumdar5253 6 ай бұрын
I had to do doubletake while looking at that framework name lol 🤣🤣🤣🤣 Though i was recommended something else lmao 🤣🤣🤣🤣
@IsaacHarrisHolt
@IsaacHarrisHolt 6 ай бұрын
What do you mean 👀
@Heshamelfakharani
@Heshamelfakharani 6 ай бұрын
how long have these things been in development, this is great
@IsaacHarrisHolt
@IsaacHarrisHolt 6 ай бұрын
I'm not sure! A few years, I think
@hayleigh-dot-dev
@hayleigh-dot-dev 6 ай бұрын
Gleam has been in development for a few years now, but we officially released v1 in march. Lustre in its current from is about a year old at this point :)
@AsherDMckoy
@AsherDMckoy 6 ай бұрын
Put a different trainer hat on the Gleam star for every video
@IsaacHarrisHolt
@IsaacHarrisHolt 6 ай бұрын
Haha good idea!
@らい-m7i
@らい-m7i 6 ай бұрын
How do we handle having multiple routes?
@IsaacHarrisHolt
@IsaacHarrisHolt 6 ай бұрын
In this scenario you can render them separately, but typically you'd have a model per route, and this would exist as a field in a larger overall model that also stores global state. Check out the Modem library for client side routing
@らい-m7i
@らい-m7i 6 ай бұрын
@@IsaacHarrisHolt Thank you! I'll try it out.
@codingszy
@codingszy 6 ай бұрын
Whats the vim theme?
@IsaacHarrisHolt
@IsaacHarrisHolt 6 ай бұрын
AstroNvim
@JLarky
@JLarky 6 ай бұрын
We didn't have SSR in the 90s, we had dynamic rendering. I'm going to die on this hill
@IsaacHarrisHolt
@IsaacHarrisHolt 6 ай бұрын
What do you consider to be the difference?
@JLarky
@JLarky 6 ай бұрын
@@IsaacHarrisHolt there was no "server side" of PHP rendering :) PHP was always on the server. Only once technologies like React showed up we started talking about rendering our JavaScript apps on the "server side" as opposed to the normal "client side" :) basically the term SSR didn't exist until Next.js showed up
@IsaacHarrisHolt
@IsaacHarrisHolt 6 ай бұрын
@JLarky Sure, the term didn't exist, but the concept was the same. Server gets request and returns personalised/dynamic HTML to the client. I think the language has probably evolved, but I'm not sure the concept has
@JLarky
@JLarky 6 ай бұрын
@@IsaacHarrisHolt it's not the same concept :) dynamic page generation includes SSR, but SSR is a more narrow concept that only makes sense when you have an isomorphic app (which we didn't have in 90s)
@IsaacHarrisHolt
@IsaacHarrisHolt 6 ай бұрын
I'm not sure I see what the actual differences are here. What does dynamic rendering do/allow that SSR doesn't?
@SpektralJo
@SpektralJo 2 ай бұрын
I really dont like the idea of writing html using function composition
@IsaacHarrisHolt
@IsaacHarrisHolt 2 ай бұрын
How come?
@SpektralJo
@SpektralJo 2 ай бұрын
@IsaacHarrisHolt I think it just looks off and includes a lot of visual noise like a lot of brackets (often semantically useles ones like [], if an element has no atributes) the html. prefix (or you have to import the functions you use) etc. I really just like looking at actual HTML way more.
@IsaacHarrisHolt
@IsaacHarrisHolt 2 ай бұрын
That's fair, but I don't think it's enough of a reason not to try Lustre. It's pretty great, and you get used to the syntax very quickly
@SpektralJo
@SpektralJo 2 ай бұрын
@@IsaacHarrisHolt can you use lustre just on the Server. Because I want to try out htmx for the frontend
@IsaacHarrisHolt
@IsaacHarrisHolt 2 ай бұрын
Absolutely!
@someofmyinterests
@someofmyinterests 6 ай бұрын
Gleam is great, but Elixir with Phoenix Liveview is even better 😎😎
@IsaacHarrisHolt
@IsaacHarrisHolt 6 ай бұрын
What about Gleam liveview? 👀
@dandogamer
@dandogamer 6 ай бұрын
​@@IsaacHarrisHolt yes would love to see a gleam phoenix project!!
Create Robust Web Apps with Gleam and Lustre
12:32
Isaac Harris-Holt
Рет қаралды 42 М.
From $erverless To Elixir | Prime Reacts
22:34
ThePrimeTime
Рет қаралды 124 М.
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
Go Realtime in Gleam with Lustre Server Components
13:55
Isaac Harris-Holt
Рет қаралды 11 М.
Errors as Values are the Future
7:19
Isaac Harris-Holt
Рет қаралды 43 М.
Gleam for Impatient Devs
8:46
Isaac Harris-Holt
Рет қаралды 73 М.
You don't need a frontend framework
15:45
Andrew Schmelyun
Рет қаралды 141 М.
Gleam: Past, Present, Future! • Louis Pilfold @ FOSDEM 2024
40:33
Louis Pilfold
Рет қаралды 26 М.
New Gleam Just Dropped
25:33
ThePrimeTime
Рет қаралды 89 М.
You don't need loops
10:20
Isaac Harris-Holt
Рет қаралды 13 М.
My New Go-To Coding Model: DeepSeek R1 vs o1 vs Gemini (AI Battle)
41:36
Front-end web development is changing, quickly
3:43
Fireship
Рет қаралды 1,4 МЛН
Что такое дагестанский кирпичный завод!
0:53
АВТОБРОДЯГИ - ПУТЕШЕСТВИЯ НА МАШИНЕ
Рет қаралды 746 М.
shocking end 🥴🤯 LeoNata family #shorts TikTok
0:54
LeoNata Family
Рет қаралды 41 МЛН
Таким раствором работать одно удовольствие
1:00
Профессия созидатели
Рет қаралды 954 М.
КАК ЖИВЕТ КВАНТУМ? РУМ ТУР КВАНТУМА!!!
13:51
Do YOU Understand WHAT JUST HAPPENED!? 😂 #shorts
0:57
LankyBox World
Рет қаралды 1,6 МЛН