Re: Mixing OO and DB
Date: Mon, 11 Feb 2008 10:11:12 -0600
Message-ID: <2008021110111250073-unclebob_at_objectmentorcom>
On 2008-02-07 14:35:26 -0600, Victor Porton <porton_at_narod.ru> said:
> I know both object oriented programming and DB (SQL). But it seems
The concepts are orthogonal. Objects are not tables. Tables are not
objects. The many efforts to try to force tables and objects together
always cause trouble. Things work better when you recognize the
benefits of tables, and the benefits of objects, and use each where
they belong rather than try to force one to use the other.
Tables expose data and have no behavior. Objects hide data and expose
> that these are incompatible. Or may somebody advice how to meddle them
> together?
Learn each. Appreciate each. Apply each. Keep each where it belongs.
-- Robert C. Martin (Uncle Bob) | email: unclebob_at_objectmentor.com Object Mentor Inc. | blog: www.butunclebob.com The Agile Transition Experts | web: www.objectmentor.com 800-338-6716 |Received on Mon Feb 11 2008 - 17:11:12 CET