andrew at andrewmcdonough.co.uk
Thu Dec 10 07:45:30 PST 2009
As a recent Haml convert, I think most of the criticisms of Haml miss
the point. The main gain isn't the fact that it saves you typing,
it's that it makes your views much cleaner and more readable. I
actually think it leads to more semantic code as it forces you to
think of the structure of the page, not how you want it to look. It's
also less likely that you're going to break the X bit of XHTML, as all
tags are closed implicitly.
The other thing that's worth noting is that you don't have to choose
between Haml and erb, you can quite easily use both in a single
project. Why not try converting one of your views into Haml and see
if you find it more readable? You can learn enough Haml to do this in
about 10 minutes, and it's really worth trying it out, even if you
decide it's not for you.
2009/12/10 Anthony Green <Anthony.Green at bbc.co.uk>:
>> Isn't it time you all gave in and used haml? Come on - you know it
>> makes sense....
> I've always dismissed HAML as one of those project 'where the devil makes
> work for idle hands'
> I'm not convinced by the need for an abstraction that seems to require such
> cognitive adjustment from the final output.
> As a Semantic HTML Web Standardista I also presumed it could only lead to
> more terrible HTML code.
> Willing to listen if someone can show me I'm wrong.
> Anthony Green
> Client Side Developer
> Future Media & Technology for BBC Audio & Music Interactive
> Room 718 | 7th Floor | Henry Wood House | Tel: x54341
> This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
> If you have received it in error, please delete it from your system.
> Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
> Please note that the BBC monitors e-mails sent or received.
> Further communication will signify your consent to this.
> Chat mailing list
> Chat at lists.lrug.org
More information about the Chat