PHP Developers Network
http://forums.devnetwork.net/

Namespace naming/directory conventions
http://forums.devnetwork.net/viewtopic.php?f=19&t=139229
Page 1 of 1

Author:  Luke [ Sat Feb 15, 2014 5:12 am ]
Post subject:  Namespace naming/directory conventions


Author:  Celauran [ Sat Feb 15, 2014 9:45 am ]
Post subject:  Re: Namespace naming/directory conventions

My abstract or super classes sit one level above their child classes specifically so I can have \namespace\Foo and \namespace\Foo\Bar where Bar is a child of Foo

Author:  requinix [ Sat Feb 15, 2014 7:39 pm ]
Post subject:  Re: Namespace naming/directory conventions

Generally I'll go with MyLibrary\Reader as the base class and MyLibrary\Reader\* as the derived classes, because those classes are specialized instances of the "Reader" concept. Occasionally though I'll have an interface as the "main" class and then use an abstract class as a partial, common-functionality implementation - a base - for other classes, in which case I might go with MyLibrary\IReader and MyLibrary\Reader\ReaderBase.

Author:  Weirdan [ Sun Feb 16, 2014 9:14 am ]
Post subject:  Re: Namespace naming/directory conventions


Author:  Luke [ Mon Feb 17, 2014 4:12 pm ]
Post subject:  Re: Namespace naming/directory conventions


Author:  Christopher [ Tue Feb 18, 2014 6:27 pm ]
Post subject:  Re: Namespace naming/directory conventions


Author:  VladSun [ Thu Feb 20, 2014 4:06 pm ]
Post subject:  Re: Namespace naming/directory conventions

The OP instantly reminded me of viewtopic.php?f=19&t=127265
:)

Cheers

Author:  Christopher [ Thu Feb 20, 2014 6:06 pm ]
Post subject:  Re: Namespace naming/directory conventions

Ahhhhh ... 2011 and the Inheritance vs Composition discussions! I couldn't read more than a few pages ... but I am sure that Jenk was right! :drunk:

Author:  VladSun [ Thu Feb 20, 2014 6:32 pm ]
Post subject:  Re: Namespace naming/directory conventions


Author:  Christopher [ Sat Feb 22, 2014 12:43 pm ]
Post subject:  Re: Namespace naming/directory conventions

Never have so many, argued so long, about so many things they basically agree on!!! ;)

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/