Stewart Stremler wrote:
begin  quoting Michael O'Keefe as of Fri, Jul 06, 2007 at 02:30:03PM -0700:
[snip]
We've had "win.ini" config file formats for years in the testing group and they are a PITA for anything other than simple configurations.
Arrays and complex structures are ridiculous in the "win.ini" format

Indeed. But for simple configuration, they're pretty damn good.

XML goes the other way... for simple configurations, it's ridiculously
complicated.  And most configuration is key-value -- so you end up using
simple XPath expressions to get the data you want, which puts you back
into the key-value world, which makes XML just another layer of complexity.

Use the right tool for the job, rather than forcing one tool to be used
everywhere for everything.

But once you've started using "win.ini" and then get a complicated structure that you want in the config file, you're at an Oh Shit! moment. You either hack it up (CSV values, with escapes and all the parsing that goes with that) or you switch to XML. I find it better to not take the chance and start with XML in the first place.

--
Michael O'Keefe                      |          [EMAIL PROTECTED]
Live on and Ride an 06 BMW R12GS HP2 |          [EMAIL PROTECTED]      / |
I like less more or less less than   |Work:+1 858 845 3514        /  |
more. UNIX-live it,love it,fork() it |Fax :+1 858 845 2652       /_p_|
My views are MINE ALONE, blah, blah, |Home:+1 760 788 1296       \`O'|
blah, yackety yack - don't come back |Fax :+1 858                _/_\|_,


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to