[Lumiera] Interface namespaces, Braindump, ask for enhancement
Nicholas S-A
novanasa at gmail.com
Wed Sep 17 21:10:38 CEST 2008
* Christian Thaeter <ct at pipapo.org> [2008-09-17 19:05:36 +0200]:
>The entity can be either some group or some individual. I case of a
>group we assume they have some domain name, just strip out all special
>chars and use that in lowercase 'lumieraorg' 'cinlerraorg' etc.
>For individuals they shall just use their email address with the @ sign
>encoded as uppercase A 'ctApipapoorg' 'fooAgmailcom'.
I suggest that instead we use the convention of reverse namespace
identification (from Java): use org_lumiera, or com_gmail, or whatever.
In addition, to avoid conflict (since one of my email addresses has a
capital 'A' in it ;)), it should translate either "_A_" or "__A__" to
the at sign. That should reduce the chance of conflict. Perhaps having
the option of a GPG key ID instead of email address. Thus my address
could be:
1) com_gmail__A__novanasa_...
2) gpg_A0F31067_...
Frankly, I would prefer (2). That way if someone uses multiple addresses
it doesn't cause problems. The problem with (1) is that it gives the
impression that I work for gmail! So maybe individuals should be
novanasa__A__gmail_com_...
Maybe we could use org_lumiera_ if it is an organization, and
gpg_A0F31067 if it is an individual.
>I think this scheme is sufficently unique and yields small readable
>identifiers. Alternatively we can transpose all special chars to some
>uppercase letter like the following example (that is completely
>unabigous, but it is rather ugly)
>$ tr '_. at -' 'UDAH'
>ct at pi-pa-po.org
>ctApiHpaHpoDorg
The advantage of GPG is that it doesn't look ugly...
>I thought about other schemes, encoding uuids as base36 C identifiers
>and so on. So far the above looks good for me but I am interested if
>anyone can add something to this.
Thoughts?
nick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://lists.lumiera.org/pipermail/lumiera/attachments/20080917/cc7883bc/attachment.pgp
More information about the Lumiera
mailing list