Login  Register

RE: Persistancy

Posted by Andre Louw-2 on Apr 10, 2002; 3:22am
URL: http://quantlib.414.s1.nabble.com/Persistancy-tp1965p1966.html

Rod,

Sorry I missed this email before I set up my reply to Luigi!

>Andre, correct me if I'm wrong, but I think you are talking about what I
would call "static data".
>That is any data type which may change (albeit not regularly) and for that
reason it should be used by the
>code but not form part of the code.  Things like currencies, holidays,
countries and trading locations should
>not really be hard-coded.  
That's it exactly.
>I doubt that any robust system would deal with these by hard coding the
variables BUT in an open source
>library what type of database could be used; Oracle, Sybase, SQL Server,
Interbase?  There are just too many
>options with different advantages and disadvantages.  For an open source
library you have to make static data >available without limiting the user to
any particular technology or platform.
I agree, with a little bit of work this can be abstracted to repository
independant code - the way the GNU project does with their EOF framework,
but, leave that for another day! For the moment you would probably extract
to another layer.
>One other solution I can think of it to apply the Java approach of making
these items "resources" of the code.  >If they are placed in resource/text
files they could be stored with the code but not in the code.  Of course
>that gives rise to some additional coding effort such as text parsing and
manipulation.  Any other thoughts?
Could work.

Thanx, Andre.
 
-------------------------------------------------------------------------
This e-mail is intended only for the use of the individual or entity named
above and may contain information that is confidential and privileged,
proprietary to the company and protected by law. If you are not the intended
recipient, you are hereby notified that any dissemination, distribution or
copying of this e-mail is strictly prohibited. Opinions, conclusions and
other information in this message that do not relate to the official
business of our company shall be understood as neither given nor endorsed by
it.