Globalization API Feedback - moar!

Brendan Eich brendan at mozilla.com
Wed Nov 30 23:37:12 PST 2011


On Nov 30, 2011, at 10:25 PM, Anton Yatsenko wrote:

> In case I've missed point — sorry.

There are several points. How one gets the Globalization "module" is one, but the bigger points at issue involve API parameterization, overhead, and style issues.

/be


> 
> Anton.
> 
> On Dec 1, 2011, at 7:55 AM, Brendan Eich wrote:
> 
>> On Nov 30, 2011, at 9:52 PM, Luke Hoban wrote:
>> 
>>>> Speaking on behalf of real world web developers, the opposition to "Globalization" is that it's unnecessarily long. This is a long standing problem with APIs that are designed by people that don't have to use them everyday. 
>>> 
>>> Agreed - a shorter name would be better - but the alternative being discussed here is not a shorter name - it's this tradeoff:
>>> 
>>> "Globalization" vs. "Object.System.loaded['@globalization']"
>> 
>> As I just suggested in reply to Rick, I think micro-optimizing here for brevity is not the main thing. Most developers will want the Date.prototype, etc. extensions -- easy to use and better-localizable methods.
>> 
>> All the full-metal OOP APIs for amortizing collator construction costs, etc., will be used less frequently, even if by some big web app properties.
>> 
>> /be
>> 
>> 
>>> 
>>> That is, the alternative here is 3 times as long as the already 'unnecessarily long' option.  As Brendan noted, we still need to do the API design on the system module loader to try to streamline this - but the design space currently being explored won't lead to this being shorter than "Globalization", so the length argument by itself would seem to favor a single global name.
>>> 
>>> There was an earlier thread discussing alternatives to "Globalization", several of which are shorter and may be appropriate choices instead.
>>> 
>>> Luke
>>> 
>> 
>> _______________________________________________
>> es-discuss mailing list
>> es-discuss at mozilla.org
>> https://mail.mozilla.org/listinfo/es-discuss
> 



More information about the es-discuss mailing list