News for hackers. Stuff that matters.
Re:Fix CSS by writing it in JavaScript by talmand on Tuesday November 25, 2014 @01:53PM (#8659036)
The code you write doesn't care about classes, but the CSS that is generated does. Why not do it the CSS way from the beginning and take JS out of the equation altogether so that everything is more efficient?

The most common answer I've seen is "because I don't want to learn CSS", which I don't feel is a good enough answer.

I can write CSS all day using classes that do not conflict in the manner described.

Re:Fix CSS by writing it in JavaScript by spion on Thursday November 27, 2014 @06:42AM (#8666820)
There is another answer pointed out multiple times throughout this thread which is "because name clashes happen if we want to write components in isolation from other teams". Its just that the "writing separate components" part never happens exactly because the infrastructure doesn't support it (except in situations of dire need like fontawesome), so there are "no problems" :)