From: | Michiel Erasmus |
Date: | 20 Sep 2000 at 12:00:26 |
Subject: | RE: AMIOPEN: Hotkey Config/Need suggestions |
I am not an expert but I would like to add my comments.
Why not consider to store configs in XML datafiles?
With XML you can store the keyindexes/whatever and easily retrieve it too.
I am only educated in the Evil Empire' from Redmonds tools and not much
else.. I suggest, use Java to read XML datafiles. The SDK can translate
Java bytecode to .00 tools, which should be includeable in VP apps. Since
there is no know XML capabilities in the SDK/Tao/whateveritscalled take the
shortcut with Java.
I havent done much (hardly any) investigations on what you can't do with
Java & XML but thanks to Java there are a lot of more capabilites open to us
Amigans.
Using Java somehwere you probably do not have to reinvent the wheel.
Michiel.
-----Oorspronkelijk bericht-----
Van: Jim Peters [mailto:jim@aguazul.demon.co.uk]
Verzonden: woensdag 20 september 2000 11:38
Aan: open@amiga.com
Onderwerp: Re: AMIOPEN: Hotkey Config/Need suggestions
On Tue, Sep 19, 2000 at 11:03:33PM -0700, Jesse McClusky wrote:
> > Both formats can have comments that start with '#'. What do you guys
think?
>
> I'd stick with the first one, since the whole point is to make the config
> file human-readable. Suggest to the programmer that they make an
> enum for their key indexes. Besides, the description gives a GUI
> mapper something to present to the user.
Just one problem with the first one - is that it would be very
fragile. If someone stuck an extra 0x03=XXX at the top of the file,
all the helpful labels lower down would be completely useless, if I
understand this correctly, because they would then be pointing at the
wrong slots. Also, the config file would have to be completely in
sync with the source, always, including having dummy values for things
no longer required in version 2.0, etc.
I prefer the second one - comments surrounding the line itself could
give more details, or you could allow a slot specifically for a
Subscribe/Unsubscribe: open-request@amiga.com
Amiga FAQ: http://www.amiga.com/faq.html