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

Post on 15-Jan-2015

38,944 views 1 download

Tags:

description

Audio required to make sense

transcript

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

Myspacehas 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