Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Devicekit - especially just for Dale
Date: Tue, 19 Jan 2010 00:31:14
Message-Id: 4B54FD43.3090509@gmail.com
In Reply to: Re: [gentoo-user] Devicekit - especially just for Dale by Alan McKinnon
1 Alan McKinnon wrote:
2 > On Tuesday 19 January 2010 00:29:18 Neil Bothwick wrote:
3 >
4 >> On Mon, 18 Jan 2010 19:53:16 +0200, Alan McKinnon wrote:
5 >>
6 >>> Your post makes sense until you realise that the use of XML in a
7 >>> configuration designed to be changed by the user renders the package
8 >>> virtually unusable. Given a choice between me as a developer struggling
9 >>> with a config parser versus vast swathes of users dumping the package
10 >>> because of the same parser, I'd say it's me that has to work harder,
11 >>> not my users.
12 >>>
13 >> If we are truly trying to make Linux more accessible, with things like
14 >> the plug and play hal offers, should we even be contemplating editing
15 >> config files?
16 >>
17 >> XML is a machine-readable file format that just happens to use ASCII
18 >> characters, it is not meant to be modified by a text editor, so if your
19 >> program uses XML configuration files, it should include a means of
20 >> editing those files that does not include the use of vim.
21 >>
22 >
23 > which almost by definition means you need an xml-information parser on par
24 > with an xml-parser to figure out what the hell the fields mean, then design an
25 > intelligent viewer-editor thingy that lets the user add-delete-change the
26 > information in the xml file. All the while displaying to the user at least
27 > some information about the fields in view. Shaes of .chm anyone?
28 >
29 > By the time you've done all that and made the thing semi-usable, you've
30 > expended more effort than if you had written you own xml-parser from scratch.
31 > In C, python and perl. Plus C++ for good measure just to show how clever you
32 > are.
33 >
34 > As said before by someone else, hal and everything about it is a classic case
35 > of "second system syndrome". It should be a comp-sci object case :-)
36 >
37 >
38
39 I bet if hal had a easier to alter config file, I could have gotten my
40 keyboard and mouse to work. Having the config file in xml format would
41 be fine, IF it works out of the box with no configuring at all. Thing
42 is, in my case and a few others, it needed a little bit of help to
43 work. Some figured out how to make it work but my light bulb burned out
44 and we all know where that ended up.
45
46 I suspect that the underlying part of hal works fine. It MAY have
47 worked fine for me if it was configured properly. The config part seems
48 to have been at least some of its shortcoming. Take hal, redo the
49 config file and try again. May work. ;-)
50
51 Dale
52
53 :-) :-)

Replies

Subject Author
Re: [gentoo-user] Devicekit - especially just for Dale James Ausmus <james.ausmus@×××××.com>