Doesn't BEM equally solve the cascade?
Yes. But it creates the problem of naming everything. Which is clearly a problem in itself.
Re:Tailwind CSS v3.3
by bryanrasmussen on Wednesday March 29, 2023 @12:27PM
(#35359538)
well part of the whole discussion up was that BEM was a crappy solution, really the best solution is to know how stuff works so you make your solution correctly.
But because some people don't know how stuff works you come up with rules that if they follow they won't mess stuff up. They won't make things in the best way, but they won't screw stuff up either. hurray!
Yes! And that's the whole point I guess. What's the best, cheapest, simplest way of preventing these mistakes?
I think simple linting could be part of the solution.
Re:Tailwind CSS v3.3
by bryanrasmussen on Thursday March 30, 2023 @03:21AM
(#35369239)
the best way is the most remunerative way as well, which is that people know how to do things correctly, knowing how to do things right means that people make less mistakes, making better things.
However this is not the cheapest (because costing learning time) or simplest way.
the problems these things all try to solve are not so much how to style things, but how not to have the cascade bite you because your devs didn't understand that part.
So how to describe that a problem - is it a CSS data model problem?