Re: OO versus RDB

From: J M Davitt <jdavitt_at_aeneas.net>
Date: Tue, 04 Jul 2006 10:30:35 GMT
Message-ID: <frrqg.9334$Eh1.7511_at_tornado.ohiordc.rr.com>


topmind wrote:

> J M Davitt wrote:
> 

>>topmind wrote:
>>
>>>>>>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.
>>
>>This can only make sense if one fails to manage their work products
>>and thinks that such shortcomings are a normal part of their work
>>life.
> 
> 
> I am not sure what you mean. If your boss doesn't like the risks of
> name refactoring, that is the way it goes. One could argue it is the
> proper application of "time discounting" from accounting. Whether
> finance-based decision techniques should be used in IT
> short-vs-long-term planning is a long subject.

There should be no risk associated with "name refactoring." One should not have to "try to hunt down all references." If you have to hunt and risk missing something, you're not managing your code.

[snip] Received on Tue Jul 04 2006 - 12:30:35 CEST

Original text of this message