@@carlosescobar5995unfortunately for me, not all of us... 😢
@codedusting Жыл бұрын
Genetics 🧬 doesn't care about equality 😂
@tsubasateacher Жыл бұрын
Bro, you forgot the #nohomo
@alexanderkrist95 Жыл бұрын
Rewritten a bunch of my projects in laravel since a while ago, always amazed about HOW EASY it is compared to any js framework + other complications, really similar to ruby on rails on speed
@aarondfrancis Жыл бұрын
Yessss love to hear it
@JeremyAndersonBoise Жыл бұрын
It’s like rails but DHH isn’t involved and PHP is measurably less awful than Ruby. Rails still has some juice but Laravel is eating their FOSS framework lunch nowadays.
@hellelo.5840 Жыл бұрын
This doesn't kill static site generators at all, this is just "I want to use laravel instead of next js"
@aarondfrancis Жыл бұрын
You can use whichever framework you want! That was kinda the whole point. Is next even an SSG?
@hellelo.5840 Жыл бұрын
@@aarondfrancis yes it is, and more
@aarondfrancis Жыл бұрын
@@hellelo.5840 cool, sounds great! I'm all for using what you know and like.
@phpannotated Жыл бұрын
Yay another Aaron video! Thanks for the thought provoking content! ☝I do want to point out that the "cache everything with Cloudflare" approach is essentially the same as using a static generator: you're storing your web pages as static HTML and serving them directly. In my opinion, Cloudflare caching is simply another way of doing static site generation. In other words, you've proven that SSG is still the way to go! Always serve static content, unless you have a good use case to make things dynamic.
@aarondfrancis Жыл бұрын
Hey Brent! Yeah the point is that you don't need a static site generator, not that you don't need static content. That's kinda the trick! You can get the best of both worlds without having to learn some cobbled together SSG.
@phpannotated Жыл бұрын
@@aarondfrancis Makes sense :)
@randomor Жыл бұрын
This is great idea for your needs. But if your needs are simpler, like only uses images and markdown files, try zero config ssg like zenmd, one cmd ‘npx run zenmd’ and boom you got a static site that is previewable on your file system (no server needed). Disclaimer: I made it last week.
@joshr96 Жыл бұрын
The one downside of server side render + cache is the misses but honestly probably not a big deal if your page renders fast enough. In the end probably more comes down to what you enjoy working with and the experience. Most of us are not serving millions of page requests per a day and require the uttermost lowest latency.
@roberto_camp10 ай бұрын
What do you think of a Hugo AWS S3 Cloudfront solution, for a customer facing SSL site?
@carnavalesenpanama Жыл бұрын
I love all your videos and content from your personal youtube and planet scale youtube channel. I am always learning something new from you. Thank you!
@aarondfrancis Жыл бұрын
You're welcome! Glad they are helpful!
@bigjoey1114 Жыл бұрын
Interesting implementation. I think this stack would be great if you had a website pages + blog + webapp that all ran on Laravel. I think the beauty of SSGs is the shear simplicity and portability of the generated HTML files. No PHP updates, Laravel updates, or really any server infrastructure to worry about. I've been loving Hugo lately. BUT, if I need the backend capabilities of PHP and Laravel, this is a nice solution. Thanks for sharing!
@tannercampbell Жыл бұрын
5:42 why not use the cron/scheduler with Vapor just curios? My guess is to save a little cost and utilize the free GH actions?
@aarondfrancis Жыл бұрын
Good question! I need to commit the content changes to the repo, so I do it in GHA
@whatthefunction91402 ай бұрын
What is the best php cache to add to my self built framework
@kumaraveldotdev Жыл бұрын
I'm a big fan of your videos and the Sqlite technique was really impressive. 🤩
@aarondfrancis Жыл бұрын
Wild right? Thank you!
@ripplesr56558 ай бұрын
Dude, what do I have to spend my time on to come close to your massive database of knowledge?
@aarondfrancis8 ай бұрын
Haha you just have to be curious and try things! That's about it tbh
@neckbeardguru Жыл бұрын
Nice video and left me with some questions. Considering Vapor deploys to AWS, why is Cloudflare needed? Wouldn't caching on the gateway and cloudfront achieve the same thing?
@aarondfrancis Жыл бұрын
TBH I didn't want to go in and figure out Cloudfront caching and I like having Cloudflare in front of everything that I do, it makes me feel warm and fuzzy. Cloudfront might work here just fine!
@tedmoyses2942 Жыл бұрын
Came for the clickbait/hot take title, stayed for the implementation. Neat job!
@aarondfrancis Жыл бұрын
Whew, the ultimate one/two punch! Glad the content lived up to the thumbnail!
@tedmoyses2942 Жыл бұрын
@@aarondfrancis this approach makes total sense. I have always thought that most SSGs are kinda neat but often felt like they had features shoe-horned into them awkwardly. Why not use a full fat framework you are familiar with that can do so much more. Front matter be damned
@JustinJackson Жыл бұрын
This was great. It gave me a bunch of ideas for my site. Thanks!
@aarondfrancis Жыл бұрын
Oh nice! Can't wait to see
@JLarky Жыл бұрын
"static sites is the only way to get fast response", well, no, static sites is the only way to copy paste my website to any place like 15 years later and it still works
@aarondfrancis Жыл бұрын
Static sites, sure. When was the last time you tried to run even a two year old static site *generator* though? That's what this video is about. Thanks for stopping by, as always. One day I'll make a video you agree with!
@simonnjoroge933 Жыл бұрын
It amazes me how clean your glasses are, mine are always dusty. 😊
@SRVblueshero110 ай бұрын
Even though this is about avoiding SSGs, do you think it’s possible to use PHP as an SSG?
@JeremyAndersonBoise Жыл бұрын
Laravel with a well-configured CDN, S3-style object storage and solid caching is darn fast, within a certain scale…one that most sites/apps will never get anywhere near exceeding.
@codedusting Жыл бұрын
How large of an application a SQLlite can handle?
@aarondfrancis Жыл бұрын
No idea, literally the first time I've ever used it in prod
@codedusting Жыл бұрын
@@aarondfrancis Thanks.
@LenWoodward Жыл бұрын
Love these techniques. Do you have an anonymized version of this public, or as a package? It all looks so clean!
@aarondfrancis Жыл бұрын
I do not, but I'll write it up and put it on the very site featured in this video 🤯 Inception. I'll comment here when it's done
@Pongant4 ай бұрын
Bit much for a markdown based static site no?
@bholmesdev Жыл бұрын
Thanks for giving SQLite some love! I'll respectfully disagree SSGs are *dead* (HTML is the simplest cache), but I agree you don't need them if you know server-based frameworks like Laravel
@aarondfrancis Жыл бұрын
Sounds like Big Astro™ talking, to me! Haha kidding kidding. Yeah HTML is great, truly my first love. As with almost everything I make videos about, I'm trying to advocate for things I like and offer a different way of doing things, different than what most people are talking about on tech twitter.
@bholmesdev Жыл бұрын
Haha nice, we need that! I've started playing with libraries from the laravel world like Alpine thanks to these vids. I'll need to try those cloudflare cache settings too 🙌@@aarondfrancis
@adampatterson Жыл бұрын
Is there an easier way to find the channel Id other than viewing source and searching for channelId in the JSON?
@aarondfrancis Жыл бұрын
Huh thats a good question. It shows up in the URL if you go to KZbin studio, but that presupposes it's *your* channel, which it might not be. I'm not sure other than that!
@adampatterson Жыл бұрын
@@aarondfrancis oh so it does!
@asparuhnestorov Жыл бұрын
I have pretty good internet but could not get below 500ms loading /lists. Why your time is so different?
@aarondfrancis Жыл бұрын
haha you must've gotten it when I was playing with Vapor's gateway v2 without cloudflare on. Try again!
@Nikola-Video Жыл бұрын
@@aarondfrancis Yep, now its down to 150ms but I am in Europe. I dont know if cloudflare are supposed to use CDN for the cache ....
@andresgutgon Жыл бұрын
Great video! one question, you also pay the Vapor fee no?
@aarondfrancis Жыл бұрын
Yup! I pay for it for business stuff so I'm paying either way
@pixelations188 Жыл бұрын
That mysql+planetscale plug was too smooth 🔥🔥
@aarondfrancis Жыл бұрын
I'm a pro, what can I say 💅💅💅
@ChrisSmith105 Жыл бұрын
PHP 8.1?! What is this the stone age!? Kidding... nice video. Will do on my site. May video make.
@DaviMartins99 Жыл бұрын
Hey, Aaron, your website looks great and this was very insightful! P.S: I noticed a bit of horizontal scrolling on the homepage, not sure if it's just my PC.
@aarondfrancis Жыл бұрын
Wuh oh! Thanks for the report, I'll check it out
@MrAmG17 Жыл бұрын
Sadly the links are not presable on youtube app. Also can't copy it easily..
@aarondfrancis Жыл бұрын
Huh?
@MrAmG17 Жыл бұрын
@@aarondfrancis you need to add to your urls in desc :)
@aarondfrancis Жыл бұрын
Ah cool. Thank you!
@JeremyAndersonBoise Жыл бұрын
Protip, “it doesn’t.” If your site needs to process more than 10k requests per minute consider using something other than Laravel. Don’t make assumptions, make measurements.
@daethic421 Жыл бұрын
A-Aron, what code editor are you using please?
@aarondfrancis Жыл бұрын
PHPStorm
@daethic421 Жыл бұрын
@@aarondfrancis Thanks AAron! Have a great day mate
@pablorgto Жыл бұрын
Please, make an video about the Drupal 10?? Thank you!!!
@aarondfrancis Жыл бұрын
I don't know anything about Drupal!
@feldinho Жыл бұрын
wait! you have a PODCAST?! subscribing, brb
@aarondfrancis Жыл бұрын
Heck yeah! mostlytechnical.com
@HaifengZhu-pn3uq Жыл бұрын
is your personal website made by static site generator?
@aarondfrancis Жыл бұрын
Muy personal website is made using the methods in this video, which features my personal website. It's just Laravel
@HaifengZhu-pn3uq Жыл бұрын
@@aarondfrancis Thanks, is Laravel slower than next.js?
@aarondfrancis Жыл бұрын
@@HaifengZhu-pn3uq no idea. Apples and oranges
@MightyMoud Жыл бұрын
Are you telling that this is better than a “full stack” NextJS app with a “server-less” Postgres for my blog? Noooooo way!
@aarondfrancis Жыл бұрын
🤐🤐🤐
@vishaldinesh Жыл бұрын
Hi Mr. Dunphy, although I'm a JS dev I love your videos keep them coming
@aarondfrancis Жыл бұрын
Happy to be of service! - Everyone's favorite sitcom dad (apparently)
@languagelearningexperience6814 Жыл бұрын
This title made me happy lol
@ricko136 ай бұрын
1:31 that comment aged like milk Aaron 😅
@georgemcwilliams44663 ай бұрын
Let’s be clear, you proved a dynamic site is as fast as a static site by transforming a dynamic site into a static site. The truth is, you wanted to build static site in php and you were clever enough to do it and make it fun. Sometimes the only reason you really need is “it was fun” 😊
@grugbrain Жыл бұрын
"I just happen to work there" 🤣
@aarondfrancis Жыл бұрын
😂
@anasouardini Жыл бұрын
WOW! a new way of presenting the same good gold SSG (though implementing it the hard way aka. "I prefer php more than js").
@aarondfrancis Жыл бұрын
My old SSG was PHP also!
@anasouardini Жыл бұрын
@@aarondfrancis Ok, good to know, but that was not my main point: SSG is still in the core of your approach. Maybe, by "dead", you're referring to the current implementations, in that case, what are the limitations that pushed you towards implementing your own? Nevertheless, have you considered ISR/SSG+serverless? Just asking.
@aarondfrancis Жыл бұрын
@@anasouardini I don't think my approach is fundamentally SSG tho. It's just a Laravel app that's super cached. Static content is great, is the SSG part that I don't think we need anymore
@anasouardini Жыл бұрын
I re-watched your video, but I still have the same conclusion. - You like static content - You don't like the generation (?) of it? The only difference I see is the output destination. The way already existing SS tools output/generate SS is what you don't like, I think. If so, what is the reason? I'm curious.
@aarondfrancis Жыл бұрын
In my view, a static site generator generates a bundle of content, usually html and client side JS, that is then shipped out to some destination. My site is not generating a bundle of static content... It's serving html in response to requests, and then it's cached. That's why it's not a static site generator? I dunno man.
@tsubasateacher Жыл бұрын
Thanks! Bring back the cache!
@aarondfrancis Жыл бұрын
Cache it all!
@feldinho Жыл бұрын
SSG is just acoustic cache
@MightyMoud Жыл бұрын
I have a genuine question: why do you guys have so many comments in Laravel codebases?
@aarondfrancis Жыл бұрын
In the core? I dunno honestly, it's a Taylor thing. I like it because I source dive a lot and I like seeing what the thought process was behind a piece of code!
@MightyMoud Жыл бұрын
But even in the code you just showed. You had a comment on top of the call to purge the cache. In my company the PHP side codebase is full of comments too. It seems like a PHP developer habit… I find it odd tbh
@aarondfrancis Жыл бұрын
Oh ha, I dunno! Maybe it is a cultural thing! I'll start paying attention 🤔
@hayopapayo1717 Жыл бұрын
@@MightyMoudin Laravel you most often create files per command line. The file has boilerplate code with comments and I guess I am to lazy to delete the comments. But might be different in other places 🙂
@Altbergz Жыл бұрын
Sqlite on prod use case??? Very interesting video!
@aarondfrancis Жыл бұрын
Big if true
@StingSting844 Жыл бұрын
Not this MF with another great video i can't skip
@yannicksans71415 ай бұрын
Clever ! Like It ....
@nym49 Жыл бұрын
"Sci-fi Books - This list has its own page." LIE! I'm not serious, of course. Just a heads up: It currently returns an error 500. Really curious to see what's on your list.
@aarondfrancis Жыл бұрын
Oh shoot! Thanks. One sec
@aarondfrancis Жыл бұрын
aaronfrancis.com/books fixed! ❤️
@SickBeard Жыл бұрын
Static site generators are dead ... proceeds to serve (essentially) static content via CF 🤣
@aarondfrancis Жыл бұрын
Yes (unironically)
@TonyMessias Жыл бұрын
Wild. I love it.
@aarondfrancis Жыл бұрын
Madlad, as they say
@zinatziaee5000 Жыл бұрын
🎉
@GergelyCsermely Жыл бұрын
Thanks
@jsk9559 Жыл бұрын
Great video!
@nonnnth Жыл бұрын
Everything can be the fastest application framework in the world. Angular did it, maybe Laravel can do it too 😁
@aarondfrancis Жыл бұрын
Haha true. Laravel is indeed pretty fast already!
@pierbover Жыл бұрын
yeah but free hosting
@aarondfrancis Жыл бұрын
Where do you like to host?
@pierbover Жыл бұрын
@@aarondfrancis static sites? These days Netlify and Clouflare but I've used pretty much anything under the sun.
@aarondfrancis Жыл бұрын
Nice, thanks. I've got ideas™️ so that's helpful
@swakemudi8682 Жыл бұрын
ssg are dead. however static site is immortal
@jesseleite Жыл бұрын
You know, for someone who hot takes against hot takes...