On 07/03/2013 11:35 PM, markspace wrote:
On 7/2/2013 8:09 AM, Dave wrote:
2. For now, use foo.dboland.<proj_name> as the URL. The disk
organization would then be (Linux):
home/user/javadev/src/foo/dboland/<proj_name>
home/user/javadev/class/foo/dboland/<proj_name>
The class path will be: home/user/javadev/class
And the package specification will be: foo.dboland.<proj_name>
I don't like "foo", too likely to collide with something. Use dboland
as the top name, I think that's much better.
I still don't like the split between src and class at the top level.
It's weird, and as others have pointed out you'll fight most tools
(IDEs, etc.) to do it this way. Easier is project_name/src and
project_name/build/classes.
Getting a domain name is the absolute least of your concerns.
This is the one thing (so far) that I really don't like about Java. The
Oracle assumes that developers are corporations with web sites. The
reality is that some are learning a new language, or developing software
for others, etc. So, the package name/path needs to reflect this
diversity. By the way, the idea for a source and a class path is
discussed by the Oracle at:
http://docs.oracle.com/javase/tutorial/java/package/managingfiles.html
I should also point out that I'm a tad old fashion (I guess) because I
use an editor and command line. I do plan to go to an IDE - once I'm
told which one everyone wants to use.
Ok, back to the subject. I want to obey the conventions, but not box
myself in or create future problems. So how about:
* domain (used for general Java development for now): dboland
* source: home/user/javadev/dboland/proj_name/src
* classes: home/user/javadev/dboland/proj_name/classes
// I don't get the need for build/classes.
* CLASSPATH: home/user/javadev/dboland
The domain should really not be a problem.
yourname.tld rather cheap.
for free many places and you could use that.