News for hackers. Stuff that matters.
Re:Modern CSS Code Snippets: Stop writing CSS like it's 2015 by AltruisticGapHN on Monday February 16, 2026 @09:24AM (#47035334)
BEM is actually not hell, since the whole point is to have classes with a specificity of 1, making precedence of CSS rules easy to figure out.

Non-BEM CSS with ids and multi-classes everywhere was hell.

Re:Modern CSS Code Snippets: Stop writing CSS like it's 2015 by exodust on Saturday February 21, 2026 @03:33AM (#47098709)
Agreed. I owe a beer to whoever thought of BEM. It's saved precious brain cycles thinking of names. At first I was like what is this bem__opinion--rubbish but then it clicked and my workflow improved.