Re: Please don't shout or throw things at this respec newbie

On Monday, June 3, 2013 at 7:44 PM, Henry S. Thompson wrote:
> It does intrigue me to try to understand _why_ PHP-style coding is so
> attractive that we do it even when good structure-based alternatives
> are right there in the API, especially given that string bashing to
> build structure is
> a) fragile;
> b) hard to read;
> c) hard to debug;
> and I presume
> d) less efficient.

Historically, innerHTML has been much faster than structured alternatives, this has only started changed recently. Also, having terrible APIs like the DOM does unfortunately make string concatenation a more readable choice more often than not. 

--tobie

Received on Monday, 3 June 2013 18:30:13 UTC