<?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>TYPO3Development &#187; ontology</title>
	<atom:link href="http://blog.typoplanet.de/tag/ontology/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.typoplanet.de</link>
	<description>A blog for professional TYPO3 developers</description>
	<lastBuildDate>Mon, 28 Mar 2011 18:10:29 +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>Some thoughts on extension development</title>
		<link>http://blog.typoplanet.de/2009/03/03/some-thoughts-on-extension-development/</link>
		<comments>http://blog.typoplanet.de/2009/03/03/some-thoughts-on-extension-development/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 17:02:15 +0000</pubDate>
		<dc:creator>Jochen Rau</dc:creator>
				<category><![CDATA[Development Process]]></category>
		<category><![CDATA[DDD]]></category>
		<category><![CDATA[extension development]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[ontology]]></category>

		<guid isPermaLink="false">http://blog.typoplanet.de/?p=92</guid>
		<description><![CDATA[Todays development process of a TYPO3 extension can be characterized by "Database Driven Design". In this article I describe my personal vision of a more modern approach - and beyond.]]></description>
			<content:encoded><![CDATA[<p>Today&#8217;s development process of a TYPO3 extension comprises (usually) the following steps:</p>
<ol>
<li>collect clients&#8217; or personal needs</li>
<li>design the relational model (database design)</li>
<li>scaffold the extension using the kickstarter</li>
<li>add a lot of database queries template handling to the file _pi1, _pi2, _pi3 etc.</li>
<li>design the templates</li>
</ol>
<p>This ends up in an extension design which is hard to maintain &#8211; especially for larger projects. A more modern approach uses the Model View Controller Pattern.<span id="more-92"></span> One of the advantages of this pattern is to enable the developer to focus on the domain of the client (and thus the domain model of the extension). So, the MVC pattern is a prerequisite for Domain Driven Design. This leads to a slightly different development process:</p>
<ol>
<li>collect clients or personal needs</li>
<li>design the domain model (classes) translating the domain knowledge of the client into UML</li>
<li>scaffolding the extension using a kickstarter</li>
<li>adding the business logic to the domain model classes</li>
<li>design the templates</li>
</ol>
<p>What are the pros of this approach</p>
<ul>
<li>The developer and the client use a common language.</li>
<li>The domain model is more decoupled from the implementation architecture.</li>
<li>It&#8217;s clearly defined where the business logic resides (in the domain model classes).</li>
</ul>
<p>&#8230; and the cons</p>
<ul>
<li>It adds complexity to the extension.</li>
<li>It forces the developer to learn new programing paradigms, which might be difficult to schedule in the daily work.</li>
</ul>
<p>To be consequent we have to go one step further. The domain knowledge is captured in natural language. But natural language is much more expressive than object oriented software design in UML. As a consequence, there is a mismatch between the domain model expressed by the domain experts (the client) and the object oriented model expressed in UML.</p>
<p>If we want to keep all the information of the domain experts we have to define an ontology. To express the domain knowledge in an ontology, OWL seems to be a good solution to me, as it is a W3C standard and targets web applications. To edit ontologies I played around with Protégé.</p>
<p>In the end, we will have a process which can be named &#8220;Ontology Driven Extension Development Process&#8221;:</p>
<ol style="text-align: left; ">
<li>collect clients or personal needs</li>
<li>design the ontology using the same language as the client does</li>
<li>scaffolding the extension using a new ontology driven kickstarter</li>
<li>adding the business logic to the domain model classes</li>
<li>design the templates</li>
</ol>
<p>What are the pros of this approach</p>
<ul>
<li>The developer and the client use a common language.</li>
<li>The ontology based domain model is independent from the implementation and can be shared across different extensions with different purposes.</li>
</ul>
<p>&#8230; and the cons</p>
<ul>
<li>It adds complexity to the development processes.</li>
<li>It&#8217;s forces the developer to learn completely new paradigms an terms.</li>
</ul>
<p>I&#8217;m looking forward to your comments an appreciate any questions.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.typoplanet.de/2009/03/03/some-thoughts-on-extension-development/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

