top | item 36631993

(no title)

louzell | 2 years ago

It's hard to argue against the power of separating content from presentation when we can see the results with our own eyes in a couple clicks on Zen Garden. I have a hard time seeing how the disparaging title of "architecture astronaut" is warranted by it.

discuss

order

kaba0|2 years ago

HTML and CSS has overlapping control over many properties on how a given document is rendered, so Zen Garden is more like “check out this Turing complete program written in CSS” — cute and interesting, but it is not practical as we can see from.. literally no real website doing anything remotely like that. This myth came from a time when we had markdown-level HTML markups, and it made sense back then: sure, why not let me color headers red? But it doesn’t scale as it simply doesn’t compose. That cascading part doesn’t make sense for many properties: should padding be inherited? It basically never makes sense. Components are the sane building blocks (as has been realized by desktop GUIs decades ago), and we are much better off with strong encapsulation here (shadow dom is a welcome change).

isleyaardvark|2 years ago

That power is only for the contrived example of doing a complete redesign that doesn’t change any of the html content. It’s like one of those demos people make of a CSS-only thingamajig that would be much easier to do any other technology. It makes for an interesting tech demo but isn’t practical for day-to-day development.

Clamchop|2 years ago

Templates, themeable products like WordPress, dark modes and alt accessibility presentations...

imbnwa|2 years ago

>That power is only for the contrived example of doing a complete redesign that doesn’t change any of the html content.

Didn't Github just re-style their whole UI? Presuming that's an extreme possibility seems like premature optimization unless you run Product.