Re: OO versus RDB

From: topmind <topmind_at_technologist.com>
Date: 1 Jul 2006 23:57:12 -0700
Message-ID: <1151823432.730307.233300_at_p79g2000cwp.googlegroups.com>


> >>This sort of situation is actually rather common at the enterprise
> >>level.
> >
> >
> > Changing names of columns but keeping the sematics is extremly rare,
> > just because it breaks the interface to the applications.
>
> So do all changes to enterprise schemas, which is why /any/ change to
> such a schema is a big deal. The DBA already had to change the schema
> to provide burdenedSalary and chose that opportunity to clean up the
> semantics.

Perhaps I missed the purpose of this debate, but changing the name of *any* interface in any paradigm or language can result in headaches. We use names to reference things. If 50 other applications or routines or classes refer to "fooSalary" and we later realize that it should have been called "barSalary", then we are faced with a *universal* dilema of whether to hunt down and change all 50 references, or leave it with a bad name. This is not a problem unique to databases.

I generally suggest leaving it with the bad name and putting a note in the schema (if provided) or routine or class about the actual nature of the misnamed thing. If you try to hunt down all references, you may miss some and your boss will be pissed when things break.

The only universal way around this dilema that I see is to use "dumb keys", names that carry no meaning such that they can't have the wrong meaning by design. However, it is hard to conceptual work with variables and interfaces with names like "A348282" and "SDFASD".

-T- Received on Sun Jul 02 2006 - 08:57:12 CEST

Original text of this message