Re: Code review comment: "Noone uses tokens anymore"
- From: "William" <Reply@xxxxxxxxxxxxxxxx>
- Date: Fri, 4 Nov 2005 10:26:17 -0600
"Kevin J. Phillips" <knp@xxxxxxx> wrote in message
news:skCaf.15$7c2.1061@xxxxxxxxxxxxxxx
>
> The second part of his comment, to consider using XML, is worth looking
> at. I am mulling it over...
>
> BTW, the configuration file is pretty simple. It's just a file with
> lines like below:
>
> ; Comment lines begin with a semi-colon
> var = 3.141
> var2 = plugh
> var3 = "message ; hello" ; Inline comment
> var4 = 'When I saw him, I said "Hello!"'
Since all I see is a flat properties-type file, I don't know
why he'd suggest XML for a configuration file. Talk about
overly complex - for the person who has to modify the config
file.
I parse files like this all the time (except I'm usually
working with Bourne shell and sed, not C). If it doesn't
get much more complex than what you've shown, I don't
know what his problem is, except, probably, he likes XML
and thinks one tool is appropriate for everything.
(Or other, similar, files in the system already use XML
and it would be consistent to use it here even though
it is overkill - that's not unreasonable.) -Wm
.
- References:
- Code review comment: "Noone uses tokens anymore"
- From: Kevin J. Phillips
- Code review comment: "Noone uses tokens anymore"
- Prev by Date: Re: programming concepts > specific languages
- Next by Date: Re: bug in windows getsavefilename api?
- Previous by thread: Re: Code review comment: "Noone uses tokens anymore"
- Next by thread: Re: Code review comment: "Noone uses tokens anymore"
- Index(es):
Relevant Pages
|