4 ms·
What is wrong with CSS is the same thing that is wrong with HTML and XML. We are trying to use these things as DSLs, but they lack a core aspect of a language:
by Xurinos 17y ago
What is wrong with CSS is the same thing that is wrong with HTML and XML. We are trying to use these things as DSLs, but they lack a core aspect of a language: means of abstraction. As a result, modern website work generally involves using somebody's favorite layer on top of this web data that provides that missing aspect. Jeff's favorite ruby gem is one approach.
I personally like the ideas behind languages the Lisp community is developing via Weblocks and UCW (on top of yaclml or cl-who) -- and the similar possibilities provided by perl's Catalyst::View::TD -- where you approach page design from the perspective of widgets combined on a page.
Here is what is forced on us with this flat data approach: The server bears the weight of producing the flat data, and the network has the burden of carrying that large flat data from the server to the client. The client must render all that flat data. If the data had means of abstraction, the server would not need as many intermediate layers to convert it, the network would have less to transfer, and the client browser would be able to take advantage of optimizations for abstractions and parse less data.
Has anyone made any real headway on getting a replacement for HTML browsing? a movement away from "pages" and more towards "gateways" or "portals" to the graphical net?
- nex3 17y agoInterestingly, Chris Eppstein, my co-developer on Sass, agrees with you that CSS needs abstraction. However, he concludes that Sass is a good language for expressing that abstraction: http://chriseppstein.github.com/blog/2009/09/20/why-stylesheet-abstraction-matters http://chriseppstein.github.com/blog/2009/09/20/why-styleshe...
- blasdel 17y agoWhy the hell do you want the web to use stateful, synchronous, persistent connections? Good luck implementing Xanadu.
- klochner 17y agohttp://en.wikipedia.org/wiki/XSL_Transformations http://en.wikipedia.org/wiki/XSL_Transformations
- Xurinos 17y agoXSLT is a parser for XML similar to how a browser is a parser for HTML (and, well, XML). I counter with SVG (see http://www.renater.fr/Video/2001ATHENS/DC-SVG/ALL.HTM http://www.renater.fr/Video/2001ATHENS/DC-SVG/ALL.HTM for some fun stuff), which, even in an XML format, includes abstractions such as defs that will be handled by the SVG parser. We can do better with/than HTML. We can do better with/than CSS.