W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2010

Blob/File naming

From: Adrian Bateman <adrianba@microsoft.com>
Date: Tue, 31 Aug 2010 16:20:27 +0000
To: Jonas Sicking <jonas@sicking.cc>, "arun@mozilla.com" <arun@mozilla.com>
CC: Jian Li <jianli@chromium.org>, Eric Uhrhane <ericu@google.com>, "Dmitry Titov" <dimich@chromium.org>, Michael Nordman <michaeln@google.com>, "David Levin" <levin@google.com>, Darin Fisher <darin@chromium.org>, "Web Applications Working Group WG" <public-webapps@w3.org>
Message-ID: <104E6B5B6535E849970CDFBB1C5216EB343DA960@TK5EX14MBXC132.redmond.corp.microsoft.com>
On Monday, August 30, 2010 1:09 PM, Jonas Sicking wrote:
> On Mon, Aug 30, 2010 at 9:59 AM, Arun Ranganathan <arun@mozilla.com>
> wrote:
> > *sigh.  Naming continues to be hard.  Not everyone's thrilled with the
> > proliferation of Blob in the API [1] including other major implementors
> > (my co-editor included ;-))  but I changed it mainly due to Darin/Jian/other
> > objections.  I suppose you folks are pretty adamant on the Blob* name?
> 
> I feel pretty strongly that we should name this back to FileReader,
> for several reasons:
> 
> 1. Most people that I talk to dislike the name Blob, much less having
> it spread to things like BlobReader.
> 2. My understanding is that the writer counterpart is going to be
> called FileWriter (is this correct?)
> 3. While it's certainly possible to read Blobs with this, it seems to
> me like the far most common case will be to read a "real" file, or
> part of a file (i.e. the result from myfile.slice()).
> 4. There is one shipping implementation of FileReader

It's easy to bike shed on naming and I don't really want to get into that.
I'd prefer we just settled on something and stick to it. However I will
offer some observations from the conversations we've been having on this
topic.

I like the abstraction of Blob away from File with File being a concrete
implementation of the Blob interface. I suspect going back to just File
adds a bunch of unnecessary things to the cases where the data isn't file
backed. It seems there are a proliferation of specs that reference the Blob
concept. In fact the confusion in my conversations with people over the
name has been about a Blob here being more like a Stream than what they
traditionally think of as a BLOB (with a url property for example). We
think using Blobs with XHR and IndexedDB, say, will become at least as
common as their use for reading files from the file system.

Cheers,

Adrian.
Received on Tuesday, 31 August 2010 16:21:11 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:40 GMT