[Home]NameSpace

MeatballWiki | RecentChanges | Random Page | Indices | Categories

Within a namespace, you can refer to things by their name. To refer to things in another namespace, you have to qualify the name. This qualification can be explicit or implicit, however.

In real life, we usually don't think about namespaces, because most names clearly indicate what kind of things we are talking about. "yellow" is a color, "birch" is a tree. We don't have to qualify "yellow" as the name of a color, because we know it implicitly.

When programming, however, namespaces are more important: When talking of attributes, many different things can have the "id-number 45268". If all things exist in the same namespace, we assume that 45268 uniquely identifies something. If people, projects, and companies all exist in their own namespace, we have to qualifiy the id-number. Is it the id-number of a person, a project, a company?

In a software context it makes sense to make such namespaces distinguishable. One could use 4-digit-IDs for projects, 6-digit-IDs for companies and 6-digit-IDs for persons (depending on the application), or you could use prefixes (pr123, pe123 and co123) or a special kind of formatting (123456, 123-456 and 12-34-56). It's typically a good thing to be "context-free".

Although the term "NameSpace" is in common use within the software jargon, I think it is doubtful whether it is chosen well. The "space" part is badly founded, because typically space concepts like distance, direction or neighbourhood have no meaning. To me NameSpace means something where vectors exist which be combined to get to points in space. A wiki is to me a semantic namespace. Certain words have the quality of semantic orthogonal vectors. The word-vectors "Wiki" and "Community" and "Shallow" may be combined to get at the semantic points "WikiCommunity" or "ShallowWiki" that have some special, real meaning (at least for us). It makes sense to analyze the words that are used in building wiki page names. They tell us a lot. Wiki clones like MoinMoin or ProWiki support a word index (e. g. DseWiki:action=wordindex&count=5). -- HelmutLeitner


Discussion

MeatballWiki | RecentChanges | Random Page | Indices | Categories
This page is read-only | View other revisions | Search MetaWiki
Search: