Re: OO purism sucks - this is a rant for anyone who is allergic to that kind of thing...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2006-06-01 at 15:01, John Meyer wrote:
> John Nichel wrote:
> 
> > 
> > Do what I do, and don't do OO.  ;)
> > 
> 
> In other words, do what works, realizing that 99 percent of the time 
> that you're doing indivdual sites, and ignore dogma?  Hmm, what a concept!

Other than basic inheritance and the namespace features provided by
classes, I don't see much else that is critically useful. There's was a
strange push for all kinds of advanced OO features in PHP5 and somehow
that got some kind of ball rolling to make things more and more
complicated. Other than the pass objects by reference by default feature
of PHP5 and better constructor/destructor support... the rest is just
tooth decaying candy... and Jochem seems to be getting cavities it seems
-- time to floss and brush the crud away ;)

One of my biggest peeves about stuff changed that worked but wasn't
necessarily purist... not letting values be passed to functions
expecting a reference parameter. I mean really, PHP knows it's a
literal, so why can't it just make it safe. Ugh. Nope, now we gotta add
an extra line of userspace code to first assign the value to a variable
to do exactly what PHP could so much faster do for us. Similarly
functions returning references. Used to be you could return a null or
false value on encountering a problem... but noooooo, now you have to
spank youself and write $retValue = null; return $retValue. *pfffft*.

BTW, I still love PHP :)

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux