View Single Post
Old 07-03-2014, 09:06 AM   #857
tkeo
Connoisseur
tkeo began at the beginning.
 
Posts: 94
Karma: 10
Join Date: Feb 2014
Location: Japan
Device: Kindle PaperWhite, Kobo Aura HD
Hi Kevin,

Quote:
Originally Posted by KevinH View Post
They need not be meaningful and most are not. That said, as a compromise, how about the following:

1. since their idrefs must be unique for them simply add a very short prefix to theirs such as "x_" or some other short prefix (this is guaranteed to keep theirs unique). This will also guarantee that their idrefs do not overlap with our itemXXXXX idrefs.

2. Remove all of the "set" code and unique id code and simply replace it all with something similar to the following pseudo code.

This guarantees uniqueness, allows you to see the meaningful names but is so simple no block of uniqueness code is needed making the code as simple as possible.

How does that sound?
It is good.
I am glad for your cooperation.

Take care,
tkeo
tkeo is offline   Reply With Quote