Re: [OAUTH-WG] Underscore, dash, green, blue
"William Mills" <wmills@yahoo-inc.com> Sat, 03 July 2010 00:48 UTC
Return-Path: <wmills@yahoo-inc.com>
X-Original-To: oauth@core3.amsl.com
Delivered-To: oauth@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 08FEE3A68C7 for <oauth@core3.amsl.com>; Fri, 2 Jul 2010 17:48:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.32
X-Spam-Level:
X-Spam-Status: No, score=-17.32 tagged_above=-999 required=5 tests=[AWL=0.278, BAYES_00=-2.599, HTML_MESSAGE=0.001, USER_IN_DEF_WHITELIST=-15]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EIILMeQQeJVg for <oauth@core3.amsl.com>; Fri, 2 Jul 2010 17:48:44 -0700 (PDT)
Received: from mrout1.yahoo.com (mrout1.yahoo.com [216.145.54.171]) by core3.amsl.com (Postfix) with ESMTP id 6848E3A68AF for <oauth@ietf.org>; Fri, 2 Jul 2010 17:48:44 -0700 (PDT)
Received: from SNV-EXPF01.ds.corp.yahoo.com (snv-expf01.ds.corp.yahoo.com [207.126.227.250]) by mrout1.yahoo.com (8.13.8/8.13.8/y.out) with ESMTP id o630kl36093726; Fri, 2 Jul 2010 17:46:47 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; s=serpent; d=yahoo-inc.com; c=nofws; q=dns; h=received:x-mimeole:content-class:mime-version: content-type:subject:date:message-id:in-reply-to:x-ms-has-attach: x-ms-tnef-correlator:thread-topic:thread-index:references:from:to:cc:return-path:x-originalarrivaltime; b=jJ5xkd/JANxhPJ6EEVZZLkdrhl/OoBS5h1N27V85Pedep9VEnEjIvlbE35CZdmpZ
Received: from SNV-EXVS08.ds.corp.yahoo.com ([207.126.227.8]) by SNV-EXPF01.ds.corp.yahoo.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 2 Jul 2010 17:46:47 -0700
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CB1A49.36F11C36"
Date: Fri, 02 Jul 2010 17:46:46 -0700
Message-ID: <012AB2B223CB3F4BB846962876F47217059B69FB@SNV-EXVS08.ds.corp.yahoo.com>
In-Reply-To: <AANLkTingIfvXZBcWJAL_vEHoe_G3biYzJ073VG0cWLwz@mail.gmail.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: [OAUTH-WG] Underscore, dash, green, blue
Thread-Index: AcsaNGx5G+AwSVAcRjKYLXgtx+M57wAFK4TQ
References: <90C41DD21FB7C64BB94121FBBC2E72343B3ED4C2E7@P3PW5EX1MB01.EX1.SECURESERVER.NET><AANLkTilj97ppfsqp6ZzxLJhURLhnmSx9P39-A97OuGAw@mail.gmail.com> <AANLkTikxdunsjF6u2dKyRZhK0DVKDV6VxF8ucg7L4PsU@mail.gmail.com> <0E0C7232-0C39-4D2A-9918-FCD68F27E789@photobucket.com><90C41DD21FB7C64BB94121FBBC2E72343B3ED4C3D7@P3PW5EX1MB01.EX1.SECURESERVER.NET><0B379746-ED5A-4402-A8E6-1CF7D72ECE53@facebook.com><90C41DD21FB7C64BB94121FBBC2E72343B3ED4C456@P3PW5EX1MB01.EX1.SECURESERVER.NET><AANLkTin9QErvcF04KFL0UgBKD7C8Sk-cMDbNdL4ALvlH@mail.gmail.com> <90C41DD21FB7C64BB94121FBBC2E72343B3ED4C476@P3PW5EX1MB01.EX1.SECURESERVER.NET> <AANLkTingIfvXZBcWJAL_vEHoe_G3biYzJ073VG0cWLwz@mail.gmail.com>
From: William Mills <wmills@yahoo-inc.com>
To: jsmarr@stanfordalumni.org, Eran Hammer-Lahav <eran@hueniverse.com>
X-OriginalArrivalTime: 03 Jul 2010 00:46:47.0515 (UTC) FILETIME=[376F0AB0:01CB1A49]
Cc: oauth@ietf.org
Subject: Re: [OAUTH-WG] Underscore, dash, green, blue
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: OAUTH WG <oauth.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/oauth>, <mailto:oauth-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/oauth>
List-Post: <mailto:oauth@ietf.org>
List-Help: <mailto:oauth-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/oauth>, <mailto:oauth-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 03 Jul 2010 00:48:47 -0000
+1 for _ I don't find HTTP header names having dashes confusing, because they all do. ________________________________ From: oauth-bounces@ietf.org [mailto:oauth-bounces@ietf.org] On Behalf Of Joseph Smarr Sent: Friday, July 02, 2010 3:16 PM To: Eran Hammer-Lahav Cc: OAuth WG (oauth@ietf.org) Subject: Re: [OAUTH-WG] Underscore, dash, green, blue Just remember that dashes are problematic for JavaScript, since oauth_token is a valid variable name, but oauth-token is not. So unless you're sure this will never be a problem, +1 to underscores everywhere. I know HTTP headers normally use dash, but if you want to use dashes for headers and underscores everywhere, you have the burden of proof that this won't cause too much confusion... Thanks, js On Thu, Jul 1, 2010 at 11:25 AM, Eran Hammer-Lahav <eran@hueniverse.com> wrote: The 1.0 install base is small enough to ignore. Looking at the interest and community around 2.0 makes such considerations marginal. There is no problem with underscores in headers, it is just unusual. EHL > -----Original Message----- > From: Marius Scurtescu [mailto:mscurtescu@google.com] > Sent: Thursday, July 01, 2010 11:19 AM > To: Eran Hammer-Lahav > Cc: Luke Shepard; OAuth WG (oauth@ietf.org) > Subject: Re: [OAUTH-WG] Underscore, dash, green, blue > > 3 - all underscores. > > If underscores are a big issue with headers then we should consider 1 > - all dashes. The problem with all dashes is that it is counterintuitive for > people that know OAuth 1. > > Marius > > > > On Thu, Jul 1, 2010 at 11:01 AM, Eran Hammer-Lahav > <eran@hueniverse.com> wrote: > > > > > >> -----Original Message----- > >> From: Luke Shepard [mailto:lshepard@facebook.com] > >> Sent: Thursday, July 01, 2010 10:58 AM > >> To: Eran Hammer-Lahav > >> Cc: Justin Hart; Pelle Braendgaard; OAuth WG (oauth@ietf.org) > >> Subject: Re: [OAUTH-WG] Underscore, dash, green, blue > >> > >> Don't really care, but to pick one - underscores throughout. > >> > >> Why not headers? > > > > Historically, HTTP headers use dashes and not underscores, but there is > nothing to prevent us from using underscores throughout. > > > > EHL > > > >> On Jul 1, 2010, at 9:23 AM, Eran Hammer-Lahav wrote: > >> > >> > That's wasn't an option for a reason. Beside offending my esthetic > >> sensibility :-) having the same parameter use a different name > >> between the header and endpoint makes registration of extension > >> parameters much harder. For example, if we used this scheme, the > >> 'error-uri' parameter would require two registration requests, one > >> for 'error-uri' and another for 'error_uri'. > >> > > >> > EHL > >> > > >> >> -----Original Message----- > >> >> From: oauth-bounces@ietf.org [mailto:oauth-bounces@ietf.org] On > >> >> Behalf Of Justin Hart > >> >> Sent: Thursday, July 01, 2010 7:10 AM > >> >> To: Pelle Braendgaard > >> >> Cc: OAuth WG (oauth@ietf.org) > >> >> Subject: Re: [OAUTH-WG] Underscore, dash, green, blue > >> >> > >> >> +1 for underscores except header keys. > >> >> ---- > >> >> -- Justin Hart > >> >> -- jhart@photobucket.com > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> On Jul 1, 2010, at 7:39 AM, Pelle Braendgaard wrote: > >> >> > >> >>> I already implemented 09 but it was a (very tiny) bit of a hassle > >> >>> to have to convert underscores. > >> >>> > >> >>> So I also agree with 3 except headers > >> >>> > >> >>> On Thu, Jul 1, 2010 at 2:41 AM, Lukas Rosenstock > >> >>> <lr@lukasrosenstock.net> > >> >> wrote: > >> >>>> 3 except headers. > >> >>>> > >> >>>> 2010/7/1 Eran Hammer-Lahav <eran@hueniverse.com>: > >> >>>>> First, sorry about this. J > >> >>>>> > >> >>>>> > >> >>>>> > >> >>>>> I do my best not to ask the group this kind of questions and > >> >>>>> just pick something on my own, but I can't decide so I'll run a > >> >>>>> quick vote (yes, a VOTE - I can't imagine seeking a consensus call on > this). > >> >>>>> > >> >>>>> > >> >>>>> > >> >>>>> -09 uses underscores for parameter names (except for in the > >> >>>>> headers) and dashes for parameter values. This seems like an > >> >>>>> odd > >> selection. > >> >>>>> Before, it used dashes for header parameter names, and > >> >>>>> underscore everywhere else. Not great either. > >> >>>>> > >> >>>>> > >> >>>>> > >> >>>>> So... > >> >>>>> > >> >>>>> > >> >>>>> > >> >>>>> The changes my OCD can live with: > >> >>>>> > >> >>>>> > >> >>>>> > >> >>>>> 1. Use dashes throughout > >> >>>>> > >> >>>>> 2. Use underscores for all parameter names (headers included), > >> >>>>> dashes for all values > >> >>>>> > >> >>>>> 3. Use underscores throughout > >> >>>>> > >> >>>>> > >> >>>>> > >> >>>>> I want to get this done with in a day because people are > >> >>>>> writing code for > >> >>>>> -09 and I'd like to stop making changes beyond editorial. I > >> >>>>> just think that having different styles between the endpoint > >> >>>>> parameters and header parameters is broken. > >> >>>>> > >> >>>>> > >> >>>>> > >> >>>>> EHL > >> >>>>> > >> >>>>> _______________________________________________ > >> >>>>> OAuth mailing list > >> >>>>> OAuth@ietf.org > >> >>>>> https://www.ietf.org/mailman/listinfo/oauth > >> >>>>> > >> >>>>> > >> >>>> > >> >>>> > >> >>>> > >> >>>> -- > >> >>>> http://lukasrosenstock.net/ > >> >>>> _______________________________________________ > >> >>>> OAuth mailing list > >> >>>> OAuth@ietf.org > >> >>>> https://www.ietf.org/mailman/listinfo/oauth > >> >>>> > >> >>> > >> >>> > >> >>> > >> >>> -- > >> >>> http://agree2.com - Reach Agreement! > >> >>> http://stakeventures.com - My blog about startups and agile > >> >>> banking > _______________________________________________ > >> >>> OAuth mailing list > >> >>> OAuth@ietf.org > >> >>> https://www.ietf.org/mailman/listinfo/oauth > >> >> > >> >> _______________________________________________ > >> >> OAuth mailing list > >> >> OAuth@ietf.org > >> >> https://www.ietf.org/mailman/listinfo/oauth > >> > _______________________________________________ > >> > OAuth mailing list > >> > OAuth@ietf.org > >> > https://www.ietf.org/mailman/listinfo/oauth > > > > _______________________________________________ > > OAuth mailing list > > OAuth@ietf.org > > https://www.ietf.org/mailman/listinfo/oauth > > _______________________________________________ OAuth mailing list OAuth@ietf.org https://www.ietf.org/mailman/listinfo/oauth
- [OAUTH-WG] Underscore, dash, green, blue Eran Hammer-Lahav
- Re: [OAUTH-WG] Underscore, dash, green, blue Michael D Adams
- Re: [OAUTH-WG] Underscore, dash, green, blue Lukas Rosenstock
- Re: [OAUTH-WG] Underscore, dash, green, blue Pelle Braendgaard
- Re: [OAUTH-WG] Underscore, dash, green, blue Justin Hart
- Re: [OAUTH-WG] Underscore, dash, green, blue Eran Hammer-Lahav
- Re: [OAUTH-WG] Underscore, dash, green, blue Eran Hammer-Lahav
- Re: [OAUTH-WG] Underscore, dash, green, blue Luke Shepard
- Re: [OAUTH-WG] Underscore, dash, green, blue Marius Scurtescu
- Re: [OAUTH-WG] Underscore, dash, green, blue Eran Hammer-Lahav
- Re: [OAUTH-WG] Underscore, dash, green, blue Joseph Smarr
- Re: [OAUTH-WG] Underscore, dash, green, blue William Mills