3 ms·
Could you share what you mean by that? I suppose it was sarcasm, but I didn’t get the point.
by 9dev 2y ago
Could you share what you mean by that? I suppose it was sarcasm, but I didn’t get the point.
- em-bee 2y agoCSS doesn't fix junior developers [wasting] hours scrolling an obtuse man page until they resort to a half-assed SO response
- orangecat 2y agoHa sorry, that was probably overly snarky. I was thinking of CSS's multitude of string-valued properties that effectively have their own DSLs, ranging from the simple "5px 10px 0px 10px" for padding/margins to much more complicated expressions for gradients and animations. And it's all stringly-typed so (without additional linters) you don't get told when you format values incorrectly or set mutually exclusive properties. But there are also lots of advantages in terms of flexibility and ease of use (the "API" is just "style.foo = bar"), and that's led to CSS being ubiquitous and extremely successful. I think this applies to some of your complaints about terminals as well. Yes escape sequences are ugly, but it means I can just emit the appropriate bytes from any program written in any language rather than figuring out what library I need to import to generate a correctly formatted structured message, and operating on the byte stream level lets it transparently work across remote connections. I'm all for experimenting with new approaches, but we shouldn't lose sight of the existing benefits.