Re: String Class
| From: | Luca Mariano | Date: | Mon, 13 Dec 2004 08:41:27 +0000 |
| Subject: | Re: String Class | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-35030@lists.php.net to get a copy of this message | ||
>
>
> Matthew Fonda wrote:
>
> >Hello,
> >
> >I have created a string class in PHP. It is pretty much a copy of
java's
> >String class, but it will add a few new features, and allows you to do
> >certain things with strings in PHP easier and quicker. I find this
> >useful when you are using strings that you need to do a lot of stuff
to,
> >it works better than just using PHP's default string functions, and
> >provides an OOP wrapper for them.
>
> This looks completely useless to me. Almost every methods you propose
already
> exist as a native PHP function which will of course be a lot faster to
call.
> But that's just my opinion, PHP is not Java. I wouldn't like to see PHP
code
> developed with this kind of wrappers. So it is a -1 here.
>
> Bertrand Mansion
> Mamasam
>
> --
I agree with Bertrand, a strong -1 for all this kind of classes that brings
into the PHP world the worst of the Java world...
My personal experience is that a java-like design pattern, at application
level, results into very slow php scripts, perhaps slower than the java
equivalent. Since performace is a key feature of php, I find conceptually
wrong an heavy OO pattern with a lot of objects to do every thing.
Luca Mariano
--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor:
Natsabe.it significa Natura, Salute e Bellezza ... ma non solo!
Vasta scelta di articoli da regalo. Belli e originali.
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=1306&d=20041213