<?xml version="1.0" encoding="UTF-8"?>
<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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SDLC Blog &#187; SCM</title>
	<atom:link href="http://www.rodenas.org/blog/category/scm/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rodenas.org/blog</link>
	<description>Software Development Life Cycle: Methodologies and Tools for the Enterprise</description>
	<lastBuildDate>Fri, 09 Sep 2011 12:02:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Repositories for Models: VCS or Databases?</title>
		<link>http://www.rodenas.org/blog/2008/08/07/repositories-for-models-vcs-or-databases/</link>
		<comments>http://www.rodenas.org/blog/2008/08/07/repositories-for-models-vcs-or-databases/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 23:29:36 +0000</pubDate>
		<dc:creator>ferdy</dc:creator>
				<category><![CDATA[Case]]></category>
		<category><![CDATA[MDD]]></category>
		<category><![CDATA[SCM]]></category>
		<category><![CDATA[Case Tools]]></category>
		<category><![CDATA[DSL]]></category>
		<category><![CDATA[DSM]]></category>
		<category><![CDATA[VCS]]></category>

		<guid isPermaLink="false">http://www.rodenas.org/blog/?p=346</guid>
		<description><![CDATA[TweetTweetA recent post from Markus Voelter replying some articles from Martin Fowler has resulted in an excellent discussion about repositories for MDSD and textual vs graphical DSLs. I was thinking about joining the discussion in the original post, but as my answer is a bit long to be added as a comment, I&#8217;ll reply him [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://www.rodenas.org/blog/2008/08/07/repositories-for-models-vcs-or-databases/&via=ferdy&text=Repositories for Models: VCS or Databases?&related=:&lang=en&count=vertical" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://www.rodenas.org/blog/2008/08/07/repositories-for-models-vcs-or-databases/&via=ferdy&text=Repositories for Models: VCS or Databases?&related=:&lang=en&count=vertical" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><p>A recent <a href="http://voelterblog.blogspot.com/2008/07/replying-to-martin-fowlers-recent-co.html">post</a> from Markus Voelter replying <a href="http://martinfowler.com/bliki/MDSDandDSL.html">some</a> <a href="http://martinfowler.com/bliki/ModelDrivenSoftwareDevelopment.html">articles</a> from Martin Fowler has resulted in an excellent discussion about repositories for <acronym title="Model Driven Software Development">MDSD</acronym> and textual vs graphical <acronym title="Domain Specific Languages">DSLs</acronym>. I was thinking about joining the discussion in the original post, but as my answer is a bit long to be added as a comment, I&#8217;ll reply him here.</p>
<p>In his post, Markus raised a question that recurrently appears in my thoughts: where is it better to store models? as files in a <a href="http://en.wikipedia.org/wiki/Version_control_system">VCS</a> (like CVS/SVN) or as structured data in databases?</p>
<p>Unlike Markus, my first answer is usually: without any doubt, in databases. I suppose that this answer has much to do with my professional background, since in the past I <a href="http://www.rodenas.org/blog/2006/11/07/object-oriented-case-tools-lost-opportunities-and-future-directions/">have worked</a> extensively with <acronym title="Computer Aided Software Engineering)">CASE</acronym> tools. Yes, I believe I&#8217;m one of these people that M. Fowler describes in his <a href="http://martinfowler.com/bliki/ModelDrivenSoftwareDevelopment.html">post</a> about MDSD:</p>
<blockquote><p>The MDSD vision evolved from the development of graphical design notations and CASE tools. Proponents of these techniques saw graphical design notations as a way to raise the abstraction level above programming languages &#8211; thus improving development productivity. While these techniques and tools never caught on too far, the basic core ideas still live on and there is an ongoing community of people still developing them.</p>
</blockquote>
<p>But also, it is because I&#8217;m used to working with very large repositories, where there are lots of relationships between models. If you work with lots of components but few relationships, you usually do not have problems working with local files (such as Eclipse does). VCSs are able to deal quite well large amount of files. But what happens when you have, for example, your entire transactional system modeled (> 30,000 components), with a very high index of reusability between models (lots of links), and each model can belong to a different owner (only the owner can modify it)? As Markus points out at the comments:</p>
<blockquote><p>Also, text files tend to be a bit hard to scale. Often the minimum you need is some kind of &#8220;cross-indexer&#8221; via a database so you can efficiently cross-ref, search, etc. In a &#8220;real repository&#8221; that&#8217;s easier.</p>
<p>Consider the Xtext case. What do you do once you have hundreds of Xtext resources? Each linking into each other. How do you efficiently load, unload, search, find-refs, etc? You need some kind of (in memory or persistent) index.</p>
</blockquote>
<p>Exactly. When you work with huge amount of data and links, you need to provide some kind of impact analysis or cross-reference functionalities, you must be able to do complex queries, you must version not only the components but also the relationships, and you must be able to link to other models without the need to download them locally. Yes, I know that there are some solutions out there that provide some of those facilities also for files, as text search engine libraries (<a href="http://lucene.apache.org/java/docs/">Apache Lucene</a>) and query languages (for example, <a href="http://www.w3.org/TR/xquery/">XQuery</a> for <acronym title="Extensible Markup Language">XML</acronym> or <a href="http://www.w3.org/TR/rdf-sparql-query/">SPARQL</a> for <acronym title="Resource Description Framework">RDF</acronym>). But IMHO all of these solutions, although they work very well with few components, are not as powerful as what you can get *for free* using relational databases.</p>
<p>But I must also say that my opinion has changed somewhat over the years, due to my experience working with repositories. The approach of working with databases also has some problems. One of them is that in order to work with the tool you always must be connected to the database, and, although this situation sounds silly, this may limit the productivity of some developers. With VCS, you only need to be connected while you perform the checkout of the component, but after that, you can work locally with it. Another pain point is that in relational databases, you must to create a fixed schema (no matter if you use a metamodel, you always must create it), and that could be a mess when you need to modify the data structure, since <acronym title="Relational Database Management System">RDBMS</acronym> doesn&#8217;t provide schema versioning facilities. Fortunately, some new approaches has appeared in the market in the last years, as <a href="http://www.rodenas.org/blog/2008/02/19/playing-with-couchdb/">schema-free</a> databases, that will help in this task. Another side effect is that if you want to preserve the integrity of the models and the relationships, you have to deal with locking mechanisms, so the scenario become worse, and usually, the system tends to be over-engineered. And finally, there are also some functionalities not provided by databases, as versioning, accountability (who, when and what) and in some cases traceability (why), so you must develop it by yourself (yay! we love to reinvent the wheel!). Almost all VCSs provide these facilities.</p>
<p>Let&#8217;s go back again to the original post. Markus talks about some conditions where repositories could fit well in this scenario:</p>
<blockquote><p>My point is that a repository is not per se a bad thing, provided the following criteria: (1) you store all your relevant stuff in it (2) it provides versioning facilities (3) supports diff/merge on a meaningful abstraction level.</p>
</blockquote>
<p>Ummm, I agree with almost everything, but I&#8217;ve some concerns:</p>
<ol>
<li>Not sure, if he talks about storing all of the data that belongs to a model in the repository, then I agree. But if he talks about storing the model and the code together, then I disagree. There are some scenarios where this is not convenient. For example, when you want to be platform independent (and I&#8217;m not talking about all the <acronym title="Model-Driven Architecture">MDA</acronym> stuff). The various parser/generator/interpret could run and store the code/binary on several platforms, and not always the same platform where you store the model.</li>
<li>I agree, versioning is an essential facility.</li>
<li>Diff/Merge works well with textual DSL&#8217;s, with a concrete syntax. But, although this is a great feature, is it mandatory? I have worked a long time without this feature and I assure you that you can survive without it. And what happens with graphical DSLs?</li>
</ol>
<p>Before concluding, I would also like to comment one of the latest projects where <a href="http://www.rodenas.org/blog/2007/02/10/behind-the-firewall-experiencies/">we applied</a> MDSD. At this project, we decided to use a <a href="http://www.oracle.com/technology/tech/xml/xmldb/index.html">Oracle XML DB</a> to store our models in XML (something like to what <a href="http://www.cfmu.eurocontrol.int/">Eurocontrol-CFMU</a> <a href="http://www.oracle.com/technology/oramag/oracle/06-jan/o16xml.html">have done</a> for their <acronym title="Unified Modeling Language">UML</acronym> models), but we added also some <a href="http://en.wikipedia.org/wiki/Metadata">metadata</a>. By storing the XML directly in the database, we avoid the need to decompose the XML into a relational schema, and allow developers to download the XML and work locally without the need to be connected to the database. We could use also all the <acronym title="Structured Query Language">SQL</acronym> query facilities, and for those situations where the performance could be a problem, then we use the metadata to store some relevant data and relationships. Oh, and this RDBMS provides us also with versioning facilities. At this moment, we don&#8217;t have enough data in the repository to tell you if this approach will be a success or not. Let&#8217;s see!</p>
<p>To sum up (or not!). I believe you should never reject the database approach (nor the VCS option). I can not give you a &#8220;Golden Rule&#8221;, but my advice is that if you are not going to have lots of relationships between models, then use the VCS approach. If not, then analyze first what a VCS approach could offer you, and if it doesn&#8217;t fit well with your requirements, then use the database approach. But please, be careful and don&#8217;t tend to design the metamodel too much complicated, or you could have lots of performance problems.</p>
<p>As the post is quite long, I will leave for another post my thoughts about textual vs graphical DSLs. In the meantime, what is your opinion? I would love to hear stories from other folks on what people are doing in their companies.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rodenas.org/blog/2008/08/07/repositories-for-models-vcs-or-databases/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>A comparison of version-control systems</title>
		<link>http://www.rodenas.org/blog/2007/05/13/a-comparison-of-version-control-systems/</link>
		<comments>http://www.rodenas.org/blog/2007/05/13/a-comparison-of-version-control-systems/#comments</comments>
		<pubDate>Sun, 13 May 2007 16:41:39 +0000</pubDate>
		<dc:creator>ferdy</dc:creator>
				<category><![CDATA[SCM]]></category>

		<guid isPermaLink="false">http://www.rodenas.org/blog/2007/05/13/a-comparison-of-version-control-systems/</guid>
		<description><![CDATA[TweetTweetIf you are interested in VCS, check the &#8220;Better SCM initiative&#8221; website. Version control systems (or Source Configuration Management systems) allow developers or authors to keep track of the history of their projects source code &#8211; to checkout older versions, maintain several branches, and merge results. CVS is the most commonly used revision control system [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://www.rodenas.org/blog/2007/05/13/a-comparison-of-version-control-systems/&via=ferdy&text=A comparison of version-control systems&related=:&lang=en&count=vertical" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://www.rodenas.org/blog/2007/05/13/a-comparison-of-version-control-systems/&via=ferdy&text=A comparison of version-control systems&related=:&lang=en&count=vertical" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><p>If you are interested in <a href="http://en.wikipedia.org/wiki/Version_control_system">VCS</a>, check the &#8220;<a href="http://better-scm.berlios.de/">Better SCM initiative</a>&#8221; website.</p>
<blockquote>
<p>Version control systems (or Source Configuration Management systems) allow developers or authors to keep track of the history of their projects source code &#8211; to checkout older versions, maintain several branches, and merge results. CVS is the most commonly used revision control system in the Open-Source world as of this writing. It works well and is relatively reliable but has many limitations. It does not do file renames or copies, send the files to the server, no atomicity of operations, and no good handling of binary files. Clearly it is showing its age.</p>
<p>To address this problem several alternatives emerged, some of which are either open-source or available to the community of open-source developers. The Better SCM project aims to empower them, to compare them, and criticize them, hopefully leading to each being a more complete and accessible replacement.</p>
</blockquote>
<p>They provide useful information about <a href="http://better-scm.berlios.de/alternatives/">available CVS alternatives</a> and a <a href="http://better-scm.berlios.de/comparison/comparison.html">comparision</a> between various VCS, on an item-by-item basis.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rodenas.org/blog/2007/05/13/a-comparison-of-version-control-systems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AccuRev ads parody</title>
		<link>http://www.rodenas.org/blog/2007/05/13/accurev-ads-parody/</link>
		<comments>http://www.rodenas.org/blog/2007/05/13/accurev-ads-parody/#comments</comments>
		<pubDate>Sun, 13 May 2007 16:04:43 +0000</pubDate>
		<dc:creator>ferdy</dc:creator>
				<category><![CDATA[Funny]]></category>
		<category><![CDATA[SCM]]></category>

		<guid isPermaLink="false">http://www.rodenas.org/blog/2007/05/13/accurev-ads-parody/</guid>
		<description><![CDATA[TweetTweetSome AccuRev&#8217;s ads comparing AccuRev SCM to ClearCase: Want more? Watch the full series here. (Via Source Control Managment)]]></description>
			<content:encoded><![CDATA[<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://www.rodenas.org/blog/2007/05/13/accurev-ads-parody/&via=ferdy&text=AccuRev ads parody&related=:&lang=en&count=vertical" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://www.rodenas.org/blog/2007/05/13/accurev-ads-parody/&via=ferdy&text=AccuRev ads parody&related=:&lang=en&count=vertical" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><p>Some AccuRev&#8217;s ads comparing <a href="http://www.accurev.com/accurev.html">AccuRev SCM</a> to <a href="http://www-306.ibm.com/software/awdtools/clearcase/">ClearCase</a>:<br />
<center><br />
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/msDuQoKqysw"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/msDuQoKqysw" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object><br />
</center></p>
<p>Want more? Watch the full series <a href="http://www.youtube.com/profile?user=AccuRev">here</a>.</p>
<p>(Via <a href="http://cleartool.blogspot.com/2007/05/parody-of-recent-ad-comparing.html">Source Control Managment</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rodenas.org/blog/2007/05/13/accurev-ads-parody/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

