Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #24620

Re: Package naming, disk organization

From Dave <dboland9@fastmail.fm>
Newsgroups comp.lang.java.programmer
Subject Re: Package naming, disk organization
Date 2013-07-04 12:34 -0400
Organization Aioe.org NNTP Server
Message-ID <51D5A431.4060001@fastmail.fm> (permalink)
References <kqssv3$dfm$1@speranza.aioe.org> <kquqfj$38p$1@speranza.aioe.org> <kr2q7l$fdd$1@dont-email.me>

Show all headers | View raw


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

Comments?

Dave

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Package naming, disk organization Dave <dboland9@fastmail.fm> - 2013-07-01 17:39 -0400
  Re: Package naming, disk organization markspace <markspace@nospam.nospam> - 2013-07-01 15:22 -0700
    Re: Package naming, disk organization Martin Gregorie <martin@address-in-sig.invalid> - 2013-07-01 23:56 +0000
  Re: Package naming, disk organization Roedy Green <see_website@mindprod.com.invalid> - 2013-07-01 15:35 -0700
  Re: Package naming, disk organization Roedy Green <see_website@mindprod.com.invalid> - 2013-07-01 15:36 -0700
  Re: Package naming, disk organization Lew <lewbloch@gmail.com> - 2013-07-01 17:22 -0700
    Re: Package naming, disk organization Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2013-07-02 18:51 +0300
    Re: Package naming, disk organization Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-07-18 23:50 -0300
  Re: Package naming, disk organization Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-07-01 21:30 -0400
    Re: Package naming, disk organization markspace <markspace@nospam.nospam> - 2013-07-01 18:43 -0700
  Re: Package naming, disk organization Dave <dboland9@fastmail.fm> - 2013-07-02 11:09 -0400
    Re: Package naming, disk organization Arne Vajhøj <arne@vajhoej.dk> - 2013-07-03 22:53 -0400
    Re: Package naming, disk organization markspace <markspace@nospam.nospam> - 2013-07-03 20:35 -0700
      Re: Package naming, disk organization Dave <dboland9@fastmail.fm> - 2013-07-04 12:34 -0400
        Re: Package naming, disk organization Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2013-07-04 20:08 +0300
        Re: Package naming, disk organization lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-07-04 18:24 +0100
        Re: Package naming, disk organization Lew <lewbloch@gmail.com> - 2013-07-04 11:26 -0700
        Re: Package naming, disk organization Arne Vajhøj <arne@vajhoej.dk> - 2013-07-04 15:42 -0400
        Re: Package naming, disk organization Martin Gregorie <martin@address-in-sig.invalid> - 2013-07-04 20:40 +0000
          Re: Package naming, disk organization Lew <lewbloch@gmail.com> - 2013-07-04 14:01 -0700
          Re: Package naming, disk organization Arne Vajhøj <arne@vajhoej.dk> - 2013-07-04 17:06 -0400
    Re: Package naming, disk organization Arne Vajhøj <arne@vajhoej.dk> - 2013-07-04 15:39 -0400

csiph-web