Re:CoffeeScript. An Outsider Opinion
by nuclearsandwich on Sunday July 03, 2011 @09:25PM
(#2725055)
Yeah, you've hit on what really appeals to me about those three and others like them. They shift focus to what's really important in each case.
In HTML I want to focus on document structure, not closing my tags. In CSS I want to focus on style and visual consistency, not nesting. In Javascript I want to focus on application behavior, not semicolons.
Last time I looked into sass/scss/less, I decided Stylus is for me. Looked into that? Not just getting rid of semicolons and curlies, but even colons :) plus macros, functions, variables, calculations, all the "usual" stuff.
Interesting, I noticed npm install stylus, does this mean Node only? Or is there a ruby/rails version?
Re:CoffeeScript. An Outsider Opinion
by lucian1900 on Sunday July 03, 2011 @09:27PM
(#2725061)
You might also like LESS.
I'm guessing someone who prefers SASS over SCSS is going to also prefer SASS over LESS.
One of the reasons we did not switch from HAML/SASS/SCSS to LESS/Jade/Stylus is the output. HAML and its cousins do the extra little things to help developers diagnose problems like adding comments with the original line # and file; pretty-printing, etc. All these options can be disabled for production of course.
It drastically reduces the amount of errors in your code, at the expense of a syntax that's a little different.