Re: Interface naming standards?

From: Date: Fri, 02 Jun 2006 04:43:52 +0000
Subject: Re: Interface naming standards?
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-42740@lists.php.net to get a copy of this message
On 6/1/06, Daniel Convissor <danielc@analysisandsolutions.com> wrote:
Hi Christian: On Thu, Jun 01, 2006 at 11:54:34PM +0200, Christian Weiske wrote:
Spreadsheet_Writer_Interface_Workbook Spreadsheet_Writer_Excel_Workbook Spreadsheet_Writer_OpenOffice_Workbook
This not. I would do Spreadsheet_Writer_Workbook Spreadsheet_Writer_Workbook_Excel Spreadsheet_Writer_Workbook_OpenOffice and Spreadsheet_Writer_Format Spreadsheet_Writer_Format_Excel Spreadsheet_Writer_Format_OpenOffice But then a package gets tossed all over the place. Seems hard to maintain and comprehend at a glance.
Eh? This correctly categorizes the classes. The workbook is a higher level than the specific driver for it. There should be a base workbook class (or interface) that the specific driver workbooks inherit/implement to allow for easy switching between the 2. This is exactly the same as Structures_DataGrid's DataSource and Renderer driver structure. -- Justin Patrin

« previous php.pear.dev (#42740) next »