From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,47bc849aad30d586 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-30 11:21:42 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!oleane.net!oleane!news.tiscali.fr!fr.clara.net!heighliner.fr.clara.net!newsfeed.vmunix.org!uio.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: A standard package for config files is needed Date: Thu, 30 May 2002 18:21:41 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: <4519e058.0205291059.737616ec@posting.google.com> <4519e058.0205300952.192e8274@posting.google.com> NNTP-Posting-Host: kiuk0156.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1022782901 13452 129.241.83.82 (30 May 2002 18:21:41 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Thu, 30 May 2002 18:21:41 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:25024 Date: 2002-05-30T18:21:41+00:00 List-Id: On 30 May 2002 10:52:28 -0700, Ted Dennison wrote: > "Marin David Condic" wrote in message news:... >> Well, my understanding of the original post was that it was a hypothetical > ... >> registry???" Not that it had to duplicate exactly what the registry does - No. > The file format for something like this has to be flat text for a > number of reasons, not limited to: > > o Useability - On many systems the whole point of a configuration > file is that it can be edited off-line without using any special tools > or programs. > o Portability - Use of this package should not, in and of itself, > render a system non-portable. It would be almost impossible to come up > with a binary format that is portable. It can be done, but using text > as the format is probably the easiest way. Good. > You are absolutely right that this opens a big can of worms as to what > the proper format should be. That's why I'm most interested in if its > possible to reach some kind of consensus on what the format should be. Yes > Just to lift another rock; I've seen programs that use CSV for > configuration files. This allows the files to be easily manipluated > with common database or spreadsheet tools. It also allows for easy > addition of all sorts of attributes. Lets keep it simple. I don't know what CSV is, but if somebody has to install a database to use my small program then I think they would look elsewhere. Me too for that matter :-) Although tangent-surfing can be fun exercise for the mind, let's try not to do it. I would like a package that can be used on any platform without problems. If I am to run an application on both windows and linux (as Ada gives me this possibility) I am not interested in configuring the program twice. I want to do it on one of the platforms and then simply copy the configuration file to the other. The only exception is of course when directory paths are in the configuration file, but this is of no concern to the package in question. If people want to use the Window register and make a Windows only application, it is fine by me, but at least this should be put in a separate package. Preben