Re:I Heart SASS, But HAML, I'm Just Not That In To You
by rimantas on Wednesday May 04, 2011 @04:44PM
(#2515229)
Sass offers solutions for some CSS shortcomings: lack of variables, mixins, terse nesting and like. And easy modularization as a bonus. You can have all that with regular CSS syntax (SCSS).
HAML offers… well, just different syntax.
So I see very good reasons for using SASS and see no reasons to use HAML. Or maybe that's just 15 years I've been writing HTML.
[ Parent
| on HN ]
Re:I Heart SASS, But HAML, I'm Just Not That In To You
by cheald on Wednesday May 04, 2011 @05:41PM
(#2515417)
I resisted Haml for a long time for much the same reason. I then ended up using it for XML views (rather than builder, which is rather slow) and was rapidly hooked. I don't think I would ever go back to writing raw (X|HT)ML given the choice.
Re:I Heart SASS, But HAML, I'm Just Not That In To You
by grimen on Wednesday May 04, 2011 @06:56PM
(#2515588)
Don't forget the people than need to clean up the typos from the non-syntetic-sugar - aka "keep it native" - guys, and pay the salaries for work that takes 3 times longer just becuase of some weird principles. The best thing with this is that it's optional, and if you get into a project with HAML/SASS you can convert 1:1 back and forth so...not a big deal.
Re:I Heart SASS, But HAML, I'm Just Not That In To You
by rimantas on Thursday May 05, 2011 @04:02AM
(#2516576)
Don't forget the people than need to clean up the typos
from the non-syntetic-sugar - aka "keep it native" - guys
HAML has some features which prevent from making typos when typing code? Interesting. Anyway, I am not sure what typos are you talking about. Syntax-highlighting + validation is good enough combination for me to avoid typos.
Honestly, never had that problem. and pay the salaries for work that takes 3 times longer
Why would it take three times longer? I do produce my HTML manually, but that does not mean I type every single character in the code by hand. Snippets, Zen-coding/Sparkup, autocomplete, etc.—all this allows to produce HTML fast, efficiently and avoid syntax errors.
Re:I Heart SASS, But HAML, I'm Just Not That In To You
by grimen on Monday May 09, 2011 @02:25PM
(#2529654)
"Honestly, never had that problem."
Most common problem with manually generated XML/HTML is broken tags (not closed correctly).
"Why would it take three times longer?"
The number 3 is just picked by me based on my own experience - I finish views way faster than the ones I've worked with, with best-pratice semantics. If you write valid semantic HTML as fast as me with no tool you are just very good, but you don't represent the majority.