Hacker News new | ask | show | jobs
by underwater 5550 days ago
After watching the presentation I agree that CSS has major issues with reusability and code cleanliness. Though I don't think it's as bad as she makes out; I don't know any developer who refuses to use classes.

I think the approach she takes to solve the problem is wrong though. HTML and CSS like her OOCSS approach promotes is just nasty.

    <div class="unit size1of3">
    <b class="top"><b class="tl"></b><b class="tr"></b></b>
How is coding the layout into the HTML any different from the table based layouts we were doing ten years ago? This is going back to tying your styling directly to your HTML.

Bringing mixins into CSS would solve this in a much nicer way. Define your fonts and columns in a couple of reusable mixins, and then define your site-specific content mixing and matching your reusable components.

1 comments

  How is coding the layout into the HTML any different from
  the table based layouts we were doing ten years ago?
It is not. Three things irritate me when talking of CSS: reset stylesheets, grid frameworks and oocss.

Luckily SASS solves or alleviates most of the problems they are supposed to solve.