Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Root5205266dErb is friendly and easy. I've never had a problem with it. It does what it's supposed to, does it well, and doesn't do anything extra.
I didn't like HAML much, but it's been so long I can't remember why. I hate significant whitespace, so that's probably most of it. It is, however, much more ruby-like, which gives it some definite points.
There are other choices too, like slim, but I think most of the rest have died. (Like Shoes 😅). Slim is the other big alternative, and is ostensibly faster than erb/haml. Though I found myself hating it for several reasons, notably needing a filthy hack to inject rails data into JS. I don't remember all of the reasons, but I'd ranted about Slim many times while working with it. But maybe it's less terrible now? It has been several years, so it's worth checking out if you're strongly considering haml.
bioDan532866dI prefer haml over erb. Minimizes the size of the file which makes it much more readable and its also easier to write.
Your Job Suck?
Take a quick quiz from Triplebyte to skip the job search hassles and jump to final interviews at hot tech firms
Get a Better Job