Re:Why use HAML (and SASS) if you already know HTML?
by tptacek on Tuesday February 02, 2010 @09:06PM
(#1096855)
It is so. much. faster. to write. I've never been able to articulate why, but, in particular, if you do interaction by lighting up DOM elements by class in jQuery, Haml is like having a language designed to lay out UIs.
[ Parent
| on HN ]
Re:Why use HAML (and SASS) if you already know HTML?
by chrischen on Tuesday February 02, 2010 @09:13PM
(#1096867)
Iunno, 99% of my HTML writing is copy & pasting. I just write one thing and usually just copy and paste it around. The bottleneck is in fixing CSS and cross-browser display, not really the speed of HTML coding.
That being said, if your HTML development style is based around writing everything then I can see how it would be faster. But for me I use autocomplete+copy&paste, and then usually a lot of other stuff I (embarrassingly) google and then copy from examples.
Re:Why use HAML (and SASS) if you already know HTML?
by defen on Tuesday February 02, 2010 @11:27PM
(#1097066)
Well, if you also use jQuery, you can copy&paste your HAML code into a jQuery selector, which is nice.
Re:Why use HAML (and SASS) if you already know HTML?
by mhansen on Wednesday February 03, 2010 @02:27AM
(#1097277)
99% copy and paste? Sounds like you need some abstraction like a templating system.
Re:Why use HAML (and SASS) if you already know HTML?
by chrischen on Wednesday February 03, 2010 @03:27AM
(#1097337)
I started writing an abstraction system... Then I realized about 5%, maybe even less, of my development time is actually in the HTML. Even for front end most of it is in CSS/javascript after you get the HTML structure ready. Copy and pasting is because much of that structure is repeated, but still there isn't much copy and pasting on the whole.