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

Re: Selectors API naming

From: Jim Ley <jim@jibbering.com>
Date: Wed, 20 Dec 2006 18:48:58 -0000
Message-ID: <003101c72467$822bf9e0$0302a8c0@Sniff>
To: "Robert Sayre" <sayrer@gmail.com>
Cc: "Chris Wilson" <Chris.Wilson@microsoft.com>, "Ian Hickson" <ian@hixie.ch>, "Dave Massy" <dave.massy@microsoft.com>, "Anne van Kesteren" <annevk@opera.com>, "Web API WG \(public\)" <public-webapi@w3.org>

"Robert Sayre" <sayrer@gmail.com>
> On 12/20/06, Jim Ley <jim@jibbering.com> wrote:
>> Not that I'm overly energised with naming, but...
> ...
>> I agree with this view entirely.  getSomething is a pattern worth keeping
>> for developer sanity.
> JS programmers use short names for these things. Like $() instead of
> getElementById.

No, one group of JS programmers do that, it is not representative of the 
entire industry at all, not one of the numerous multi-tens of thousand line 
JS projects I've been involved with have done the above, and developer 
strategies that believe 1 character method names is clear are not going to 
care one jot what the original name in the DOM is.

Received on Wednesday, 20 December 2006 18:50:08 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:22 UTC