Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Dave Newsgroups: comp.lang.java.programmer Subject: Re: Package naming, disk organization Date: Thu, 04 Jul 2013 12:34:57 -0400 Organization: Aioe.org NNTP Server Lines: 45 Message-ID: <51D5A431.4060001@fastmail.fm> References: NNTP-Posting-Host: 6Hsfpp6SxKsmazVIhouhmw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:24620 On 07/03/2013 11:35 PM, markspace wrote: > On 7/2/2013 8:09 AM, Dave wrote: > >> 2. For now, use foo.dboland. as the URL. The disk >> organization would then be (Linux): >> home/user/javadev/src/foo/dboland/ >> home/user/javadev/class/foo/dboland/ >> The class path will be: home/user/javadev/class >> And the package specification will be: foo.dboland. > > 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