On Wed, Sep 19, 2012 at 10:11 AM, Andrew Faulds <a...@ajf.me> wrote:

> Please explain in detail how object-oriented code obfuscates, complicates,
> murders baby kittens, etc.

Because a simple str_replace one line will become 6-10 lines of OO
code very easily?

Maybe you write "amazing" OO code, but the stuff I see is usually
needless waste or reinventing core functionality and not adding any
additional value.

>> Next you'll start saying "why can't I do $string = new String();
>> $string->input($input); $string->replace($output);" or something,
>> instead of str_replace.
>
> Actually, I have. As an advocate of APIs with consistent argument order that
> newbies like me can learn more easily, I *have*, in fact, proposed that.

Your argument regarding consistent argument order is noted and agreed.
The needle/haystack/etc has always been an annoyance. But that's about
it.

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

Reply via email to