• Home
  • About

stonean

Feeds:
Posts
Comments

Haml: To be or not to be

December 12, 2008 by stonean

I’ve always reasoned that Haml went against the principles of an MVC framework because the designers would not (typically) be able to work with views written in Haml. I’ve recently come to the conclusion that, in practice, Haml is better for your project.

When I took a step back to analyze what impact a switch to Haml would have on our team I realized something interesting. After we receive HTML from our designers, we break it up into partials, attach unobtrusive javascript methods and make other various tweaks that require the designer to pair with a developer. The notion of keeping the responsibility of view maintenance with the designers was just proven incorrect in practice.

The succinct syntax and close connection to your stylesheets give your developers a more efficient environment. Isn’t this what we’re all after?

Speed concerns? With version 2.0, Haml is now slight faster than Erb and with that goes my last excuse for not switching.

Haml, I will now get to know you better.

Posted in Haml | 2 Comments

2 Responses

  1. on December 12, 2008 at 4:41 am Jeremy

    I made the switch a couple months ago. HAML takes a little getting used to, but it’s just plain awesome to work with.


  2. on December 13, 2008 at 8:38 am Peter

    Switched a couple of weeks ago to – now I am shivering whenever I see erb again ;-) Yeah, after 2 years with erb, haml was weird for the first few hours for sure, but now it’s just as plain clear as the green chars of the matrix for Neo ;-)



Comments are closed.

  • Open Source


    Lockdown (GitHub)
    RuHL (GitHub)

  • Recommend Me

  • twitter: stonean

    • @ubermuda that's good to know, thank you! 1 day ago
    • @chanmix51 cool, thanks! 1 day ago
    • In vi, :set list to show hidden characters, to revert, :set nolist Very handy. 1 day ago
    • Team just did their first PechaKucha [ http://vurl.me/EEP ] session. I love this format and am very impressed with results! 2 days ago
    • Just posted Lauren's new 'Curry Chicken Salad' recipe to http://lowsaltlauren.com . 4 days ago
  • Categories

    classy-inheritance Code Style DataMapper Fusion git Haml Interview Questions jQuery lockdown Merb MysqlUtils Process Quick Tips REST RSpec Ruby RubyOnRails rubytrends Stage thoughts Uncategorized


  • Archives

    • November 2009
    • May 2009
    • April 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • November 2008
    • October 2008
    • August 2008
    • July 2008
    • June 2008
    • May 2008
    • April 2008
    • March 2008
    • February 2008
    • January 2008
    • December 2007
    • November 2007

Blog at WordPress.com.

Theme: Mistylook by Sadish.