4 ms·
I don't think the idea that people will use tools to automate generation of CSS is a new idea, nor is it worth claiming the "demise of CSS" over it since it's o
by halo 17y ago
I don't think the idea that people will use tools to automate generation of CSS is a new idea, nor is it worth claiming the "demise of CSS" over it since it's only a paper-thin abstraction over CSS anyway. People aren't calling web scripting languages "the death of HTML", afterall.
I'm not sure the analogy between languages compiling to machine code is a particularly good one. High-level languages compile to machine code because it's extremely tricky to create or update hardware to support high-level languages, and machine code is especially ugly. Neither of these apply to anywhere near the same extent to CSS, which significantly reduces the advantages of added abstractions.
I'd also be way of calling Sass a "programming language". CSS preprocessor would be more accurate.
- ighost 17y agoI agree, CSS preprocessor is a more fitting term. It does trivial macro expansion and arithmetic. No control or data structures.
- chriseppstein 17y agoThat's incorrect. Your knowledge is more than 1 year old. SassScript is Sass's built in scripting language and it is turing complete. Here's a stylesheet that calculates and displays the mandlebröt set using background colors: http://gist.github.com/280756 http://gist.github.com/280756
- jlong 17y agoI prefer to call it a designer's programming language. BTW, Sass does have simple control statements (if and while). I didn't cover all of the things that Sass can do. To get that see: http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html