4 ms·
The primitives on which this is built are cool. Fastify and Vite are two projects I love. The moment I see TailwindCSS added as an opinionated default, I nope r
by nobleach 4y ago
The primitives on which this is built are cool. Fastify and Vite are two projects I love. The moment I see TailwindCSS added as an opinionated default, I nope right out. Tailwind is one hype-train I can't wait to see run out of steam. I've been around enough years to see a lot of things that we thought were GREAT ideas, turn into "what were we thinking?" I believe we'll be doing the same with Tailwind in 3 years. "Why oh why did we think annotating all of our HTML elements with a bunch of class names - some which represent rule-value pairs, was a _good_ idea???" This viewpoint makes me very unpopular obviously. But it's a hill I've chosen to die on. It's bad DX and it's worse for maintenance. I welcome a lot of downvotes... but let's revisit this in 3 years and have a candid conversation about it. I'll gladly admit it if I was wrong. But I wasn't wrong about AngularJS, Bootstrap and a litany of jQuery plugins. And JS developers fiercely defended each of those at one point as "the one true way".
- deleted 4y ago[deleted]
- jgalvez 4y agoTailwind is not part of Fastify DX. It's just part of the starter template, through unocss. unocss goes beyond what Tailwind does. it's general CSS processing engine and provides quick access to some rather essential goodies, like an icon set. I think it's a worthy addition to the starter template, but easy to remove. Literally remove one import and a vite.config.js plugin entry.
- mgrandl 4y agoI have been a frontend dev for 10+ years and tailwind is absolutely amazing DX for me personally, but to each their own.
- nobleach 4y agoHey yeah, that's entirely your call. If you and your team agree on it, I'm very happy to hear it increases your quality of life. Where I start to drift is when I see it included on any project because "everyone's using it" I do not ever want to use it. I tried to see what all the fuss was about. I read the book and. No thank you. I promise I'll add it to projects on my own if I come across new info. Remix takes the right approach. They recommend it in their docs... but stop short of making it a product dependency. (If it's included in one of their stacks, I'm not sure)
- CharlesW 4y ago> But I wasn't wrong about AngularJS, Bootstrap and a litany of jQuery plugins. Although it's an imperfect measure of developer popularity, Angular has 82K stars on GitHub, Bootstrap has 158K, and jQuery itself has 56K. Both projects you love have fewer stars. Assuming your opinion is that those projects are "dead", you may have "shiny thing syndrome".
- chatmasta 4y agoYou might argue that popularity is an indication of how many people are stuck with it due to (for example) Bootstrap’s unmaintainable nature. I agree with thread OP that tailwind is a mistake, but I’ve also never tried it myself, and I see a lot of people like it. I’ve avoided it because I have a rule of thumb to avoid any DSL embedded within another DSL. It’s a nightmare for static analysis, as demonstrated by the fact it needs its own compiler. That’s enough reason for me to stay away from it; I’ve got enough layers of compilation to worry about as it is.
- nobleach 4y agoI did use Tailwind. I read the book as well, just to really be sure I wasn't missing something. I hear the cries of "Tailwind fixed so much of my hatred for CSS" all over Reddit/HN/Twitter/etc and I really don't get it. At this point, I really chalk it up to "people want to be in the in-crowd". I'm sorry for those who really are experiencing a better quality of life. For me, I remember Bootstrap and how insane it was to remember all these utility class name (some with numbers to represent values that one might add to a CSS rule) But I get that people DO seem to love it... for whatever reason. I am just against adding it to a project as "the default". I get that it's just "one line to remove it" but it reminds me of the days when projects just included Lodash, jQuery and Bootstrap because... "everyone's using them anyway".
- nobleach 4y agoPlease don't assume my opinion. AngularJS (not Angular) was a bad abstraction. Many years later, we can all see it. It's so bad that the core members abandoned it to create Angular - which, many still dislike in the front-end community, but it's actually a very competent project. My gripe is about including bike-shedded "everyone's using it anyway" dependencies in any project. I wouldn't want this author including Styled Components or SASS or Less either! So no, I was not wrong at all in 2013 when I called out AngularJS for being a bad abstraction. The amount of hate and downvotes I got back then is just like what I get when I say, "tailwind is a bad idea and I think we'll all see that in a couple of years." Nothing to do with "shiny stuff". I think it's more like, "I'm old enough to have seen this show play out a few times"