The PEAK Developers' Center   NamingSystem UserPreferences
 
HelpContents Search Diffs Info Edit Subscribe XML Print View
Version as of 2002-12-13 14:01:22

Clear message


1 Names, Contexts, Addresses, and Naming Services

What's a naming system, and why do you want want for your programs? Naming systems let us use names instead of addresses to refer to the objects we use. Whether the objects in question are database connections, printers, documents, or distributed object services, replacing addresses with names makes programs clearer, more flexible, and easier to maintain.

1.1 Names vs. Addresses

What's the difference between a name and an address, and why is it important? A name tells us what something is, or is for, while an address tells us how to get to it. This is significant because "how to get to" something can change far more quickly than what it "is".

Let's say we are in a grocery store. I could either say, "go to the back of the store, aisle 4, top shelf, right-hand side, fifth can," or I could simply say, "I'd like a can of spam please." Obviously, if the store is later reorganized, my "address" for spam may have to be changed, but as long as it's still called spam, I can always ask a clerk or look at a store directory.

Of course, this means that I must go through an intermediary to obtain my spam, rather than going directly to it, but that is the price I pay for the flexibility.

Notice this also means that names are context-sensitive. That is, the interpretation of a name can vary according to the context. Asking my grocer or my e-mail client for "spam" will produce very different results. But an address is context-independent, and will always refer to the same location, although what is in that location might change over time.


NamesAddresses
What an object is or doesHow to find it
Long-lastingTransient, may change for a given object
Must be resolved via a naming serviceAllows direct access
Context-sensitiveContext-independent

1.2 Naming Services and Contexts

XXX blah blah ...

1.3 Naming Authorities

XXX etc...


PythonPowered
EditText of this page (last modified 2002-12-13 14:01:22)
FindPage by browsing, title search , text search or an index
Or try one of these actions: AttachFile, DeletePage, LikePages, LocalSiteMap, SpellCheck