<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.5" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: On Config Files</title>
	<link>http://www.terminally-incoherent.com/blog/2007/05/17/on-config-files/</link>
	<description>Utterly random, incoherent and disjointed rants and ramblings...</description>
	<pubDate>Thu, 08 Jan 2009 01:02:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.5</generator>

	<item>
		<title>by: Matt`</title>
		<link>http://www.terminally-incoherent.com/blog/2007/05/17/on-config-files/#comment-4425</link>
		<pubDate>Fri, 18 May 2007 19:02:57 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2007/05/17/on-config-files/#comment-4425</guid>
					<description>I didn't have an opinion until about 10 seconds ago, but when its as simple as a series of "key = value"s then the extra fluff around the edges seems pretty pointless.</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t have an opinion until about 10 seconds ago, but when its as simple as a series of &#8220;key = value&#8221;s then the extra fluff around the edges seems pretty pointless.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Luke</title>
		<link>http://www.terminally-incoherent.com/blog/2007/05/17/on-config-files/#comment-4424</link>
		<pubDate>Fri, 18 May 2007 18:03:17 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2007/05/17/on-config-files/#comment-4424</guid>
					<description>When I use java I usually just use simple flat files. Then all I need to do is initialize an input stream to the file and pass it to the Properties class. It will do the rest and store all the values internally as a hashmap. :)

Of course all the values are considered generic objects so you will need to do some casting. I guess I can see how XML would be useful here - ie. you specify the data type of the key and etc.</description>
		<content:encoded><![CDATA[<p>When I use java I usually just use simple flat files. Then all I need to do is initialize an input stream to the file and pass it to the Properties class. It will do the rest and store all the values internally as a hashmap. <img src="http://www.terminally-incoherent.com/blog/wp-includes/images/smilies/icon_smile.gif" alt=")" class="wp-smiley" /> </p>
<p>Of course all the values are considered generic objects so you will need to do some casting. I guess I can see how XML would be useful here - ie. you specify the data type of the key and etc.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Wikke</title>
		<link>http://www.terminally-incoherent.com/blog/2007/05/17/on-config-files/#comment-4423</link>
		<pubDate>Fri, 18 May 2007 08:28:08 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2007/05/17/on-config-files/#comment-4423</guid>
					<description>I only use XML files for configuration.
I develop web apps in Flex and reading an xml file is just as easy as typing the URL to the file :)
It then is available as an Object with all the data parsed into appropriate data types.
Since Flex 2 is strong-typed, this is a major advantage.</description>
		<content:encoded><![CDATA[<p>I only use XML files for configuration.<br />
I develop web apps in Flex and reading an xml file is just as easy as typing the URL to the file <img src="http://www.terminally-incoherent.com/blog/wp-includes/images/smilies/icon_smile.gif" alt=")" class="wp-smiley" /><br />
It then is available as an Object with all the data parsed into appropriate data types.<br />
Since Flex 2 is strong-typed, this is a major advantage.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Luke</title>
		<link>http://www.terminally-incoherent.com/blog/2007/05/17/on-config-files/#comment-4422</link>
		<pubDate>Fri, 18 May 2007 01:22:16 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2007/05/17/on-config-files/#comment-4422</guid>
					<description>I'm not disagreeing - XML can be very good for storing some types of configuration files. For example, the &lt;a href="http://installpad.com/opensource.xml" rel="nofollow"&gt;application list&lt;/a&gt; for InstallPad is a good example when XML as config file works well. This sort of data lends itself to be structured as a tree, and storing it as a flat file would be inappropriate. 

But then again I see people using XML files to store stuff such as username, password, server address, and resolution settings for single application. Stuff like that could be stored as 4 lines of text, but instead we have 14 lines of XML.

I'm not against using XML - I'm just against using it where a simple file would do just as well. For example when you develop a new application and you are deciding how to structure your data file, XML may not always be the best choice. 

But if your current platform, IDE or application suite natively supports XML config, then using anything else would probably be silly.

:)</description>
		<content:encoded><![CDATA[<p>I&#8217;m not disagreeing - XML can be very good for storing some types of configuration files. For example, the <a href="http://installpad.com/opensource.xml" rel="nofollow">application list</a> for InstallPad is a good example when XML as config file works well. This sort of data lends itself to be structured as a tree, and storing it as a flat file would be inappropriate. </p>
<p>But then again I see people using XML files to store stuff such as username, password, server address, and resolution settings for single application. Stuff like that could be stored as 4 lines of text, but instead we have 14 lines of XML.</p>
<p>I&#8217;m not against using XML - I&#8217;m just against using it where a simple file would do just as well. For example when you develop a new application and you are deciding how to structure your data file, XML may not always be the best choice. </p>
<p>But if your current platform, IDE or application suite natively supports XML config, then using anything else would probably be silly.</p>
<p>:)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Craig Betts</title>
		<link>http://www.terminally-incoherent.com/blog/2007/05/17/on-config-files/#comment-4421</link>
		<pubDate>Thu, 17 May 2007 23:57:55 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2007/05/17/on-config-files/#comment-4421</guid>
					<description>&lt;blockquote&gt;Yeah, but how much “power” do you actually get from using an XML structure for what is essentially an unstructured 1-to-1 pairing of keys and values?&lt;/blockquote&gt;

Well, XML is more than that.  It give you the ability to store data in a tree instead of a flat namespace.  Sure, there are ways to represent that kind of data in a flat file, like an LDIF file, but XML does what it was intended to do.

I guess this is turning into a "vi vs emacs" type of battle . . .</description>
		<content:encoded><![CDATA[<blockquote><p>Yeah, but how much “power” do you actually get from using an XML structure for what is essentially an unstructured 1-to-1 pairing of keys and values?</p>
</blockquote>
<p>Well, XML is more than that.  It give you the ability to store data in a tree instead of a flat namespace.  Sure, there are ways to represent that kind of data in a flat file, like an LDIF file, but XML does what it was intended to do.</p>
<p>I guess this is turning into a &#8220;vi vs emacs&#8221; type of battle . . .
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Luke</title>
		<link>http://www.terminally-incoherent.com/blog/2007/05/17/on-config-files/#comment-4420</link>
		<pubDate>Thu, 17 May 2007 23:47:29 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2007/05/17/on-config-files/#comment-4420</guid>
					<description>Yeah, but how much "power" do you actually get from using an XML structure for what is essentially an unstructured 1-to-1 pairing of keys and values? With LDAP there are some tangible benefits you can point to. 

With XML config files - not so much. I find that often XML is used where a simple text config would be more appropriate, because... Well, because XML is cool. :P</description>
		<content:encoded><![CDATA[<p>Yeah, but how much &#8220;power&#8221; do you actually get from using an XML structure for what is essentially an unstructured 1-to-1 pairing of keys and values? With LDAP there are some tangible benefits you can point to. </p>
<p>With XML config files - not so much. I find that often XML is used where a simple text config would be more appropriate, because&#8230; Well, because XML is cool. <img src="http://www.terminally-incoherent.com/blog/wp-includes/images/smilies/icon_razz.gif" alt="P" class="wp-smiley" />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Craig Betts</title>
		<link>http://www.terminally-incoherent.com/blog/2007/05/17/on-config-files/#comment-4419</link>
		<pubDate>Thu, 17 May 2007 22:18:14 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2007/05/17/on-config-files/#comment-4419</guid>
					<description>Being a Solaris junkie, I have become accustomed to XML config files.  Yeah, I like the older style when hand-editing, but XML parsers are efficient and easy to use.

I rank this right up with NIS vs LDAP.  Sure, NIS was easier when editing by hand, but LDAP is so much more powerful and easier to use once it is deployed.</description>
		<content:encoded><![CDATA[<p>Being a Solaris junkie, I have become accustomed to XML config files.  Yeah, I like the older style when hand-editing, but XML parsers are efficient and easy to use.</p>
<p>I rank this right up with NIS vs LDAP.  Sure, NIS was easier when editing by hand, but LDAP is so much more powerful and easier to use once it is deployed.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.736 seconds -->
