Hacker News new | ask | show | jobs
by fleitz 5469 days ago
Personally, I really like the whole coffeescript/sass/haml trio. (I really don't like SCSS).

It drastically reduces the amount of errors in your code, at the expense of a syntax that's a little different.

3 comments

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?
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.