Agreed.
Consistent naming convention with consistent prefix or suffix makes it
better to group relevant files.

Otherwise you will find it messy:
...
AbstractFoo.php
BooSomethingA.php
BooSomethingB.php
....
FooInterface.php
Foo.php
FooTrait.php


On Thu, Feb 2, 2012 at 5:31 PM, Andreas Möller <[email protected]> wrote:

> > I think in the "Interface" in FooInterface should be referred to
> interface
> > declaration while "Abstract" in FooAbstract referred to abstract
> > declaration, which makes it more meaningful and consistent both in naming
> > convention and in English
>
> +1 (This is what I voted, too).
>
> Apart from this, when scanning a directory, for example
>
> /library/Foo/Bar/Baz
>
> you will find
>
> BazAbstract.php
> BazInterface.php
> BazTrait.php
>
> right underneath each other. It does make things more consistent,
> regardless of what's felt whether Baz is a noun or an adjective. One
> can even argue that Baz becomes an adjective here ("It's the Baz way
> of getting stuff done.").
>
>
> Andreas
>



-- 

Taiwen Jiang (aka D.J.)

Build Xoops Engine
http://www.xoopsengine.org
web and mobile application platform

CTO for EEFOCUS.com
Leading social platform for electronics professionals

Reply via email to