I Hate Haml
ithaca.arpinum.org
I Hate Haml
1–10 of 37 posts
Re: I Hate Haml
#2Re: I Hate Haml
#3Re: I Hate Haml
#4%h2 Heading content
%p This is just some emphatic text. Maybe I'll talk about $BASH_VERSION here.
Personally I'll never go back to writing straight HTML ever again. It's ridiculously verbose, uses characters that are very hard to type, and it's easy to forget to close a tag and not realize it.
Re: I Hate Haml
#5- Too much syntax for a pure writing markup languages, compared to Markdown or Wiki syntaxes
- Too little syntax compared to even syntax light languages like JSON or [HT|X]ML (when written with zen coding or a tag matching editor)
It's just kind of awkward. Useful when embedded into rails, but not as a general use markup language.
Re: I Hate Haml
#6The OP provides the following example as a irrefutable damnation of haml:
%h2 Heading content
%p This is just some
%em emphatic
text. Maybe I'll talk about
%code $BASH_VERSION
here.
They complain about the inability to nest em and code tags on a single line.Hey OP, try this:
%h2 Heading content
%p
This is just some emphatic text. Maybe I'll talk about $BASH_VERSION here.
or did you forget that you can mix html in with haml where needed? Pointless, sloppy, flame-bait. /endrant
I was reluctant to learn HAML myself, but after being "forced" to do so on a project last spring, I actually cringe when I see standard HTML and CSS now. Not only has haml shrunk the size of my code by almost half, it has made it easier to scan, maintain, and my css matches up much more closely to my markup. Simply put, HAML/SASS is one of the biggest productivity/sanity boosts I've experienced in my young development career.
*edit: spelling, and formatting.
Re: I Hate Haml
#7For displaying structured data, as one might do in a view in a web application, Haml shines. Just think about table code.
Nobody with sense has ever said Haml is a great replacement for HTML in all cases. But it's useful and (arguably) more pleasant to use within its domain.
Re: I Hate Haml
#8 %h2 Heading content
%p
:markdown
This is just some *emphatic* text. Maybe I'll talk about `$BASH_VERSION` here.
Note that Markdown allows you to embed normal HTML tags within itself, in case it doesn’t provide syntax for the tag you want. I’m not sure what the Haml stance is on that practice.Re: I Hate Haml
#9In which the OP can't figure something out so they choose to flame it instead. The OP provides the following example as a irrefutable damnation of haml: %h2 Heading content %p This is just some %em emphatic text. Maybe I'll talk about %code $BASH_VERSION here. They complain about the inability to nest em and code tags on a single line. Hey OP, try this: %h2 Heading content %p This is just some emphatic text. Maybe I'…
PS - You spelled "flame-bait" wrong.
Re: I Hate Haml
#10Haml hits the wrong points for me as well: - Too much syntax for a pure writing markup languages, compared to Markdown or Wiki syntaxes - Too little syntax compared to even syntax light languages like JSON or [HT|X]ML (when written with zen coding or a tag matching editor) It's just kind of awkward. Useful when embedded into rails, but not as a general use markup language.