Syntax Video
Overrated or Underrated Web Tech | Server Components, Next.js, and More
Transcript
it's time to play overrated or underrated web Tech where the three of us web devs will pick a topic and then just say whether or not we think it's overrated or underrated so grab yourself some snacks and uh play along yes let's do it first up is it overrated or underrated server components in react and nextjs I think they are equally rated because I I think a lot of people yes well okay can I not be be Switzerland the answer it depends say they're they're slightly underrated and slightly misunderstood because of the initial introduction to them was sort of forced upon people in nextjs but I think a lot of people don't realize the the benefits of streaming the benefits of being able to render entirely on the server without having to bring a whole bunch of JavaScript the benefits of being able to render Dynamic components on demand which is kind of cool in like the the AI space I'm going to say they are
overrated specifically because I think server side rendering currently is being overrated no way uh I think there's a massive amount of sites that do not need server side rendering that said you know server side rendering when used as it should or whatever it's obviously important but man why why am I doing all that compute on the server when I could be doing that compute on the the client side and you know yeah pay let let the users pay for the compute that's exactly correct yes that is exactly correct especially when you don't don't need the server side rendering uh what benefit is it really giving you beyond um increasing your serverless web bill yeah I completely agree it's overrated and uh roast me in the comments if you if you disagree but like I I think like Wes has none of the points that Wes said are wrong like it's a it's a good Tech they're like great ideas but I think the idea of server components first is absolutely overrated like it so many people that are picking up nextjs uh and using like the latest app router are
being forced to and maybe not forced it's like they don't realize or or even understand that that that that's how they're building websites first instead of making the decision and thinking about well should this be server rended or or should this be client rendered it's kind of like pushing everything off to the the framework to decide I think that people think that client components are bad now that we have server components and even nextjs has it in their docs they say there's nothing wrong with a client component because everyone's just trying to figure out oh how do I do this without using a client component the answer is no you use it's fine to do it on the client word I think AST is doing cool stuff yeah they are and they they also have like RPC now as well so if you want like a a server function that runs when you submit a thing Astro's doing really cool stuff word all right next one we have uh overrated or underrated CSS injs Solutions so we're talking about uh what are the style components is probably the
big one we've got Panda CSS is is probably another big one yeah I'm going to go ahead and say that any of these options today are overrated if you're rating them at all I know a lot of people still use this stuff for me personally I think CSS has evolved or the systems around CSS have evolved to the point where you can solve the problems that these things are solving without having to reach for a JavaScript solution for me personally I I don't feel like JavaScript is the right solution here because at the end of the day when when you get down to it the only thing that this is really solving is scoping and there are other solutions for that these days Beyond um having to bring in a potential JavaScript runtime or a build time thing that who knows you're now introducing Babel or whatever into your code base if you didn't already have it you're potentially having to write CSS and JavaScript objects which makes it totally
non-portable um yeah also hate doing that yes CSS and JS to me it solved a problem at the time in a way that nothing else did that time is gone I'm I'm over it yeah yeah I disagree I think it's underrated I think like let's say you're in a template file how do I can I go to definition on a CSS class name yes right can I hover over it and and see like the the preview of it I don't want to contact switch to other files or maybe there's like Global CSS that I don't know is applying to this specific element so you have to kind of have all of that in your head I think this is this is honestly one of the issues I have with the the syntax FM code base is like there's Global Styles and I have no idea where they're defined or like why they're affecting my elements so with something like a CSS in injs solution it's like highly scoped right I think we're using spelt so technically if we just stuck to like the scope styles that would help too yeah but glob I mean you can't abandon Global CSS entirely
because you know the nature of CSS is that you apply kind of like a blanket layer globally and then each component then gets its own I mean Tailwind is is a big thing of that where the styles are essentially Global and you're applying these classes so the most important thing to me in a global CSS file is what are the what what them virs look like you know yeah those those global varos I think it's a little bit overrated because we don't necessarily need a lot of the solutions I think on bigger teams one of the major use cases for CSS injs especially a lot of the the newer ones are are zero run meaning that you're not calculating your CSS on every single render you're doing it at at build time which spel also does as well yeah we appreciate you being wrong CJ yes just joking question number three overrated or underrated web components I think personally I'm just going to jump in
here I feel like they're very underrated um not authoring them necessarily cuz I don't want to author them I I think they're underrated to use them shoelace is is so full featured and now web awesome is so full featured the amount of like little widgets you have in there are it's it's so wonderful you have these UI utility libraries that are fantastic all of these pre-made lovely looking components but there's so much that comes along with those that with something like a web component Library doing the same thing you're getting to avoid a lot of that and you're bringing along stuff that is the platform and uh I I like that quite a bit yeah I'm big fan of web components as well for the longest time I never really understood it and I I don't also think I particularly like the authoring experience of them but holy hell I'll use them all day long right like I just uh use media Chrome the other day which is mx's web component one I don't love
that they're like Global so you just have to like assume that they're in the air somewhere you know and and then like the the typescript story on them is a little bit tricky as well trying to merge the types but I absolutely love using them in the fact that we can have these people build reusable web components like Scott said and you can use them in any framework is awesome yeah yeah I agree they're underrated I think a lot of the chatter online and a lot of like the debates that have popped up is when people try to use them maybe for bigger projects like I think probably the one of the some of the best use cases for web components are framework authors or people shipping code that's going to exist on other people's websites U because it uses let's go there's not there's not a whole framework that you have to ship with it yeah I think they're underrated I think more people that build stuff that go on other people's websites should be using web components like centry is an example of that like if you're I don't they don't necessarily use web components but if they were to add a UI or something like that it's shipping to thousands and thousands of websites it should be as
small as possible it shouldn't have all of this extra bloat of like framework and and everything else word yeah totally you know what's not overrated is is tracking your errors and exceptions solving your bugs and making your applications genuinely better faster stronger all of those things and you can do that with Sentry at sentry.io head on over to sentry.io syntax sign up and get two months for free with the coupon code tasty treat all lowercase all one word uh centry is the best man we use it to fix and solve all of our problems speed up our website and so much more and let me tell you they're always cranking on new features so check it out all right the last one we have today is overrated or underrated static site generators who wants to pick this one up first oh man I'll I'll talk about this one cuz I just moved my aging website off of Gatsby and I absolutely love being able to statically generate pages but not at the expense of not
being able to do other things um and and that's kind of why I like a lot of these modern Frameworks is you should be able to client render server render static generate on a page level or or maybe even at a at a component level at some point because the limitation of making absolutely your entire website staticly generated is as soon as you want to do something Dynamic you're stuck it's nice to be able to say okay well this stuff can be static or this stuff can be static for not even static but just can be cashed for uh 6 months or something like that uh but when I do want to in to server running when I do want to make things Dynamic when I need a little sip of back end that's what I always say is like I just need a sip of back end and you shouldn't have to be so disruptive when you need a little bit of back end yeah I think they're underrated too I think I think a lot of like how do I say
this a lot of sites are built with react that probably shouldn't have been built with react or probably didn't need a front end framework and some of these modern tools like Astro for building static sites give you that same Dev experience but the resulting bundle is just static files um and I think there's a lot of sites that have JavaScript on them or that were written with react that don't necessarily need to be so people should be reaching for static site generators more yeah I think the answer here like West indicated is pre-rendering I I do think that pre-rendering is probably underrated and maybe static generation is overrated as much as I actually I mean I think static generation is great I I think there's a lot to be gained by recognizing uh what should just be a regular ass old HTML page right and um you can just write that in regular HTML but yeah I I I think static side generators are a net benefit because you do you get the benefits of authoring experience of some of these Frameworks but in you know the user doesn't always need that stuff the
user doesn't need to ship all that stuff all right that's it for today if you want to watch us talk about more web dev trivia we've got a link on one of my hands here uh we talk about how much data does Facebook use every single day what's the most expensive domain ever uh done some really fun trivia uh it was it was fun so certainly check it out yeah and we're trying to get to 500,000 uh YouTube Subs so uh there was a comment on a recent video if we get to 500k we're all going to switch to neov for a month so subscribe
Quote it with credit and a link. Quoting Syntax