4 ms·
Except for the whole "Cascading" part. I think I understand tailwind, but like the parent poster I'm really not a fan, because while CSS can be a footgun, it c
by mablopoule 3y ago
Except for the whole "Cascading" part.
I think I understand tailwind, but like the parent poster I'm really not a fan, because while CSS can be a footgun, it can also be quite clean when you use a sane DOM structure, CSS variables, and well thought out CSS selectors.
- paleite 3y agoi think that’s what people’s argument FOR tailwind is: CSS can easily be a footgun, unless everyone on the team uses a sane DOM structure, CSS variables and well thought out CSS selectors. i’ve yet to witness a project without “!important” scattered throughout the codebase.
- broast 3y agoThat's sad to hear. Good CSS with an intuitive DOM structure is simple to achieve yet so powerful. Hate to see devs give up that power.
- nisegami 3y agoComplex solutions are much, much easier than simple solutions.
- yurishimo 3y agoExactly this. Anyone who has worked with a junior developer understands this intuitively. They spend a week smashing their head against the desk figuring something out, then in review, you (the senior dev) can look at it for 30 seconds and see all the holes they missed and think of a simpler solution that uses 1/3 the amount of code. Simplicity is a skill and it's hard to do. There's a reason most people are not minimalists despite the almost universal western desire to "have less stuff".
- troupo 3y ago> quite clean when you use a sane DOM structure, CSS variables, and well thought out CSS selectors. I've yet to see a single project that doesn't fail on all three.
- mablopoule 3y agoI'm sadly not surprised to hear that, same for another poster who had the displeasure of working with a codebase with !important sprinkled everywhere. Truth is I've been spoiled on that front because I had the luck to work for many year in a company where the CTO was a very talented dude who lived and breathed HTML/CSS since the mid-2000's, and who was quite thoughtful about that kind of stuff, so I had a first-hand experience of a good codebase, mostly by avoiding external dependencies, using the standard browser behavior, and frequently consulting the MDN. This is why it's a bit disheartening to see so many front-end framework working against the plateform, even even marketing against it, while CSS and browser tooling his so much more enjoyable and powerful than before.
- troupo 3y agoSo, to have what you have you need a "very talented dude who lived and breathed CSS and HTML". Technology that makes it easier to make bad decisions than good decisions is not a good technology. > This is why it's a bit disheartening to see so many front-end framework working against the plateform, even even marketing against it None of the frameworks I know of do that.
- mablopoule 3y agoTrue, but the thing is that it wasn't really "complicated" CSS we used, but simply a good grasp on the fundamental of CSS, which is a overlooked part of web development. I believe it's mostly due to the fact that CSS, just like SQL, is one of those technology approachable enough to fiddle with it and get somewhat far, while not really learning it, and thus overlooking the fundamentals. > None of the frameworks I know of do that. I would squarely put into this category all the CSS-in-JS frameworks, such as 'styled components'. Also everything that markets the 'cascading' part of CSS as being a mistake. Also, all the frameworks that compiles CSS without generating the CSS sourcemaps, making the debugging experience way less efficient since all the applied CSS rules shows under '<style>' (eg: 'styled-components' again, who discarded it as being 'cosmetic' in the related Github issue).
- tmorton 3y agoThere are many technologies that match this pattern: "While X can be a footgun, it can also be quite clean when you use A, B, and C." In practice, they don't end up "quite clean" outside small personal projects.
- dikei 3y ago> it can also be quite clean when you use a sane DOM structure, CSS variables, and well thought out CSS selectors. This fall apart pretty quickly as soon as more developers join the project. Keeping consistency between multiple team members is hard without a reference point, which is what a framework like Tailwind provides.
- randomdigitz 3y agoTailwind is a means to an end. If you think writing css is the best way to spend your time, go for it. But I guarantee I can ship things faster using Tailwind.
- progx 3y agoWhich things? Individual styled simple elements? Sure. Complex reusable and customizeable components, no way.
- deleted 3y ago[deleted]
- marcosdumay 3y agoI'd say that the "stylesheets" part doesn't apply either. Tailwind creates "stylesets", and is absolutely powerless to apply them. Quite like WYSIWYG text editors. So, yeah, anybody claiming you are learning CSS by using it doesn't really know CSS. But I disagree, that kind of thing can be useful on certain contexts.