Skip to content

Comment on HAML: the unforgivable sin

Comments

Conciseness is the major benefit of haml. As a given template in haml is shorter than its equivalent in html or erb, then naturally each line requires more attention to read, there's more information in it.

So perhaps html is "easier" to "read", but in html you're mostly reading noise.

but in html you're mostly reading noise.

To quantify: In your typical web-templates that contain little actual content you'll easily approach 50% noise.

Next time you re-arrange some HTML template, pay attention to the time you spend searching, counting and re-ordering all those closing spans and divs.

That's why people like HAML - it actually saves time.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.