4 ms·
I mean, this has a lot of out of date information which I guess is not surprising for someone who says I'm not an expert and don't do production CSS, but it is
by bryanrasmussen 5mo ago
I mean, this has a lot of out of date information which I guess is not surprising for someone who says I'm not an expert and don't do production CSS, but it is weird to get the suggestions that are pretty reasonable for 5+ years ago.
- Joker_vD 5mo agoYou know, this speaks volumes. Layout is a complicated business, sure, but CSS just keeps having monumental shifts in how you're supposed to approach it year after year; it's as if it's done without any overarching theory/vision but merely groping in the dark, trying things and fixes, and seeing what sticks and doesn't suck too horribly (this latter part is optional; remember Yandex's BEM?)
- Jaxan 5mo agoYou really don’t have to change your css. My personal website has been using roughly the same css for a decade. Why not? Sure if you are a designer and want to follow trends, you’ll have to keep your css skills up to date. But for most websites, you can use css from a decade ago.
- TonyStr 5mo agoWould you prefer that CSS never evolve, and our frustrations remain the same? Writing CSS today has gotten significantly easier with flexbox, variables and now nesting. BEM is not part of the CSS spec, that's just a design methodology.
- Joker_vD 4mo agoI would prefer it to finally figure things out properly, and then just stop changing, yes. > Writing CSS today has gotten significantly easier with flexbox, variables and now nesting. Which, you know, are not some technically complicated ideas that simply could not have been done thirty years ago. Heck, <table> existed, and so did the algorithm that laid it out, from the outset yet getting flexbox to replicate that functionality took literal decades. And nesting is in no way more complicated to implement than cascading. > BEM is not part of the CSS spec, that's just a design methodology. Yes, and it existed for a reason, to paper over the deficiencies of the built-in functionality.
- micromacrofoot 5mo agoat least it changes less than js frameworks
- llbbdd 4mo agoWe're going on 13 years since React launched publicly
- micromacrofoot 4mo ago17 years for flexbox
- matt_kantor 5mo agoThis comment could be improved by adding specific examples and explaining what people should be doing today instead.
- bryanrasmussen 4mo agoI did consider to suggest that it was a bit weird to mention flexbox and not grid, but I figured most people who would have an interest in this would pick it up fairly quickly. I did also make another comment on this post that, at a sort of meta level, explained why I felt that the view of the author was wrong headed about modern CSS usage. That comment was pretty much just distilling some points I had been thinking to write as a longer article, but hopefully now I have it out of my system and I can get on to more important things!