Re: More than one values returned?

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

 



On Fri, 2008-02-22 at 09:50 -0600, Greg Donald wrote:
> On 2/21/08, Nick Stinemates <nick@xxxxxxxxxxxxxx> wrote:
> > I'm glad you're literate enough to understand what *indication* and
> >  *usually* mean.
> 
> I know perfectly well what they mean, both words in fact.
> 
> What I, and many others I can only assume, are waiting for, is one
> shred of an example to back up your obviously immature and uninformed
> claim.
> 
> >  Oh wait..
> 
> I am indeed waiting, where's your code?  When, and under what
> circumstances exactly, is getting back an array of objects from a
> function or method call "poor design" ?  Please, do tell.

You must have missed his highly persuasive post regarding wrapping
everything in a "collection object" layer. I for one have begun
reworking all of my code. It's been going great so far... I feel so
purist having objects everywhere. I've even implemented wrapper objects
for base datatypes in case someday, a year or 50 from now, I want to
perform an action on an integer. In fact it's great, I've reimplemented
all of the array functions (shuffle, merge, splice, etc) to work on my
collections-- they were super fast as PHP functions but the usability
was just plain crap. Obviously I couldn't apply them to collections of
integers without forcing any future developers into difficulty. And who
knew how much more versatile strings could be as collections of
character objects. In fact, I'm thinking characters should be
collections of bit objects. We'll see about that one though, I'm already
suffering severe performance issues.

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