Re: Retrieving unnecessary data
- From: topmind <topmind@xxxxxxxxxxxxxxxx>
- Date: Fri, 22 Feb 2008 16:10:48 -0800 (PST)
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-
.
- References:
- Retrieving unnecessary data
- From: ShaneLM
- Re: Retrieving unnecessary data
- From: H. S. Lahman
- Re: Retrieving unnecessary data
- From: ShaneLM
- Re: Retrieving unnecessary data
- From: Robert Martin
- Re: Retrieving unnecessary data
- From: topmind
- Re: Retrieving unnecessary data
- From: Robert Martin
- Re: Retrieving unnecessary data
- From: topmind
- Re: Retrieving unnecessary data
- From: Robert Martin
- Re: Retrieving unnecessary data
- From: topmind
- Re: Retrieving unnecessary data
- From: Robert Martin
- Retrieving unnecessary data
- Prev by Date: Re: Why is Object Oriented so successfull
- Next by Date: Re: Retrieving unnecessary data
- Previous by thread: Re: Retrieving unnecessary data
- Next by thread: Re: Retrieving unnecessary data
- Index(es):