News for hackers. Stuff that matters.
Re:Tailwind CSS v4.0.0 Alpha by AlchemistCamp on Wednesday March 06, 2024 @01:04PM (#39618824)
BEM was great, for the early to mid 2010s. Utility classes have still been a big productivity win for me.

Working on an app with a great deal of technical debt last year, moving to Tailwind made a world of difference in being able to restyle components without also breaking styles on distant parts of the app that nobody on the team realized were relying on the same styles.

Re:Tailwind CSS v4.0.0 Alpha by ehutch79 on Wednesday March 06, 2024 @02:09PM (#39619887)
Utility classes are good and all. Scoped css is great.

"Naming things is hard" is still such a cop-out.

Re:Tailwind CSS v4.0.0 Alpha by reidjs on Wednesday March 06, 2024 @02:46PM (#39620406)
You can still name things when it makes sense, I just like that in tailwind I don't have to name ALL of the things. It's nice to be able to easily add some margin, or padding, or a few style properties to an element, instead of coming up with a name AND adding those properties in a separate file.
Re:Tailwind CSS v4.0.0 Alpha by cqqxo4zV46cp on Wednesday March 06, 2024 @06:37PM (#39623218)
“Naming things” being one of the two / three hard problems in software development is literally a meme. They didn’t pull it out of thin air.
Re:Tailwind CSS v4.0.0 Alpha by scotty79 on Wednesday March 06, 2024 @10:23PM (#39624738)
You could say the same about style="" attribute and !important

Mess is still mess even if you are making it through a framework.