W3C home > Mailing lists > Public > public-media-annotation@w3.org > November 2009

Re: [mawg] Re: ACTION-177: API at client/server side (was: Call for Test Cases)

From: Silvia Pfeiffer <silviapfeiffer1@gmail.com>
Date: Wed, 11 Nov 2009 23:57:43 +1100
Message-ID: <2c0e02830911110457t632fc3d2wc1035f67c785c540@mail.gmail.com>
To: Pierre-Antoine <pierre-antoine.champin@liris.cnrs.fr>
Cc: "public-media-annotation@w3.org" <public-media-annotation@w3.org>
On Tue, Nov 10, 2009 at 7:36 AM, Pierre-Antoine
<pierre-antoine.champin@liris.cnrs.fr> wrote:
> Le 08/11/2009 03:43, Silvia Pfeiffer a écrit :
>> BTW: re javascript API: It should be a small number of functions, not
>> one per property ("getTitle" seemed to indicate to me that there was a
>> particular API function for it). If it turns out you need more than
>> one, that's fine. Just not one per property (which, incidentally, is
>> also more extensible).
> except for the point of extensibility, which I understand, could you
> elaborate on the rationale for "Just not one per property"?
> Although there has to be a generic function for the sake of
> extensibility, I think the general feeling of the group was that it is
> more convenient for a developer to write
>  getTitle(...)
> than
>  getProperty("title", ...)

If you make a convenience function *in addition* to all the functions
to access individual properties, you end up with more than one
function that has to be implemented, e.g. in every single Web browser.
That would be something that would be unacceptable to HTML. Also, it
would stop being extensible.

Received on Wednesday, 11 November 2009 12:58:36 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:24:37 UTC