Maurício Linhares writes:
> What seems fishy to be is that you still have to learn minitest, using
> fixtures, ERB, rbenv or whatever, since no one was born a developer
> knowing them.
One possible difference, on the front end, is that ERB is a lot closer
to the syntax of the underlying HTML than HAML is. Which, in turn,
means that if you want to understand what you're seeing in Firebug (or
Chrome Developer Tools, or whatever) you have to understand a more
complicated translation. And likewise if you're trying to apply
information you got from, say, a book on HTML and CSS styling to the
templates in your app.
Now, you can see, say, ERB and HAML as alternate context syntaxes for
the same abstract syntax --- and if you understand things that way,
the translation is pretty trivial. And for an experienced developer,
the tradeoff is the extra conciseness you get from HAML vs. the
minimal effort to do the translation.
A beginner, on the other hand, has no idea what the underlying abstract
syntax is, and without that knowledge, the translation looks a lot more
like a disorganized set of arbitrary rules, which makes it a whole lot
harder to deal with.
Or at least, that would be my rationalization for not necessarily
starting beginners off on HAML and coffeescript, even if I'd use both
on a greenfield project of my own...
rst