dbTalk Databases Forums  

Case Sensitivity

comp.databases.pick comp.databases.pick


Discuss Case Sensitivity in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #41  
Old   
Excalibur21
 
Posts: n/a

Default Re: Case Sensitivity - 04-07-2011 , 04:32 PM






On Apr 8, 12:52*am, Kevin Powick <nos... (AT) spamless (DOT) com> wrote:
Quote:
On 2011-04-07 08:36:16 -0400, Ross Ferris <ro... (AT) stamina (DOT) com.au> said:

Of course, with "proper" dictionaries that actually documented all of
those files as having a field that was validated against the product
file (or ANY file for that matter), a little 30 line program can
change all references to ANY file, so you get the best of both
worlds ... meaningful ID's that can be changed as/when/if required

Sounds good on paper, but you also have to consider:

- Do you know all the files in which the ID needing changing can be found?
- Do you know all of the programs that have logic based on the
meaningful ID? (They may have to be re-coded)
- Do other account BPs have to be updated because they reference the
account/file(s) to be updated?
- Your "fix-it" program will likely need to incorporate different logic
for each file it needs to update.
- Make a mistake adjusting or running your "fix-it" program against
dozens of files and you risk data corruption.
- What do you do about history? - Those accounts and files that have
been archived. *You can't just restore the old "sales-report-file" and
expect it to work if all the product IDs have changed and can no longer
be found on the product-master.
- Until you "fix/update" everything (files, program logic, changes in
other accounts, etc), people are restricted from using the system
because it's an all or nothing deal. *There can be no incremental
migration.
- You likely have to plan some "big day" migration where you "flip the
switch" to using the newly updated IDs.

Compare the above, and the inherent risk, to having a simple,
sequential, "meaningless" ID that should really never change,
regardless of how many times your actual Product Code does.

--
Kevin Powick
Hi
I have done this on several occasions thanks to the intrusion of SAP
into the oil industry.
Because I use a global schema for my application it is quite
straightforward. In fact I was able to incorporate the SAP junk into
a larger scheme that allowed the customers to continue using the
appropriate non SAP items as well.
In the case of the oil industry a distributor will have a significant
amount of stock from places other than the SAP enforced codes from the
major oil company. In fact we used the new requirement to even
greater benefit by putting in a xref that allowed the user to enter 1
for diesel, 2 for Unleaded etc and I looked after the SAP for the
major items.
Every application has its own issues of course. I am horrified that
anyone would allow a file to get to 10Gb as I use archives but I
assume that there is a good reason. I disagree on principle that one
would go and change the earlier items and would use xref with
expiration flags if possible. However every application has its
quirks and I assume there is a reason.
It is certainly a strong point for establishing programming standards
and enforcing them, which we have always done.
Peter McMurray

Reply With Quote
  #42  
Old   
Kevin Powick
 
Posts: n/a

Default Re: Case Sensitivity - 04-07-2011 , 05:43 PM






On 2011-04-07 17:32:16 -0400, Excalibur21 <pgmcmurray (AT) gmail (DOT) com> said:
Quote:
It is certainly a strong point for establishing programming standards
and enforcing them, which we have always done.
Yes, it's nice if you're there from the beginning, but some of the
systems I care for now had close to 20 yrs of "interesting" practices
from multiple "programmers" before I got to them. In some cases, you
just have to live with what's there because nobody wants to pay for an
under-the-hood rewrite that appears to give them no new functionality.

--
Kevin Powick

Reply With Quote
  #43  
Old   
Ross Ferris
 
Posts: n/a

Default Re: Case Sensitivity - 04-07-2011 , 10:33 PM



I'm not advocating, just commenting.

Even with yiour sequential ID's you can still come unstuck if you
wanted to "merge" multiple products, so special logic is likely to be
required ..... and if people had hard coded logic based on a
particular product code, well, I hadn't considered stuff like that
'cause it isn't the way I'd do things.

I doubt that different logic would be required for different
files .... I hadn't considered this as being significant, and
certainly no more so that the use of "meaningless ID's" (which in turn
would sugffer from that "hard coded logic issue" .... I won't even
touch HOW you would hard code for a random number :-)

A "well maintained" central repository would ensure that you knew
every file & dictionary item that would be impacted, so there should
be no risk of missing files or fields --> the investment of getting
this repositiory right is that the work only needs to be done ONCE
(assuming ongoing maintenance for new files/fields) ... and yeah, I
know that most people don't have such a thing, and that this is a non-
trivial task (we have around 17,000 discrete dictionary definitions
for our R5 application), but the results can then also be used to
better project your data out into other products/tools/"things"

Anyway, a long way from casing unless we digress further into
DictionaryNamingConventions, so I'll leave off :-)

Reply With Quote
  #44  
Old   
Ross Ferris
 
Posts: n/a

Default Re: Case Sensitivity - 04-07-2011 , 10:37 PM



On Apr 8, 2:24*am, Kevin Powick <nos... (AT) spamless (DOT) com> wrote:
Quote:
On 2011-04-07 08:36:16 -0400, Ross Ferris <ro... (AT) stamina (DOT) com.au> said:

Of course, with "proper" dictionaries that actually documented all of
those files as having a field that was validated against the product
file (or ANY file for that matter), a little 30 line program can
change all references to ANY file, so you get the best of both
worlds ... meaningful ID's that can be changed as/when/if required

My previous reply may have been based upon a slightly incorrect
interpretation of what you wrote, but I think that many of my points
may still apply.

--
Kevin Powick
Agreed --> and didn't want to do a point by point dissection, and as
you said, some of the points are valid, especially relating to history
and the fact that whilst changes were taking place, system for
affected items would be in a state of flux until complete, but this
may be able to be scheduled for "out of hours" if there is such a
thing these days!!!)

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.