On Wed, Sep 19, 2012 at 9:21 AM, Michael Stowe <m...@mikestowe.com> wrote:

> Andrew, I'm the biggest advocate of OOP out there, but the purpose of this
> is to provide a nice convenient layer for all developers to use to properly
> escape code and increase security within their applications.  As such, we
> need to cater to the resistance...err, I mean Procedural Purists and those
> who are beginning PHP development and are not yet comfortable with OOP.

If you want to play with OO all day, then use Java. PHP was built on
procedural, and now all you OO fanboys are going nuts with it. :) On a
short-lived web request I see no reason to complicate and obfuscate
the code with OO.

This is becoming religious now, and a fight I will probably lose, but
think about PHP core, it does not need to actually start having "OO
only" stuff, especially when we're talking about one-line functions.

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.

You can always build something from a basic simple foundation, which
is how PHP's OO is built anyway. Don't complicate things because of
personal preference. There is no reason it cannot stay a simple
function call or two. Wrap that in as many classes as you wish on your
own time. :)

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

Reply via email to