Re: Mixing OO and DB
Date: Thu, 6 Mar 2008 13:23:41 -0800 (PST)
Robert Martin wrote:
> On 2008-03-05 00:20:57 -0600, frebe <frebe73_at_gmail.com> 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
Covered in adjacent topics.
> Robert C. Martin (Uncle Bob)��| email: unclebob_at_objectmentor.com
> Object Mentor Inc.� � � � � ��| blog:��www.butunclebob.com
-T- Received on Thu Mar 06 2008 - 22:23:41 CET