Re: OOP slow -- am I an idiot?

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

 



On Thu, October 12, 2006 12:49 am, Stut wrote:
> Roman Neuhauser wrote:
>> # stuttle@xxxxxxxxx / 2006-10-11 21:28:36 +0100:
>>> Richard Lynch wrote:
>>>> On Tue, October 10, 2006 6:14 pm, Chris de Vidal wrote:
>>>>> I want to create a "customer" class which fetches its attributes
>>>>> from
>>>>> a MySQL database.
>>>> No, you don't. :-)
>>>>
>>>> This is a classic example of the "obvious" OOP solution being
>>>> wildly
>>>> inappropriate.
>>> Ok, so I now find myself in the unusual position of disagreeing
>>> with the
>>> Lynchmeister. Why is this wildly inappropriate? IMHO this is what
>>> OOP is
>>> all about.

To clarify my original statement.

The *OBVIOUS* OOP setup of customer ===> class customer was the wildly
in appropriate bit, not using OOP in some more sensible manner, like:

//a set of customers
class customers (
  var customer_ids array();
}

I believe my original post went on to say that more explicitly, but I
can now see that many thought I was just railing against OOP in
general, which was not my intent.  (In *this* particular sentence,
anyway. :-))

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
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