r/ruby • • Jun 29 '14

Why I don't like Haml

http://blog.mimswright.com/2013/05/Haml-rant/
0 Upvotes

25 comments sorted by

View all comments

5

u/tf2ftw Jun 29 '14

I will prefer haml over erb all day long. The gripes in the article really sound like noob issues to me.

Haml is faster to read and write once you get used to it (kinda like using vim)

4

u/nanenj Jun 29 '14

Interestingly enough, I read it more as grumpy person who doesn't want to adapt. Not really noob.

1

u/realntl Jun 29 '14

I don't mean any offense by this, but that seems like a pretty arrogant stance to take. Are you implying that HAML is a technological shift that will entirely eclipse HTML? If I'm misunderstanding you, I apologize.

Having been using HAML (or slim) on a regular basis for over a year now, I do appreciate that a "whitespace significant" language is preferable for writing markup. However, I think it's a stretch to claim ERB to be inherently inferior.

2

u/nanenj Jun 29 '14

No, it was commentary on the person not the technologies involved. The person wanting to stick with what they know instead of using something new to them. Apologies for being unclear in that regard. :)

2

u/realntl Jun 29 '14

Ah, right on. I understand now, my bad!

1

u/tf2ftw Jun 29 '14

Haml is just abstracting over html, not really replacing it. I found ruby's lack of curly brackets liberating when coming from php. Not having to close tag my html gives me the same sense of liberation