From: Robert Martin on
On 2007-01-27 11:05:57 -0600, frebe73(a)gmail.com said:

> If the database isn't availible for developers, I suggest solving that
> problem instead of changing the way you design software. Installing a
> full database on a laptop has not been a problem for the last 10 years.
> Eclipse uses more memory and CPU on my laptop than my SQL Server,
> Oracle, Postgres and MySQL instances together.

;-) You haven't talked to some of the DBAs that I've talked to. Some
won't allow the developers do TOUCH the database, let alone have a copy
on their laptops.

But actually, I agree with you. If I'm developing an application I
want a copy of the database on my laptop because, as a developer,
nothing should be outside of my control.

Still, I want to be able to run tests without the database running.


--
Robert C. Martin (Uncle Bob)��| email: unclebob(a)objectmentor.com
Object Mentor Inc.� � � � � ��| blog:��www.butunclebob.com
The Agile Transition Experts��| web:���www.objectmentor.com
800-338-6716� � � � � � � � ��|



From: Robert Martin on
On 2007-01-27 11:05:57 -0600, frebe73(a)gmail.com said:

> But horizontal layers doesn't help. If you shut down the database or
> presentation layer, you don't have very much application to run anyway.

Says who? Unless your application is nothing but CRUD, you've got some
things to test.

--
Robert C. Martin (Uncle Bob)��| email: unclebob(a)objectmentor.com
Object Mentor Inc.� � � � � ��| blog:��www.butunclebob.com
The Agile Transition Experts��| web:���www.objectmentor.com
800-338-6716� � � � � � � � ��|



From: Daniel Parker on


On Jan 29, 10:46 pm, Robert Martin <uncle...(a)objectmentor.com> wrote:
> >> "an object is a relation" ??? A relation in relational theory,
> >> consisting of a set of tuples, is roughly analogous to the idea of a
> >> table, consisting of a list of rows.

> An object is an instance of a relation.

Not sure what that means. A relation is a value. How can something
be an instance of a value? If you're looking for metadata, that's in
the relation's type.

> The relation itself is described by the class of the object.
>
A relation, which is a value, has a type, which is its metadata and
describes the structure of its tuples.

Daniel

From: Robert Martin on
On 2007-01-27 23:56:27 -0600, frebe73(a)gmail.com said:

> Mocking out a database ain't trivial. Maybe it is of you only use the
> database for persistence, but otherwise...

*Simulating* a database is not trivial. Mocking it is. When you mock
a database you aren't doing any of the functions that the database
performs, you are simply returning canned data that is built into the
mock. It's absolutely trivial.

--
Robert C. Martin (Uncle Bob)��| email: unclebob(a)objectmentor.com
Object Mentor Inc.� � � � � ��| blog:��www.butunclebob.com
The Agile Transition Experts��| web:���www.objectmentor.com
800-338-6716� � � � � � � � ��|



From: Robert Martin on
On 2007-01-27 23:56:27 -0600, frebe73(a)gmail.com said:

> Installning, maintaining an running a RDBMS on every development
> machine is not a problem.

Correction: It's not a *technical* problem.


--
Robert C. Martin (Uncle Bob)��| email: unclebob(a)objectmentor.com
Object Mentor Inc.� � � � � ��| blog:��www.butunclebob.com
The Agile Transition Experts��| web:���www.objectmentor.com
800-338-6716� � � � � � � � ��|