- From: Henry S. Thompson <ht@inf.ed.ac.uk>
- Date: Mon, 03 Jun 2013 19:32:50 +0100
- To: Marcos Caceres <w3c@marcosc.com>
- Cc: Robin Berjon <robin@w3.org>, spec-prod@frink.w3.org
Marcos Caceres writes: > On Monday, June 3, 2013 at 6: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. > > > I'm intrigued by what you mean by PHP-style coding? Do you mean using document.write and/or .innerHTML? Yes, exactly -- building up complex strings piece by piece (and almost always getting it wrong the first N times). ht -- Henry S. Thompson, School of Informatics, University of Edinburgh 10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440 Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk URL: http://www.ltg.ed.ac.uk/~ht/ [mail from me _always_ has a .sig like this -- mail without it is forged spam]
Received on Monday, 3 June 2013 18:34:14 UTC