Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.lightlink.com!news.iecc.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe20.iad.POSTED!83aa503d!not-for-mail From: Daniel Pitts User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: naming convention References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Lines: 19 Message-ID: X-Complaints-To: abuse@newsrazor.net NNTP-Posting-Date: Wed, 19 Oct 2011 22:40:45 UTC Date: Wed, 19 Oct 2011 15:40:45 -0700 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:9012 On 10/19/11 3:19 PM, Roedy Green wrote: > I write a lot of code of this form: > > 1. method that reads all files in a set one at a time > 2. method the processes contents of one file, scanning for chunks > 3. method that processes one chunk. > > There are basically two types: read only and read-modify. > > It should be a design pattern. > > My question is, what naming convention do you use so that when methods > are listed alphabetically they group logically? > Methods group logically if they are in the right class. Alphabetizing them within the class should have no effect on the logic of their grouping. Alphabetizing them across classes is insanity.