Skip to main content
View on YouTube to comment and like!

Syntax Video

Is Tailwind overrated? Web Dev Hot Takes | TypeScript, Docker, and more

Chapter 1 00:00

Transcript

welcome to another round of overrated or underrated web Tech the three of us uh we're web developers and we have opinions on stuff just like most web developers do and you know what we all think we're right so we're going to be talking about all of the things that we think we're right about giving a little bit of overrated or underrated on a few different Tech topics today we're talking about Tailwind we're talking about typescript we're talking about no build tools we're talking about Docker so over at or underrated Tailwind I don't want to go first cuz I know I'm the only one saying overated uh what's the Reddit where you have to like vote on if the person sucks or not yes yes am I the [ __ ] yes am I the [ __ ] yeah what I'm going to say here is Esh which is everyone sucks here uh I agree meaning that the takes on Tailwind are some of the worst takes ever because I feel like

either side doesn't take the time to truly understand where it's at because Tailwind has been around for long enough enough people use it enough smart people have evaluated it and landed on it that it's not it's clearly not a bad idea and if you are saying Tailwind is absolutely stupid it makes a mess of your HTML I don't think that you actually understand the problems that it is solving it's probably not my favorite approach but I certainly understand why so many people love it and I do use it on many of my projects Wes I am shocked we have the same opinion on Tailwind I don't think I would have UND like really predicted that so I agree and I think uh what gets misconstrued about me not using Tailwind often is that people think I don't like it or I don't get it so specifically the thing that I I like about Tailwind is that it provides a system anytime you have a good system that system allows you to work in a way that's efficient it allows you to keep things consistent uh

there's a lot of great things about that aspect of Tailwind the thing I don't like about it is the authoring experience for me it's just not how I like to work I like the things that it the features that Tailwind provides I just solve those exact same issues in several different ways or ways that fit better with my mental model of how I'm thinking things so people are often like man you don't get it it does this and this and this and this I know it does those things those aren't problems that I have like you said I I'm solving those problems in a way that I like a little bit better for me um re one of the big reasons about that is is that like I don't feel like I want to learn or memorize all of the DSL around Tailwind for me I have other systems like open props ingrained in my brain in a way that Tailwind isn't so like I'd much rather pick up the tool that I'm familiar with that solves the same problem in something like open props

than something like Tailwind where I don't know the system and again yeah it's a fine tool for people who want to use it I I don't think that's a problem just not for me right I mean I I I would say that it is underrated just because of I guess all the press that it gets but the first thing I have is a Miss yeah it's it's underrated I think what a lot of people don't realize about Tailwind but a lot of people who like just call it inline Styles like it's just new inline Styles is the fact that there is a design system and for me that's probably the what I like most about it because I was never really consistent about having the same amount of Border radius on everything or having the same amount of padding on everything and like being consistent throughout my design and so one of the thing Tailwind helps me with is by having uh those those uh design units so like when you do uh p-1 that's not like one pixel of padding one means a specific number of rims or a specific number of pixels and one throughout Tailwind like m-1 or my

y-1 that one means the same thing we are so once once you start to understand what the D1 the D2 the D3 are then you're for me my designs are more consistent and that is way different than inline Styles because uh you would just be putting like fixed pixel values or fixed Rim values everywhere and you can solve that same problem with CSS with CSS variables and and like you mentioned the uh is it open styles that gives you thees open props open props open props because open props will give you like margin -1 or I don't know exactly the name of it but it does a similar thing thing and then you can just reuse that variable in all of your CSS but to me like comparing the two it's it it just seems like a lot more work to have to figure out what all those variables are versus just memorizing the dash one and then it just works for everything um so yeah I think the same thing CJ I think memorizing the Tailwind versus meas memorizing the variable is the exact same thing I don't think it is because you're going to have a different variable name for every type of thing yeah with Tailwind h-2 is a

height two but and m-1 is margin one on every single project too there's some benefit to Tailwind being a de facto standard in that literally every single project that uses Tailwind uses the same scale of course you can change the colors and you can change the defaults but you can take a component from one project that's AI is very good at writing Tailwind like that's a a huge benefit to it as well overrated or underrated typescript this should be fun right yeah I think it's underrated Honestly though I was a typescript denier for the longest time mainly because a lot of my work is building small prototypes building small tools and so very early on for me typescript would get in the way cuz like I I want to write quickly and typescript takes longer to write you have to spend the time thinking about well what are the types of the argument of the arguments to this function or what what are the properties on this object um and so for the longest time I

was just in JavaScript brain where I wanted everything to be dynamic as I learned it more and I think that's the main thing is like there's a learning curve you really have to settle in learn learn about like at least the basics of the type system but now even all of my side projects I'm using typescript and it's really just like the simplest things the fact that it'll simply remind me that like oh that property doesn't exist or oh that property could be undefined it's all these things that you just weren't thinking about before when you're writing it just with JavaScript but now you get it part of your developer experience so yeah I think it's underrated I I think so too it anybody who says you should just write straight up JavaScript without writing types I don't think understands the the benefits that you get from it you know like a lot of people you hear the the constant arguments of it's yeah all this extra time I'm spending so much time fighting it and it's like well if you're fighting it it means your code base probably stinks because uh like of course there's going to be be problems

but the extra little bit of time that you spend on that you will get back in development experience as well as the potential bugs I cannot tell you when I converted I know three or four years ago when I my code bases over to typescript cannot tell you how many little edge cases I found that was like ooh didn't think about that you know that would have been a a crash right there yeah typ script made me realize how bad I was at uh protecting myself from potential issues in code you know Sentry loves people like me uh before I wrote typescript for sure because what centry is just going to be getting all those so and so is not defined errors or all the things that that typescript prevents you to get but you know for me personally I agree 100% uh with both of you is that I do think it's underrated I do think people who have held out on typescript or try to refuse it or whatever I I just don't you know like I just don't see writing code and being productive today

the same way that I did before I wrote typescript 100% of the time that I fight with typescript is when I'm working on Library code and I'm having to do some crazy generics and all sorts of manipulating of types and that's when I hate typescript when I'm doing an authoring experience on a library or uh something bigger than that but for the most part man it uh it saves me a lot of time and I I do I'm a big fan all right next one overrated or underrated no build tools Wes yes tools but like like no build meaning that you ship raw CSS and JavaScript esm modules right to the browser as you author it so there's no build step in between so I guess that's what you mean no build tools no building tools no building tools no no tools just uh yes just hammer it out with a I guess

those are still tools we all use tools we were yeah I would love absolutely love to live in a world where we have no build tools um I would love to live in a world where you publish the typescript You author you publish the npm you npm install that and you ship it out David H sorry David uh I'll sorry dhh or's guy he's he's big on this Brian laroo big on this it can happen and I would love it cuz I am so tired of these obtuse bundle errors that gives you no information about where the actual authoring experience is but that said I want to use jsx I want to import CSS into my JavaScript although we are we are getting that in in raw JavaScript I want to use typescript so not there yet I would love maybe I don't know if we'll ever reach that

world but I sure hope so you know what I never want to have to do ever again is figure out the process of author ing a library that works well in all contexts with typescript and ships things the right way because the spelt uh spelt kit has like a package a built-in felt package that like does it all for you but I was trying to publish just a straightup typescript package the other day and I think I had to uh publish it to npm maybe 15 times before when I when I installed everything worked it was like yeah and it would work in Dev and then I'd go to build and production it couldn't find files yeah I I get it I I I think the build tools that are the best are the most transparent ones um like parcel and even vit you know I I think there are obviously build tools that can be heavier bigger things but the ones that function more like oh don't mind me I'm just uh doing some work back here you know uh those are the ones that I I like we're all just we're

all building different kinds of websites right and so I think the the idea of building a site with no build process at all would be especially crazy for just like even like mediumsized websites like if you think about okay I'm writing raw HTML CSS in JavaScript and I have multiple Pages there's going to be some copy pasting involved there or you're going to have to bring in a JavaScript like a JavaScript temp templating Library um I guess I don't know if the argument also is like we're not using Frameworks either cuz like technically you could use like VJs without a build tool you technically could use react without a bu build tool but you can't use jsx and let you add the jsx runtime um and then the in the browser yeah so like it's it's possible but I think then you're just loading even more JavaScript so yeah the thing I can't get over is like in any mediumsized code base you have things that are reusable and on multiple pages and without being able to write the code that could eventually be bundled and minified and and optimized you're going to have a bunch of copy pasted stuff so you're going to end up writing a bunch of extra code it's not

going to be as fast it's going to be larger files um so like it could work I think for simple websites but I think anything beyond that and especially like working on a team like the whole build ecosystem and front-end Frameworks like they help with collaboration and and sharing of code and working on larger teams uh because you can you can write in components and like two different developers could be working on different components and then come back together later or like you can have reusable things and reusable code Styles and stuff like that in your code base which you it's just so much harder to get if you don't have any sort of build process yeah if you go to hey.com and view Source that's a good example of they're simply just importing using esm modules importing the JavaScript that they need but yeah they import everything and it's fine for them because they do not ship boatloads of JavaScript they do almost everything server side and then they just they take the JavaScript sprinkles approach where you to load the pieces

that you need on the page that you need and and you could do that like if you have a heavy like mapping application you just put the script tag for the map in on that page and then it just reports it dependencies from there okay next one overrated or underrated Docker guys uh Docker for development specifically I've always used Docker a lot in a like a Synology context I want to throw an MB server on there I'm loading it up in Docker but what I'm not doing is using Docker in my development flow and I really feel like that's a problem for me pain in the ass I everyone always tells me use Docker use Docker use Docker freaking the images are way too big you got to run all these random ass commands you got to map all your ports and it's not a skill issue I have probably 11 Docker images running on my servers Docker for servers yes Docker for development no chance I I can

switch my node versions if I need to I can spin up uh MySQL if I need it I I don't think it's worth it and I know I'm curious CJ you are a big Docker guy yeah I mean I even I added Docker to the syntax website because Scott had all these weird custom things for my SQL and so like if I wanted to get running locally I would have had to install my SQL and what what are you say a custom things I'm curious well you had like the the you had the script that like preloads the database a bunch of random rust code that didn't run preheats the database it preheated the database but reg regardless if if if you're following the onboarding for syntax without Docker it's pretty cumbersome I think cuz you have to install my SQL and everything else and I think that's for me the the the on-ramp to Docker is only dockerize things like databases things that you need in every project but you can easily spin up you can easily like like have multiple instances cuz if you have a postgress installed locally or my SQL inst

installed locally now you're juggling potentially like database names or making sure that you're not overing versions or versions right and so that's the other thing is like with Docker you you basically get you can lock that down for every project um and so for me I think like uh if you could if your site or your your project is using postgress or it's using MySQL add a simple Docker container that is just the database I kind of want to go to the the other side which is start using like vs code Dev containers um which is like don't even run I don't like running Docker locally how about you run nothing locally you know yeah well that's and that's something I haven't explored but they're yeah they're called Dev containers I think you actually do maybe we're talking about a different thing but there is one that does run locally but everything is inside the docker container so yeah it spins up a Linux machine and then there's an extension inside of vs code that like SSH sshs into that machine so your Dev experience is actually you're working directly inside the container so

it's pretty much just as fast as if you were working locally I think you you're saying about like inside versus outside the de the docker container is exactly where I get really angry with Docker just let me do my stuff like I do on my local machine I get it it's a virtual machine you can't it's hard for me to pick up a a new new Tool a new tool like Docker and uh you know get used to that flow of working um ultimately what I need is to pair program with CJ for a week and figure out exactly like a good flow for me did I tell you I almost got sued by Docker no what happened no this is a good story let's go let's go uh in 2015 or 20 maybe even no 20 2013 uh I created a Docker font awesome icon cuz at the time font awesome didn't have a Docker icon so I just went and made one and I published it to to GitHub and uh and like a year and a half later

their lawyers came knocking uh and sent me like a very aggressive cease and desist to take it down and and I was just like what the hell's going on like we we I was working on a website that needed a Docker icon at the time and it was just a classic like the lawyers are trying to protect their brand you know you know how that happens oh I know that happens did the old tweet about it and uh it was a big hubub and then it it somebody who knows what was going on figured it out and then I had to sign some thing I had to put a license in the repo uh if you search West boss font awesome Docker icon it shows up and then they sent me a whole box full of Docker swag As a story we almost Su you all right that's it thanks for tuning in let us know if you disagree with any of them especially if we are wrong on any of these if you want to watch us compete in any more of it we got a link right here right over my finger and some

pretty fun stuff Facebook how much does Facebook spend on data every single day $30 million domain name all kinds of fun stuff yeah and we also are trying to get to 500,000 Subs so there was a comment on a video recently and Wes responded if we get to 500,000 Subs he'll switch to neovim for a month and Scott and I decided we were going to join him as well so subscribe smash it

Quote it with credit and a link. Quoting Syntax