W3C home > Mailing lists > Public > public-webapi@w3.org > May 2006

Re: XHR constructor example

From: Ian Hickson <ian@hixie.ch>
Date: Sun, 14 May 2006 12:05:57 +0000 (UTC)
To: Anne van Kesteren <annevk@opera.com>
Cc: Daniel Schierbeck <daniel.schierbeck@gmail.com>, "Web APIs WG (public)" <public-webapi@w3.org>
Message-ID: <Pine.LNX.4.62.0605141201040.21459@dhalsim.dreamhost.com>

On Sun, 14 May 2006, Anne van Kesteren wrote:
> >
> >   var request = new XMLHttpRequest();
> 
> Given that it doesn't have to be a request I think 'r' is saver or 
> perhaps just 'x'...

Please don't use single letter variable names for anything but loop index 
variables (in languages that require those), it's generally considerd 
quite bad practice.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Sunday, 14 May 2006 12:06:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:55 GMT