The Artima Developer Community
Sponsored Link

Java Buzz Forum
Package Naming: To use "com." or not

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
dion

Posts: 5028
Nickname: dion
Registered: Feb, 2003

Dion Almaer is the Editor-in-Chief for TheServerSide.com, and is an enterprise Java evangelist
Package Naming: To use "com." or not Posted: May 25, 2005 8:34 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by dion.
Original Post: Package Naming: To use "com." or not
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
Latest Java Buzz Posts
Latest Java Buzz Posts by dion
Latest Posts From techno.blog(Dion)

Advertisement

We were taught to avoid conflicts by using a package name such as com.adigio.subproject.package. This is much better than just using a project name such as "web." for sure.

However, I keep running into packages such as com.mything.* where mything isn't a domain at all that the owner owns.

So now, we have moved the namespace clash down a notch.

Do we need the com package anymore? Would adigio.* really be so much worse?

A large part of me thinks not, and as long as we are not stupid and do not pick generic top level packages, we would be fine. This seems to work OK in the other language camps :)

In fact, in some ways, I always liked the fact that: Net::FTP and Net::HTTP could actually be written by different parties.... and that is managed in a different way.

Do you like the com package? (or .net, or .countrycode, etc).

Think about how much package renaming we wouldn't have to go through in open source (net.sf.* -> org.myproject.*). For example, if Hibernate was just hibernate.* to begin with.

Read: Package Naming: To use "com." or not

Topic: SWT is good, JFace is great, RCP looks flippin awesome! Previous Topic   Next Topic Topic: Google Has A Java Desktop App

Sponsored Links



Google
  Web Artima.com   

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