Gentoo Archives: gentoo-user

From: BRM <bm_witness@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Devicekit - especially just for Dale
Date: Tue, 19 Jan 2010 20:37:17
Message-Id: 655330.67595.qm@web65406.mail.ac4.yahoo.com
In Reply to: Re: [gentoo-user] Devicekit - especially just for Dale by Neil Bothwick
1 ----- Original Message ----
2
3 > From: Neil Bothwick <neil@××××××××××.uk>
4 > On Tue, 19 Jan 2010 01:09:16 +0200, Alan McKinnon wrote:
5 > > > XML is a machine-readable file format that just happens to use ASCII
6 > > > characters, it is not meant to be modified by a text editor, so if
7 > > > your program uses XML configuration files, it should include a means
8 > > > of editing those files that does not include the use of vim.
9 > > which almost by definition means you need an xml-information parser on
10 > > par with an xml-parser to figure out what the hell the fields mean,
11 > > then design an intelligent viewer-editor thingy that lets the user
12 > > add-delete-change the information in the xml file. All the while
13 > > displaying to the user at least some information about the fields in
14 > > view.
15
16 Making the interface for the config file - XML or otherwise - is far more complex and cumbersome than writing the parser (XML or otherwise).
17
18 > Or a pretty GUI with clicky boxes to change the settings while never
19 > letting the user see the contents of the XML.
20
21 Once the user interface is in place it doesn't matter whether it is XML or something else.
22 The key is that is has a user interface, you can do a INI format and still be just as crappy.
23
24 The problem is that most don't think through using the XML so much. They just start using it.
25
26 While I have not had any problems with HAL myself (it just works); I do agree that a good user interface is necessary for the config files - I'd agree that is the case for any program, regardless of its back-end config file format.
27
28 $0.02
29
30 Ben

Replies

Subject Author
Re: [gentoo-user] Devicekit - especially just for Dale Alan McKinnon <alan.mckinnon@×××××.com>