Rails Rumble Winners - Gem Teardown
dwellable.com
dwellable.com
On a side note, HAML is the best example of technology for technologies sake. It adds a small amount of value while adding the complexity of a new language. I've never felt the "juice was worth the squeeze" so to speak. Curious as to why it has the following that it does.
.a_class{ attrs } some text
which can save a lot when you would otherwise have to write: <div class="a_class" attr="value" another="val" dont="forget to escape"> some text </div>
The never-invalid markup is probably the bigger win, though. Primitive type checking for your HTML is arguably better than none. What I would really like is something similarly terse but faster - HAML can get pretty slow.I have used HAML on three projects and it always feels like it gets in the way more than it helps.
But that comes from rather extended use, I'm definitely not claiming it's the best. There are plenty of things I dislike about HAML, but it does mean I read less, and I spend quite a bit of time reading and writing view code.
Mind if I ask if you've done PHP programming? If you have, ERB's <% would seem to be a tax you've already paid.
@{
// code
}another example:
<div>@user.Name</div>
It feels very natural to write and is simple to read/pickup. Now that microsoft has open sourced it, someone should make a version in ruby. Might be a good side project for me actually :)
Slim is mentioned in the writeup. It's faster than Haml. I like it better.
<%= content_tag :div, "some text", class: 'foo', html: attrs %>
to keep it consistent with your haml exampleEdit: 9=>6 per the blog post
I'm glad I finally (mostly) have a grip on it all but boy did it take a while.
gem 'sass-rails'
gem 'coffee-rails'
gem 'jquery-rails'That said, that was before Resque and Sidekiq existed. I now use Sidekiq for my new project since I'd rather not reinvent the wheel. I suspect most people think the same way.