Re: Trying to catch up

From: Date: Sat, 14 Oct 2000 21:28:11 +0000
Subject: Re: Trying to catch up
References: 1 2  Groups: php.pear 
Request: Send a blank email to php-pear+get-374@lists.php.net to get a copy of this message
[missed these the first time around] > > 2. Is hungarian notation not a topic to discuss in PEAR? I find it very > > helpful - when u know > > the name of the function u know what it is returning and you dont need > > to switch > > forward and back through source code and documentation ... and all the > > known > > advantages. Please, no! I _hate_ hungarian notation. If things are unclear, just make your variable/function names more descriptive... Also, this what phpdoc/javadoc style documentation is fore. > > 3. Is for PEAR also meant to write wrapper classes for all the non-OO > > PHP functions, > > like the array functions? I am asking that because since PHP4 there are > > many new array > > functions and the naming is not really "one style", some are called > > array_xxx and others > > dont have this prefix. I think this is a personal preference kind of thing. There's Net/Socket.php to wrap the socket functions, but this to me is added functionality over the array functions - it keeps track of the handle for you, persistence, provides methods like readIPAddress, etc. A straight wrapper over the array functions wouldn't do anything that you couldn't do by aliasing some php functions. So if aliases are needed to add consistent names, let's do that instead. -chuck -- Charles Hagenbuch, <chuck@horde.org> must... find... acorns... *thud*

« previous php.pear (#374) next »