News for hackers. Stuff that matters.
Re:Tailwind and the Beauty of Ugly Code by cxr on Friday July 07, 2023 @07:55AM (#36630336)
Proper classes would appear rather more like `class="secondary sticky container hero-text"`* in the markup. So no.

* or `hero text`, even (sans hyphen)

Re:Tailwind and the Beauty of Ugly Code by imilk on Friday July 07, 2023 @01:20PM (#36635071)
Have you ever jumped in on a project with hundreds of "secondary sticky container hero-text" all over the code base? It is a woeful few hours (at least, maybe day or two) of cross-referencing all of these "semantic" class names to their definitions in CSS, and even then you are never truly sure if there is another rule overwriting your changes somewhere else in the CSS. And good luck if more than one developer has touched the code since you last saw it.
Re:Tailwind and the Beauty of Ugly Code by troupo on Friday July 07, 2023 @01:40PM (#36635394)
As I replied in a sibling comment: https://news.ycombinator.com/item?id=36635382