Regardless other arguments, I do think it a valid advantage for grouping files to use suffix for all, including Interface, Abstract and future Trait. Hope Ralph can take this into account.
On Thu, Feb 2, 2012 at 5:37 PM, D. J. <info...@gmail.com> wrote: > 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 <a...@softe.is> 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 > > > -- 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