Re: Mixing OO and DB

From: Robert Martin <>
Date: Thu, 6 Mar 2008 01:56:39 -0600
Message-ID: <200803060156398013-unclebob_at_objectmentorcom>

On 2008-03-05 00:20:57 -0600, frebe <> said:

> The reason OO people like to "decouple" the SQL statements is:
> 1. OO languages doesn't have good support for embedding SQL.
> 2. OO like to model data as a network graph, in opposite to the
> relational model.

OO people like to decouple SQL because
1. They don't like mixing high level policy code with low level detail code. They'd rather partition their code based on abstraction level.

2. They don't like tying themselves to a particular implementation. They want to be able to easily replace the SQL with something else (often for testing purposes).

Robert C. Martin (Uncle Bob)  | email:
Object Mentor Inc.            | blog:
The Agile Transition Experts  | web:
800-338-6716                  |
Received on Thu Mar 06 2008 - 08:56:39 CET

Original text of this message