Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: Aspect questions? Date: Sun, 26 Feb 2012 17:05:02 -0800 Organization: albasani.net Lines: 28 Message-ID: References: <4f4a6b1d$0$290$14726298@news.sunsite.dk> <4f4ac151$0$291$14726298@news.sunsite.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news.albasani.net zrn2dtUjJhHvIBk2pvL+YeJmMTDSoHBqATEnqmRuyUCx1g01NQAs2FGuC6YPZWEaIzYpW/2w/c6AvfL0ii86Z/mcVAIdKDVJiCg2BZZPRZ7xSTTu2lDbvv7hx0BMnerP NNTP-Posting-Date: Mon, 27 Feb 2012 01:05:01 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="aPB09/0Ren9zztDalgEqtK5QqRb/MYrqLHAfGSV+kc6frySKFXH7f1ofIfOFa/eCSzfL417jTnLS8hZXLEzEwhTs3B5ETno6xpmvkkk0/VOo09Z8PY5AwtB8tw/4VwbT"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 In-Reply-To: <4f4ac151$0$291$14726298@news.sunsite.dk> Cancel-Lock: sha1:+6UuB68xFIxc5dtYPBbr1R0/jHI= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:12403 Arne Vajhøj wrote: > Novice wrote: > > I'm currently grouping mine on a more-or-less functional basis. If the > > class is essentially just a table lookup or enum, then it goes in the > > com.novice.common.lookups package. If it is a utility, it goes into > > com.novice.common.utilities. And so forth. > > That is general question not specific to logging or AOP. > > You need a good structure of your classes and source code. > > A key factor in the decision between com.novice.common and > com.novice.common.xxxx must be the number of classes. > > Do you have so many classes that it makes sense to split up? That threshold would be one. Every type should be in a package. Every type should be in its appropriate package, irrespective of how many types (not just classes!) you have. A model-view-presenter program could, and probably should, have three packages with just the five or six types (including the three concrete classes but not the test code, which would add more). -- Lew Honi soit qui mal y pense. http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg