News for hackers. Stuff that matters.
Re:In defense of functional CSS by every_other on Thursday September 27, 2018 @12:03PM (#18085761)
Yeah, think that's everyone's first reaction (you shouldn't mix style and markup) but with a component centered development pattern, those concerns largely become non-issues. `card-wrapper` becomes a component and you update your styles there.

I will just say theory aside, in practice, this has worked out great for our team. In my 5+ years experience, I've constantly run across the issue of legacy code with thousands of classes, referencing potentially non-existent markup and countless one-off tweaks. You can start with the best intentions and organization in your SASS files but eventually things start to get really crufty. Keeping everything in components and keeping styles in the markup alleviates a lot of that.

Re:In defense of functional CSS by sam0x17 on Thursday September 27, 2018 @12:33PM (#18086108)
On that note, would love to see developer tools in the major browsers complain with warnings about missing CSS classes :/