Site Design 2018-11-03

Tags:
By Max Woerner Chase

In this post:


At work, the main project I'm on is using Semantic UI. This was not my decision. I keep on bouncing off the documentation when I try to read it, though I think I basically understand the concepts now. One barrier to my reading the documentation is its tendency to give examples like <div class="ui button">, a construction that strikes me as akin to putting a sticky note that says "food" on a brick, and calling that cooking. I think supporting UI automation code for years might have given me a hardline stance on this kind of thing. Anyway, the other issue is that, while I'm bouncing off the documentation, I'm also rolling around in my head a quote from the front page: "Get the same benefits as BEM or SMACSS, but without the tedium." and thinking wistfully about working on this blog's theme. I don't know what BEM-related tedium they're talking about.

All of this is to say that I was reading up background material on Semantic, and I ended up looking at the generated source for one of the pages on the site. From reading up on Semantic, I came to the conclusion that I should probably be using em or rem in my theme, so that's why everything looks a little different as of earlier today. The other thing I noticed was that my generated html had some errors, which I will sum up thus:

While I'm thinking about this, I plugged the site into the W3C validator. It tossed up some warnings. I'll see about fixing those.

...

In the end, I was able to fix the lang attribute being broken on most pages. There's also some stuff about the contents of the <header> elements that I'm not sure is a problem per se, and also the generated code is using some obsolete HTML, which, goddammit, I trusted whichever component is messing this up. I trusted it!

So, there's more work to be done on this stuff, but it's Friday night and I want to wind down. Final thought on Semantic UI's front page: I really feel like bringing up BEM and SMACSS is a tactical misstep, because Semantic UI seems to me like a different kind of thing from BEM and probably SMACSS. So, while I'm hitting the docs at random trying to find stuff, I keep on having to fend off the incorrect idea that I could just replace Semantic UI with BEM. After all, Semantic UI itself set them up as competing technologies. But this is absurd; Semantic UI is a framework, and BEM is a set of naming conventions. Also, I still don't know when the tedium of using BEM is supposed to hit.


Next post, I guess I should try to make some of those interpreter changes I mentioned.