News for hackers. Stuff that matters.
Re:CSS: It was twenty years ago today by gioele on Friday October 10, 2014 @09:30AM (#8437542)

  <body>
    <main>
      <p>It can be much better if you avoid abusing
         HTML classes for style.</p>
      <p>Classes are meant to describe the role of
         the tag, not its presentation.</p>
    </main>

    <aside>(use Sass instead)</aside>
  </body>
--

  /* Sass + Neat */

  body { @include outer-container; }
  main { @include span-columns(4); }
  aside { @include span-columns(3); }
Re:CSS: It was twenty years ago today by Touche on Friday October 10, 2014 @10:11AM (#8437738)
Unfortunately in the reason world you tend to design components that can be used anywhere in the page (and hopefully reused in different pages) so you don't get the freedom to work this way.
Re:CSS: It was twenty years ago today by blowski on Friday October 10, 2014 @10:45AM (#8437956)
Unfortunately true, although the Shadow DOM could help fix that.
Re:CSS: It was twenty years ago today by Swizec on Friday October 10, 2014 @09:38AM (#8437566)
I agree. We were producing the cleanest HTML back when "semantic web" was all the rage. Around 2009 I guess?
Re:CSS: It was twenty years ago today by lmm on Friday October 10, 2014 @11:36AM (#8438249)
Are you kidding? The semantic web was just a bunch of extra junk layers of indirection. Schematize everything, but nothing's actually using the schemata. Replace your <i> tags with <em> tags, because that's more semantic, and easier for a screenreader to interpret (this was a real argument made at the time). Write your actual page as an XSLT on top of what we'd now call your API - but XSLT is barely human-writable, never mind human-readable.
Re:CSS: It was twenty years ago today by porker on Friday October 10, 2014 @09:57AM (#8437663)
Before looks were everything and HTML reduced to a presentational markup?

I miss them days.