Re: OOP slow -- am I an idiot?
| From: | Richard Lynch | Date: | Thu, 12 Oct 2006 17:07:28 +0000 |
| Subject: | Re: OOP slow -- am I an idiot? | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-243034@lists.php.net to get a copy of this message | ||
On Thu, October 12, 2006 12:49 am, Stut wrote:
> Roman Neuhauser wrote:
>> # stuttle@gmail.com / 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?