Re: Mixing OO and DB

From: Tegiri Nenashi <TegiriNenashi_at_gmail.com>
Date: Thu, 14 Feb 2008 13:51:41 -0800 (PST)
Message-ID: <b7bb5863-44de-44d7-a12d-d01202e33807_at_q21g2000hsa.googlegroups.com>


On Feb 7, 2:42 pm, topmind <topm..._at_technologist.com> wrote:
> On Feb 7, 1:00 pm, Tegiri Nenashi <TegiriNena..._at_gmail.com> wrote:
>
>
>
>
>
> > On Feb 7, 12:35 pm, Victor Porton <por..._at_narod.ru> wrote:
>
> > > I know both object oriented programming and DB (SQL). But it seems
> > > that these are incompatible.
>
> > I suggest that OO ideas are too naive to continue influence
> > programming. Formal Concept Analysis (FCA) is much more theoretically
> > sound method how to organize things into taxonomies.
>
> > Here is an example -- a hierarchy of living things, restricted to the
> > set {Lamprey, Trout, Lungfish, ..., Human}. FCA starts with feature
> > matrix like this:
>
> >                    Jaws Limbs   Hair    Lungs   Tail    Shell
> > Lamprey 0       0       0       0       1       0
> > Trout               1   0       0       0       1       0
> > Lungfish        1       0       0       1       1       0
> > Turtle              1   1       0       1       1       1
> > Cat                 1   1       1       1       1       0
> > Gorilla             1   1       1       1       0       0
> > Human               1   1       1       1       0       0
>
> > Then, the objects and the attributes (aka concepts) organize
> > themselves into a lattice like this
>
> > Lamprey -> Trout -> Lungfish -> Cat -> Gorilla
> >                        |         |
> >                        |         ---> Human
> >                        |
> >                        ----> Turtle
>
> > which is more powerful concept than OO hierarchy of classes. Each FCA
> > concept is essentially a limited form of a relation.
>
> It should be pointed out that biological taxonomies are often not an
> appropriate test of variations-on-a-theme management techniques for
> many domains. This is because biology is based on descent-based
> evolution; while other domain items, such as Apple Widgets are not,

It has been observed that programming field started to resemble biology. There is clear evolution that governs the survival of the fittest. Also (for better or worse) the ever increasing complexity started to promote imprecise methods.

> and are composed of a buffet-like mix-and-match of features based on
> S. Job's whims.

I'm not sure why St. John is relevant to the discussion. I just posted by deep impression about FCA method. You fill in the character feature matrix, and FCA method builds a hierarchy automatically for you. The Galois duality between attributes and objects also provides an insight on the LSP confusion. An object has more than one set of properties subject to subset relation! Received on Thu Feb 14 2008 - 22:51:41 CET

Original text of this message