Your SlideShare is downloading. ×
0
Why HAML sucks
or
Why you should think
 before using HAML
for your next project
Why people like
    HAML
A shorter, elegant
way to write markup
You get to use sexy
 Ruby rather than
  smelly HTML
It feels goooood
It’s basically
masturbation
That means playing alone
The bad
You need to understand
 indenting subtleties
(not very rubyish)
Front end developers have
  something in between
   them and their craft
Lets face it
Most developers
write shitty HTML
Take Rails for
inspiration if you don’t
      believe me
Inline javascript
Meaningless markup
Incorrect element usage
Poor accessibility
All are common traits
 of HTML, not HAML
HAML adds a layer to
 HTML that I don’t
 think is necessary
It's not fucking ruby
    either, dudes.
Comparison
I can’t be bothered
   getting a .net
      example
I get it
Its succinct
Its easy to read
(it just takes a second at first)
but
Oh yeah? You do web stuff?
My nephew made my
website. He’s just like you
- The real world
Myspace
has terrible HTML (but people work it out)
& ass loads of
blogging software
So, I guess in
 summary:
If you’re good at
HTML and want to
     write less
If you and your coworkers
 are the only people who
   will ever look at your
          markup
If you’re cool with
training up the new guy
Try HAML
Otherwise:
 Use and learn more
about web standards
Don’t publish projects or
   code with higher
boundaries than need be
Thanks
Why HAML sucks or Why you should think before choosing HAML for your next project
Why HAML sucks or Why you should think before choosing HAML for your next project
Why HAML sucks or Why you should think before choosing HAML for your next project
Why HAML sucks or Why you should think before choosing HAML for your next project
Why HAML sucks or Why you should think before choosing HAML for your next project
Why HAML sucks or Why you should think before choosing HAML for your next project
Why HAML sucks or Why you should think before choosing HAML for your next project
Why HAML sucks or Why you should think before choosing HAML for your next project
Upcoming SlideShare
Loading in...5
×

Why HAML sucks or Why you should think before choosing HAML for your next project

41,368

Published on

Audio required to make sense

Published in: Technology, Education
16 Comments
15 Likes
Statistics
Notes
  • “Dont’ publish projects or code with higher boundaries than need to be”, that’s gold!
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • HAML is not bad, but it certainly is unnecesary.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • I don't get it. What's the big deal about who sees your HAML. It compiles into HTML before it's interpreted by the browser. If the person who will be maintaining code doesn't get or bother to learn HAML, would they not just author the HTML from that point? I feel like it's a great tool for developers to shave some to large chunks of time off writing repetitive markup. Also, 'learn more about web standards'? What I like about HAML is it doesn't try and fix things for you like nonexistent tag names, attributes, etc. You're allowed to make mistakes and you can insert HTML if you don't like the way HAML does something or are unsure about what syntax for something is. I always like a fresh perspective, but the arguments here just weren't strong enough for me.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • The only argument that people seem to have going for them as far as NOT using HAML is that it scares off front-end developers. But the truth is they never have to go anywhere near Ruby, get them to write all the JavaScript and HTML their little hearts desire and then run it through http://html2haml.heroku.com/ - DONE. (assuming of course a Ruby developer has to maintain the markup in the long-run).
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Avoid using a wonderful templating engine because some developers are too lazy or afraid to learn it? No thanks.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total Views
41,368
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
51
Comments
16
Likes
15
Embeds 0
No embeds

No notes for slide

Transcript of "Why HAML sucks or Why you should think before choosing HAML for your next project"

  1. 1. Why HAML sucks
  2. 2. or
  3. 3. Why you should think before using HAML for your next project
  4. 4. Why people like HAML
  5. 5. A shorter, elegant way to write markup
  6. 6. You get to use sexy Ruby rather than smelly HTML
  7. 7. It feels goooood
  8. 8. It’s basically masturbation
  9. 9. That means playing alone
  10. 10. The bad
  11. 11. You need to understand indenting subtleties
  12. 12. (not very rubyish)
  13. 13. Front end developers have something in between them and their craft
  14. 14. Lets face it
  15. 15. Most developers write shitty HTML
  16. 16. Take Rails for inspiration if you don’t believe me
  17. 17. Inline javascript
  18. 18. Meaningless markup
  19. 19. Incorrect element usage
  20. 20. Poor accessibility
  21. 21. All are common traits of HTML, not HAML
  22. 22. HAML adds a layer to HTML that I don’t think is necessary
  23. 23. It's not fucking ruby either, dudes.
  24. 24. Comparison
  25. 25. I can’t be bothered getting a .net example
  26. 26. I get it
  27. 27. Its succinct
  28. 28. Its easy to read (it just takes a second at first)
  29. 29. but
  30. 30. Oh yeah? You do web stuff? My nephew made my website. He’s just like you - The real world
  31. 31. Myspace has terrible HTML (but people work it out)
  32. 32. & ass loads of blogging software
  33. 33. So, I guess in summary:
  34. 34. If you’re good at HTML and want to write less
  35. 35. If you and your coworkers are the only people who will ever look at your markup
  36. 36. If you’re cool with training up the new guy
  37. 37. Try HAML
  38. 38. Otherwise: Use and learn more about web standards
  39. 39. Don’t publish projects or code with higher boundaries than need be
  40. 40. Thanks
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×