Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > comp.lang.java.programmer > #3628
| From | Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Death To Sub-Sub-Sub-Directories! |
| Followup-To | comp.lang.java.programmer |
| Date | 2011-05-06 11:56 +1200 |
| Organization | Geek Central |
| Message-ID | <ipvdfs$6on$1@lust.ihug.co.nz> (permalink) |
| References | <ipt25q$qtk$1@lust.ihug.co.nz> <34va98-dgm.ln1@dagon.net> |
Followups directed to: comp.lang.java.programmer
In message <34va98-dgm.ln1@dagon.net>, Dagon wrote: > Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> wrote: > >>Google’s tool for creating an Android project insists on creating a >>subdirectory hierarchy corresponding to the package naming hierarchy. > > So does everyone else's java tools, including eclipse, netbeans, javac. > And by "insist", you mean "does this by default" - it's optional but > highly recommended. It’s a pain in the bum. >>Thus, if you name your class com.example.test_project.Main, it will put >>Main.java inside the subdirectory src/com/example/test_project/. > > Right. That's sensible for any non-tiny codebase. I just looked at a “non-tiny codebase”, not written in Java—the Linux kernel. I counted up about 13 million lines of C code, and it goes no more than 3 subdirectories deep. There is no hierarchical division along anything resembling namespace lines. And this is widely regarded as one of the most productive and high-quality software projects in the world. I conclude from that that imposing a directory hierarchy along namespace lines is not actually helpful for “non-tiny codebases”. Furthermore, for your typical, more modest-sized mobile-phone app, it’s going to be downright counterproductive. >>But it turns out no part of the build process depends on this: you can put >>all source files at the top level of your “src” subdirectory, and the >>project still builds just fine. > > Yup. You'll hate yourself when you try to manage a nontrivial project > that's set up wrong, but it's allowed by almost all java tools. I have no plans to use Java for anything other than Android development.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
Death To Sub-Sub-Sub-Directories! Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-05-05 02:31 +0000
Re: Death To Sub-Sub-Sub-Directories! Lew <noone@lewscanon.com> - 2011-05-04 22:36 -0400
Re: Death To Sub-Sub-Sub-Directories! markspace <-@.> - 2011-05-04 19:35 -0700
Re: Death To Sub-Sub-Sub-Directories! Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-05-05 14:47 +1200
Re: Death To Sub-Sub-Sub-Directories! Esmond Pitt <esmond.pitt@bigpond.com> - 2011-05-05 16:01 +1000
Re: Death To Sub-Sub-Sub-Directories! Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-05-05 18:43 +1200
Re: Death To Sub-Sub-Sub-Directories! Lew <noone@lewscanon.com> - 2011-05-05 07:08 -0400
Re: Death To Sub-Sub-Sub-Directories! Esmond Pitt <esmond.pitt@bigpond.com> - 2011-05-06 11:38 +1000
Re: Death To Sub-Sub-Sub-Directories! Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-05-06 15:53 +1200
Re: Death To Sub-Sub-Sub-Directories! Lew <noone@lewscanon.com> - 2011-05-06 00:09 -0400
Re: Death To Sub-Sub-Sub-Directories! Esmond Pitt <esmond.pitt@bigpond.com> - 2011-05-06 18:22 +1000
Re: Death To Sub-Sub-Sub-Directories! Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-05-06 22:07 +1200
Re: Death To Sub-Sub-Sub-Directories! Lew <noone@lewscanon.com> - 2011-05-06 06:58 -0400
Re: Death To Sub-Sub-Sub-Directories! "javax.swing.JSnarker" <gharriman@boojum.mit.edu> - 2011-05-06 07:12 -0400
Re: Death To Sub-Sub-Sub-Directories! jebblue <n@n.nnn> - 2011-05-06 21:58 -0500
Re: Death To Sub-Sub-Sub-Directories! "javax.swing.JSnarker" <gharriman@boojum.mit.edu> - 2011-05-07 03:18 -0400
Re: Death To Sub-Sub-Sub-Directories! Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-05-07 20:28 +1200
Re: Death To Sub-Sub-Sub-Directories! Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-05-07 19:53 +0000
Re: Death To Sub-Sub-Sub-Directories! Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-05-08 14:00 +1200
Re: Death To Sub-Sub-Sub-Directories! Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-05-08 07:50 +0000
Re: Death To Sub-Sub-Sub-Directories! Paul Cager <paul.cager@googlemail.com> - 2011-05-06 06:34 -0700
Re: Death To Sub-Sub-Sub-Directories! Lew <noone@lewscanon.com> - 2011-05-06 12:06 -0400
Re: Death To Sub-Sub-Sub-Directories! 3x+rav4gan <3x7r4vag4n@fr0gs0up.x3l0n.c0m> - 2011-05-06 17:07 -0400
Re: Death To Sub-Sub-Sub-Directories! Lew <noone@lewscanon.com> - 2011-05-06 18:24 -0400
Re: Death To Sub-Sub-Sub-Directories! 3x+rav4gan <3x7r4vag4n@fr0gs0up.x3l0n.c0m> - 2011-05-06 18:25 -0400
Re: Death To Sub-Sub-Sub-Directories! Lew <noone@lewscanon.com> - 2011-05-06 18:34 -0400
Re: Death To Sub-Sub-Sub-Directories! 3x7r4vagan <3x7r4vagan@fr0gsoup.x3l0n.c0m> - 2011-05-06 18:40 -0400
Re: Death To Sub-Sub-Sub-Directories! "Spock" <spock@starfleet.ufp.null> - 2011-05-08 01:42 +0000
Re: Death To Sub-Sub-Sub-Directories! 3x7r4vagan <3x7r4vagan@fr0gsoup.x3l0n.c0m> - 2011-05-07 22:29 -0400
Re: Death To Sub-Sub-Sub-Directories! "javax.swing.JSnarker" <gharriman@boojum.mit.edu> - 2011-05-08 05:20 +0000
Re: Death To Sub-Sub-Sub-Directories! "javax.swing.JSnarker" <gharriman@boojum.mit.edu> - 2011-05-08 01:40 -0400
Re: Death To Sub-Sub-Sub-Directories! "3x7r4vagan" <3x7r4vagan@fr0gsoup.x3l0n.c0m> - 2011-05-08 06:39 +0000
Re: Death To Sub-Sub-Sub-Directories! 3x7r4vagan <3x7r4vagan@fr0gsoup.x3l0n.c0m> - 2011-05-08 05:45 -0400
Re: Death To Sub-Sub-Sub-Directories! jebblue <n@n.nnn> - 2011-05-06 21:57 -0500
Re: Death To Sub-Sub-Sub-Directories! Esmond Pitt <esmond.pitt@bigpond.com> - 2011-05-06 18:31 +1000
Re: Death To Sub-Sub-Sub-Directories! Roedy Green <see_website@mindprod.com.invalid> - 2011-05-04 22:02 -0700
Re: Death To Sub-Sub-Sub-Directories! Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-05-05 17:12 +1200
Re: Death To Sub-Sub-Sub-Directories! Lew <noone@lewscanon.com> - 2011-05-05 07:11 -0400
Re: Death To Sub-Sub-Sub-Directories! Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-05-05 10:56 -0300
Re: Death To Sub-Sub-Sub-Directories! Steve Sobol <sjsobol@JustThe.net> - 2011-05-05 09:08 -0700
Re: Death To Sub-Sub-Sub-Directories! bugbear <bugbear@trim_papermule.co.uk_trim> - 2011-05-05 17:13 +0100
Re: Death To Sub-Sub-Sub-Directories! dagon@dagon.net (Dagon) - 2011-05-05 09:16 -0700
Re: Death To Sub-Sub-Sub-Directories! Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-05-06 11:56 +1200
Re: Death To Sub-Sub-Sub-Directories! Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2011-05-06 02:35 +0200
Re: Death To Sub-Sub-Sub-Directories! Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-05-06 18:39 +1200
Re: Death To Sub-Sub-Sub-Directories! Lew <noone@lewscanon.com> - 2011-05-06 07:03 -0400
Re: Death To Sub-Sub-Sub-Directories! "javax.swing.JSnarker" <gharriman@boojum.mit.edu> - 2011-05-06 07:13 -0400
Re: Death To Sub-Sub-Sub-Directories! Zapotec <z_gib@wav.com> - 2011-05-06 05:57 -0400
Re: Death To Sub-Sub-Sub-Directories! Paul Cager <paul.cager@googlemail.com> - 2011-05-06 06:47 -0700
Re: Death To Sub-Sub-Sub-Directories! Lew <noone@lewscanon.com> - 2011-05-06 12:17 -0400
Re: Death To Sub-Sub-Sub-Directories! Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-05-07 15:55 +1200
Re: Death To Sub-Sub-Sub-Directories! Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2011-05-06 18:19 +0200
Re: Death To Sub-Sub-Sub-Directories! Zapotec <z_gib@wav.com> - 2011-05-06 17:10 -0400
Re: Death To Sub-Sub-Sub-Directories! Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2011-05-06 23:41 +0200
Re: Death To Sub-Sub-Sub-Directories! Zapotec <z_gib@wav.com> - 2011-05-06 18:26 -0400
Re: Death To Sub-Sub-Sub-Directories! Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-05-07 15:56 +1200
Re: Death To Sub-Sub-Sub-Directories! Zapotec <z_gib@wav.com> - 2011-05-07 03:20 -0400
Re: Death To Sub-Sub-Sub-Directories! Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-05-07 20:28 +1200
Re: Death To Sub-Sub-Sub-Directories! Lew <noone@lewscanon.com> - 2011-05-07 07:50 -0400
Re: Death To Sub-Sub-Sub-Directories! Michael Wojcik <mwojcik@newsguy.com> - 2011-05-09 13:15 -0400
Re: Death To Sub-Sub-Sub-Directories! Zapotec <z_gib@wav.com> - 2011-05-09 18:09 -0400
Re: Death To Sub-Sub-Sub-Directories! Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-05-10 13:43 +1200
Re: Death To Sub-Sub-Sub-Directories! Michael Wojcik <mwojcik@newsguy.com> - 2011-05-10 11:54 -0400
Re: Death To Sub-Sub-Sub-Directories! Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-05-11 14:02 +1200
Re: Death To Sub-Sub-Sub-Directories! Michael Wojcik <mwojcik@newsguy.com> - 2011-05-10 11:48 -0400
Re: Death To Sub-Sub-Sub-Directories! Zapotec <z_gib@wav.com> - 2011-05-10 23:47 -0400
Re: Death To Sub-Sub-Sub-Directories! Lew <noone@lewscanon.com> - 2011-05-11 08:51 -0400
Re: Death To Sub-Sub-Sub-Directories! Zapotec <z_gib@wav.com> - 2011-05-11 20:44 -0400
Re: Death To Sub-Sub-Sub-Directories! RichB <rich_barnsley@nowhere.com> - 2011-05-12 16:13 -0400
Re: Death To Sub-Sub-Sub-Directories! Snorkmeier <snorkmeier._10b@gmail.invalid> - 2011-05-12 08:21 +0000
Re: Death To Sub-Sub-Sub-Directories! Lew <noone@lewscanon.com> - 2011-05-12 08:21 -0400
Re: Death To Sub-Sub-Sub-Directories! Snorkmeier <snorkmeier._10c@gmail.invalid> - 2011-05-12 20:04 +0000
Re: Death To Sub-Sub-Sub-Directories! Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-05-10 13:46 +1200
Re: Death To Sub-Sub-Sub-Directories! Zapotec <z_gib@wav.com> - 2011-05-10 03:44 -0400
Re: Death To Sub-Sub-Sub-Directories! Michael Wojcik <mwojcik@newsguy.com> - 2011-05-10 11:55 -0400
Re: Death To Sub-Sub-Sub-Directories! Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-05-11 14:02 +1200
Re: Death To Sub-Sub-Sub-Directories! Lew <noone@lewscanon.com> - 2011-05-11 08:56 -0400
Re: Death To Sub-Sub-Sub-Directories! rossum <rossum48@coldmail.com> - 2011-05-06 09:55 +0100
Re: Death To Sub-Sub-Sub-Directories! Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-05-06 22:06 +1200
Re: Death To Sub-Sub-Sub-Directories! Lew <noone@lewscanon.com> - 2011-05-06 07:04 -0400
Re: Death To Sub-Sub-Sub-Directories! Pitch <mail@fake.info> - 2011-05-11 10:53 +0200
Re: Death To Sub-Sub-Sub-Directories! Lew <noone@lewscanon.com> - 2011-05-11 08:57 -0400
Re: Death To Sub-Sub-Sub-Directories! Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2011-05-11 19:16 +0200
Re: Death To Sub-Sub-Sub-Directories! Pitch <mail@fake.info> - 2011-05-12 11:02 +0200
Re: Death To Sub-Sub-Sub-Directories! Lew <noone@lewscanon.com> - 2011-05-12 08:28 -0400
Re: Death To Sub-Sub-Sub-Directories! Pitch <mail@fake.info> - 2011-05-13 11:43 +0200
csiph-web