Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 9102 invoked from network); 4 Sep 2006 23:18:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Sep 2006 23:18:06 -0000 Received: (qmail 79868 invoked by uid 500); 4 Sep 2006 23:18:06 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 79653 invoked by uid 500); 4 Sep 2006 23:18:05 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 79642 invoked by uid 99); 4 Sep 2006 23:18:05 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Sep 2006 16:18:05 -0700 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 212.27.42.27 is neither permitted nor denied by domain of elecharny@gmail.com) Received: from [212.27.42.27] (HELO smtp1-g19.free.fr) (212.27.42.27) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Sep 2006 16:18:04 -0700 Received: from [192.168.0.1] (vol75-3-82-66-216-176.fbx.proxad.net [82.66.216.176]) by smtp1-g19.free.fr (Postfix) with ESMTP id 860E990A85 for ; Tue, 5 Sep 2006 01:17:43 +0200 (CEST) Message-ID: <44FCB403.6050601@gmail.com> Date: Tue, 05 Sep 2006 01:17:23 +0200 From: Emmanuel Lecharny Reply-To: elecharny@iktek.com User-Agent: Mozilla Thunderbird 1.0.7 (X11/20050923) X-Accept-Language: fr, en MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: [ADS 2.0] Naming convention ... again ! References: <44FCAF8B.6020109@bellsouth.net> In-Reply-To: <44FCAF8B.6020109@bellsouth.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N >> >> Good idea. But then I'm a little bit annoyed by the name >> BindRequestImpl. So am I with the BindRequestDecorator which could >> have been AbstractBindRequestDecorator, as we have AbstractMessage, >> AbstractRequest, etc. > > > heh ok I'm not helping :) Well, I have been a little bit to far :) Let's add Abstract in front of *all* abstract class, it seems a reasonnable approahc. I like to keep BindRequest as an concrete class, because this is what users want to manipulate. Call it common sense... But then we need an interface to solve the previous problem. I propose BindRequestOperation, which name does not suggest that it is a concrete class. (and it's coherent with the Ldap grammar, where requests and response are seen as Protocol Operations) > >> To be short : >> Q1 : Should we add an 'I' in front on interface that are not >> obviously seen as interfaces (like BindRequest : renamed to >> IBindRequest) (I mean to avoid a collision between an interface name >> and a class name) ? > > > Hmmm I've never like this style. -1. I have used it, but IList sounds strange and IMap looks like the mail protocol to me :) So let's avoid M$ C# and Hungarian notations to close source :) > >> Q2 : Should we add an 'I' in front of *all* interfaces, breaking the >> JLS rules ? (so Message will be renamed to IMessage, even if it's >> obvious that Message cannot be a concrete class) > > > Yeah -1 on that. ok, definitively a -1, I think. > >> Q3 : Should we add 'Abstract' in front of abstract class ? > > > +1 Ok, me too. > >> Q4 : if Q1 and Q2 is *NO !!!*, then which name should we use for >> class which implements interface : ConcreteBindRequest, >> BindRequestImpl ? > > > Either is fine w/ me as long as we're consistent. Concrete prefix is > not bad. I kind of like the fact that it's what the GoF did in their > examples. I think that classes which are not seen from an API could use Concrete in front of their interface name. However, I'm a little bit reluctant to use that notation for end users classes... As I said before, the API users want yo manupulate a BindRequest, not a concreteBindRequest, no ? > > Alex >