<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.1.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>FictionSoft Blog</title>
	<link>http://www.fictionsoft.com</link>
	<description>Random thoughts on web and software publishing</description>
	<pubDate>Thu, 22 Jul 2010 04:23:23 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.2</generator>
	<language>en</language>
			<item>
		<title>Real Domain Specific Languages vs. XML Pseudo-DSL&#8217;s</title>
		<link>http://www.fictionsoft.com/2007/03/real-domain-specific-languages-vs-xml-pseudo-dsls/</link>
		<comments>http://www.fictionsoft.com/2007/03/real-domain-specific-languages-vs-xml-pseudo-dsls/#comments</comments>
		<pubDate>Sun, 18 Mar 2007 03:43:18 +0000</pubDate>
		<dc:creator>gdac</dc:creator>
		
		<category><![CDATA[dsl]]></category>

		<guid isPermaLink="false">http://fictionsoft.com/2007/03/real-domain-specific-languages-vs-xml-pseudo-dsls/</guid>
		<description><![CDATA[In my last post, I mentioned the fact that NSIS doesn&#8217;t use XML as a reason why I preferred it over WIX.
I think maybe I should explain that a little better.
There seems to be a popular thought in many circles that XML is a great way to represent Domain Specific Languages. It&#8217;s possible that Ant [...]]]></description>
			<content:encoded><![CDATA[<p>In my <a href="http://www.fictionsoft.com/2007/03/comparing-wix-and-nsis-installers" title="Comparing WIX and NSIS Installers">last post</a>, I mentioned the fact that <a href="http://nsis.sf.net">NSIS</a> doesn&#8217;t use XML as a reason why I preferred it over <a href="http://wix.sf.net">WIX</a>.</p>
<p>I think maybe I should explain that a little better.</p>
<p>There seems to be a popular thought in many circles that XML is a great way to represent <a href="http://www.google.com/search?hl=en&amp;q=domain+specific+languages">Domain Specific Languages</a>. It&#8217;s possible that <a href="http://ant.apache.org/">Ant</a> and <a href="http://nant.sourceforge.net/">NAnt</a> have been largely responsible for this, although who really knows for sure. I&#8217;m certainly not against using XML when it makes sense. XML can be a great way to represent many kinds of data, and it makes storing and parsing data a relatively simple from a programming perspective. But the same structure that makes it easy for a computer to parse adds visual noise for humans trying to read it, not to mention <strong>type</strong> it.</p>
<p>If you want to use XML as a way to create a DSL without all the hassle of creating grammars and parsers, then go right ahead. Just be conscious of the fact that you&#8217;re trading ease of use for easier DSL development. But if you&#8217;re creating a DSL that will be used by many people over a long period of time, like WIX or NSIS, your users will be much better off if you take the time to come up with a suitable abstraction. Of course, if your target abstraction is a <a href="http://msdn.microsoft.com/vstudio/DSLTools/" title="Microsoft DSL Tools">visual one</a>, then it might make a lot of sense to go with XML.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fictionsoft.com/2007/03/real-domain-specific-languages-vs-xml-pseudo-dsls/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

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