RE: [PEAR-DEV] OO wrappers (was : Need 1 more vote for Image_IPTC class)

From: Date: Tue, 08 Apr 2003 14:09:52 +0000
Subject: RE: [PEAR-DEV] OO wrappers (was : Need 1 more vote for Image_IPTC class)
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-15029@lists.php.net to get a copy of this message
> From: Xavier Noguer [mailto:xnoguer@rezebra.com] > Sent: Tuesday, April 08, 2003 4:02 PM > El Mar 08 Abr 2003 07:56, Ant-1 escribió: > ... > > I agree with Rasmus. Everybody know the existence of "programming > > fashions". OO is one of this fashions, and so if a developper has the > > choice of using an OO wrapper or the low-level function, you can be sure > > he will choose to use the OO class, neglecting the overhead. And when > > the wrapper is used in another PEAR package, you're forced to make do > > with the overhead if you need the package's functionnality. > > In my opinion PEAR packages shouldn't use wrappers. It's one thing to > create > an OO wrapper so that people have more choices for using a certain > functionality, and another one to force anyone using a different > functionality to have to deal with the overhead of that wrapper. So you prefer a CS mix? Especially if these classes are extended we get huge problems with naming conventions. Actually as the core of PHP becomes more and more OO friendly we will find ourselves often in this situation (see the Exception class Sterling is writing). Then we might as well through the PEAR CS out the window now. Regards, Lukas

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