Ken,

Many classes and for Java & .NET and even php very own PEAR are libraries of 
bloat. They offer some functionality and in exchange take away tremendous 
amount of extra resources. That is not to say all those classes and libraries 
are written poorly, many are not, however no matter how good is a wrapper it 
will always add slowdowns. 
In php (at least 4.X) loading large classes to memory is VERY memory cosuming 
and loading huge libraries will put a large strain on system with medium to 
heavy use.
Most people do not need PEAR or other assistance libraries for most of their 
code, especially in PHP where standard functions are VERY easy to use and 
their is a function for almost every occasion :)
In many cases, like with database layers you can avoid class by simply using:

$db_type = 'mysql_'; or $db_type('pg_'); etc...
and then calling php's database manipulation functions with $db_type prefix.

So, in my opinion creating class libraries is counter productive in PHP 
enviroment. It makes sence in C & C++ to some degree where to open a socket 
you need to do a good deal of work, so a class which accepts a socket & 
domain and returns open socket may be very useful. But in PHP where 
everything is already done for you there is little need for that IMHO.

On April 12, 2002 04:53 pm, Ken Egervari wrote:
> Hello Richard,
>
> I don't think people really understand me correctly.  Pear is small in
> comparison to the Java Platform or the .NET Framework.  My library
> extremephp.org is probably around 4-5 times bigger than PEAR and it's not
> even close to being finished yet.  There could be much more to develop to
> make PHP an even greater language to use, but it's not keeping up.
>

-- 
Ilia Alshanetsky
FUDforum Developer
http://fud.prohost.org/forum/

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to