4 ms·
Can't tell if this is an especially dry joke or not, but HTML
by opportune 9y ago
Can't tell if this is an especially dry joke or not, but HTML
- jdmichal 9y agoI think maybe HTML-as-content is declarative, but HTML-as-layout is mostly imperative. I would expect a constraint-solving engine in any declarative layout system. Tables have some minor constraint solving capabilities... So of course we do our best to never use them for layout! Flexbox was definitely a step in the right direction. I've talked before about an idea to split layout into a new technology, freeing HTML and CSS to only consider content and presentation: https://news.ycombinator.com/item?id=13536585 https://news.ycombinator.com/item?id=13536585
- marcosdumay 9y agoYes, but the smallest amount of behavior requires the imperative-by-default javascript, and the design is in pratice decided by the results of the interference of two different declarative languages (HTML + CSS). It's not the simplest or clearest thing around.
- virgil_disgr4ce 9y agoI meant declaring the UI interactions as well as the content structure