300KB is a silly amount of CSS
-
300KB is a silly amount of CSS
it might not seem much in terms of file size over the network, but it decompresses into megabytes, of which only a very small fraction will actually get used.
just write plain CSS if you don't want a build step
-
@mayank I keep absolutely bouncing off of tailwind. I just don't get it.
-
@polotek @mayank standardized utility CSS classes for layout stuff is really great, especially at scale when you’ve got hundreds of engineers and you don’t want them getting into specificity wars or using subtly different rules.
It’s not so great when you try to do _everything_ that way, or need increasingly complex build tools to make it scale.
A pragmatic approach might be to pull in just the layout / spacing in a more minimal package, but they don’t seem to have much interest in that.
-
@polotek @mayank it’s also meant as a way to level the playing field. It’s a useful tool when you don’t want to invest in training your engineers to actually understand CSS.
For people who already know CSS well, it turns into an exercise in having to constantly look up the names you need to do something you could do faster with a tiny well-scoped rule.
-
-
@polotek @mayank isn’t that generally the argument these days about why people use React and why AI tools for engineers are so popular? GraphQL and MongoDB to complete the stack.
It’s not all bad — this stuff can be a great force multiplier at larger companies in limited doses, but it requires time and expertise to do in a thoughtful way.
-
-
@sangster @polotek @mayank > It’s a useful tool when you don’t want to invest in training your engineers to actually understand CSS.
Boy, that is *sad*...
I don't know how Tailwind has this aura of the solution of all CSS problems, but when you face style issues that could be solved by learning CSS properly, somehow it's not Tailwind's fault.
I mean, we end up with people thinking that 300 kB of gzipped CSS is *fine*, what could possibly go wrong?! -
Marco Rogersreplied to Massimo Artizzu 🇺🇦🔱 last edited by
@MaxArt2501 @sangster @mayank tech culture is so fascinating. It's wild to admit that we knowingly hire people who have no interest in learning how to do the job properly.
But at the same time we love to talk about how we're looking for "the best talent". Can't make this shit up.