3 ms·
The "robot" generated CSS the author ends the article with looks clever. I'll ignore the logic that since CSS is bad we should write Javascript instead. Rarely
by alttab 10y ago
The "robot" generated CSS the author ends the article with looks clever. I'll ignore the logic that since CSS is bad we should write Javascript instead. Rarely is the answer "write more javascript" or "find a way to make javascript the answer."
I digress. The example at the end of the article suggests that each element would have its own unique class, and the CSS will be compiled and duplicated across all elements. This could have the side effect of increasing the bloat of both the HTML and the CSS, although it can be forgivable in some situations.
But now you have HTML and CSS hidden in the complexity, and all of it is managed via Javascript.
Makes me wonder.