News for hackers. Stuff that matters.
Re:HAML: the unforgivable sin by callahad on Wednesday November 30, 2011 @12:11PM (#3295763)
When writing JavaScript or CSS, I find it much easier to determine how to select an element, since classes and IDs follow CSS (and thus jQuery, et al) selector syntax.

To wit, I find it much easier to derive 'ul#foo .bar' from

  %ul#foo
    %li "Hello"
    %li.bar "World"
Than from

  <ul id="foo">
    <li>Hello</li>
    <li class="bar">World</li>
  </ul>
Being able to more confidently and accurately pick selectors out of markup is, for me, a concrete win.
Re:HAML: the unforgivable sin by nwmcsween on Thursday December 01, 2011 @05:33AM (#3299130)
Consider haml to erector:

  %ul#foo
    %li "Hello"
    %li.bar "World"

  ul :id => 'foo'
    li 'hello'
    li :class => 'bar' 'world'
  end
I personally don't like haml's use of seemingly arbitrary keywords. Coming back to a project and having to reread documentation due to cryptic syntax wastes time.
Re:HAML: the unforgivable sin by cheald on Thursday December 01, 2011 @01:07PM (#3300704)
What arbitrary keywords? "." and "#" are the existing CSS selectors for "class" and "ID", and I personally really like that I don't have to type them out all the time.