Re: Retrieving unnecessary data





Robert Martin wrote:
On 2008-02-21 13:36:54 -0600, topmind <topmind@xxxxxxxxxxxxxxxx> said:


or use a dummy database
(dummy world) for testing.

Ah, now that's an interesting concept.

It's common in the industry.

You mean a database that, for
all intents and purposes, looks like a production database but isn't.
You mean one that can be substutited for the production database
according to the LSP. You mean...an object?

I think that's a very good idea.

I suppose under a wide view of "OOP" it can be considered such.

Not at all. Your recommendation was to use a substitutable subtype.
It's hard to get any more OO than that.

Like I said in another topic, it is the same kind of thing as opening
a different spread*** file using the same MS-Excel EXE. If you want
to call that "polymorphism" and give OOP credit for that "idea", go
for it; but I think most would find that a thin stretch. Either way,
it's a class-free way of testing.

--
Robert C. Martin (Uncle Bob)��| email: unclebob@xxxxxxxxxxxxxxxx
Object Mentor Inc.� � � � � ��| blog:��www.butunclebob.com

-T-
.


Quantcast