Hacker News new | ask | show | jobs
by jqcoffey 1119 days ago
> I don't have any particular answers to why string templating has been enduringly popular so far (although I can come up with theories, including that string templating is naturally reusable to other contexts, such as plain text)

My hunch is that it’s for the same reason folks love other plaintext formats: they’re readable and easily manipulated.

HTML has the added upside that it’s pretty straightforward for humans to write, which whether one likes it or not is why some folks would rather not learn some else’s DSL for generating it.

Btw, I suspect there’s a similar division in the write your own SQL vs ORM/linq world.