Re:Why Sass And Languages Like It Will Triumph
by rufo on Tuesday January 19, 2010 @11:18AM
(#1062422)
Haml is literally a one-to-one relationship with HTML tags, so there's almost zero mental overhead. If anything, the tight relationship between indentation of HAML and outputted HTML makes it far easier to debug things, and I haven't had to debug a pesky missing closing tag bug in eons.
Sass is slightly more difficult, but by default in development mode it outputs comments describing which Sass rules generated the CSS you're looking at, so it's not too difficult to go back - and it's a far simpler language than whatever you're coding your app in.
Honestly, I don't see it as being any different than (as you point out) translating the outputted HTML/CSS back into ERB/PHP/etc, or as difficult as trying to trace output backwards through your codepath.
Re:Why Sass And Languages Like It Will Triumph
by rubyrescue on Tuesday January 19, 2010 @11:40AM
(#1062467)
to further the point, when you EDIT styles in the browser, you are always working on the generated file. Editing styles in the browser is WAY more common than editing HTML in the browser, and because the tools with which you edit the CSS in the browser generate CSS, it becomes much more tedious, ironically, to do a lot of CSS work, then convert to Sass.
Re:Why Sass And Languages Like It Will Triumph
by rufo on Tuesday January 19, 2010 @02:39PM
(#1062945)
Perhaps it's just the way I work, but generally if I'm adjusting CSS in the browser, I'm previewing how some potential changes will work. I already know what the affected class is (since I'm editing it inline), and I've already targeted the CSS I'm about to modify, so once I'm done previewing it's a simple matter to go back to the Sass and change things around.
Re:Why Sass And Languages Like It Will Triumph
by jlong on Tuesday January 19, 2010 @02:01PM
(#1062859)
All I can say is try it for a while. A month or two at least. I don't think the issues that you are anticipating are as great as you think they are.
Re:Why Sass And Languages Like It Will Triumph
by oscardelben on Tuesday January 19, 2010 @11:11AM
(#1062394)
Maybe I've misunderstood your post, but what's preventing you from seeing the generated code in your browser?
If I code in CSS and HTML, that problem is practically nonexistent (excepting things like templating). The CSS and HTML the web server serves are the CSS and HTML in the source code.