Re: Mixing OO and DB

From: topmind <topmind_at_technologist.com>
Date: Tue, 19 Feb 2008 10:40:27 -0800 (PST)
Message-ID: <e94507e2-c3ae-4757-91f3-7ea3626d636d_at_s13g2000prd.googlegroups.com>


Robert Martin wrote:
> On 2008-02-19 00:45:49 -0600, topmind <topmind_at_technologist.com> said:
>
> > I already gave reasons for shifting toward a data-centric approach
> > *instead of* a behavior-centric one. In short, data is more math-able
> > than behavior, and is more cross-app-language-able.
> >
> > It is kind of like the choice between binary circuits and trinary
> > circuits. Binary is better understood and has more math and
> > standardization behind it.
> >
> > Maybe someday there will be a Dr. Codd of Behavior. Until that day,
> > data has the edge.
>
> Yet even in the most data driven application there will still be
> behavior, and there will be code that implements that behavior, and
> there will be dependencies between the elements of the source code that
> need to be managed.

Yes, but behavior tends to be "neutered" in data-driven apps such that OO's change-handling techniques are less useful there. It's almost as if OO targets "full bore" behaviorism. If you don't go full-bore with behavior because you make data the king, then OO's techniques are out- -place.

If you make behavior the President, then you need a cabinet of side experts. However, if you de-thrown behavior such that it is a mere cubicle grunt, then a cabinet is overkill. Like I've said, datadriven  apps tend to create a domain-specific "language" in which the "commands" are in tables, not code. The app code merely carries out the commands. The app language is merely an interpreter for the domainspecific  "language" in the tables. It impliments the activities and variations (attributes) that are dictated to it by the tables.

Your techniques don't seem appropriate for this approach, or at the very least are neutral to the resulting quality.

> --
> Robert C. Martin (Uncle Bob)��| email: unclebob_at_objectmentor.com
> Object Mentor Inc.� � � � � ��| blog:��www.butunclebob.com

(By the way, there's non-ASCII characters in your signature block. Some newsreaders choke on those.)

-T- Received on Tue Feb 19 2008 - 19:40:27 CET

Original text of this message