The Artima Developer Community
Sponsored Link

Agile Buzz Forum
How many Names can you Pack in a Space?

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
How many Names can you Pack in a Space? Posted: May 27, 2004 10:41 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: How many Names can you Pack in a Space?
Feed Title: Travis Griggs - Blog
Feed URL: http://www.cincomsmalltalk.com/rssBlog/travis-rss.xml
Feed Description: This TAG Line is Extra
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Travis Griggs - Blog

Advertisement
Do you do nested namespaces? If so, why?

Generally speaking, I can't see any reason to. Originally, when VW Namespaces roled out, there was this notion that everyone/company/institution would create a high level namespace. And then you could create your individual namespaces under them. There was a wiki page set up to register them. I did. Many other's have as well. I no longer use that namespace. And I'm not sure I see why others should either. How dare I challenge this scheme? Well, for one, I have a reputation to keep here.

The reason I no longer subscribe to this model is I found myself asking "What's the point?" One of the goals of doing namespaces was to reduce naming conflicts. It allows individuals from two separate companies to both implement a Server object, and then they can be coresident in the same image, because they're qualified by their separate environments. Implicit in this, is the desire/ability to "share" code amongst ourselves. The mechanism for doing that is the Packcel (pronounced Pak-səl; means Package and/or Parcel, soon to be one and the same in VW7.3). And here's the thing, the names of these Packcel's are in a namespace of their own. You can't load two packages of the same name. The namespace for Packcels is flat. Given that, what's the point of nesting namespaces? I'm not arguing that you have to have a namespace per package (though I think generally applied, leads to the best encapsulation and least down the road maintenance), I'm saying there's no point in having a namespace structure that is more complex than your packaging structure.

This is yesterday's blog. Hey, do you see the schwa (upside down dictionary e) up there? To bad VW couldn't show that to me

Read: How many Names can you Pack in a Space?

Topic: Colin Putney on typing Previous Topic   Next Topic Topic: Food for thought

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use