News for hackers. Stuff that matters.
Re:How We Could Write Better CSS by ultimatedelman on Tuesday September 24, 2013 @01:10PM (#6439196)
while the mixpanel CSS is awful, the facebook CSS is not much better. any time you have to use a class that is descriptive of what the element should look like (for instance, .mas, which presumably stands for Margin All Small), you've tightly coupled the structure to the presentation and failed at CSS. While the article gets the idea mostly right, the counterexamples it uses are just as bad practice.
Re:How We Could Write Better CSS by Pxtl on Tuesday September 24, 2013 @01:17PM (#6439261)
The Facebook CSS is so utterly specific that they may as well use style attributes directly.