<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Code Documentation</title>
	<atom:link href="http://dispatchevent.org/calebjohnston/code-documentation/feed/" rel="self" type="application/rss+xml" />
	<link>http://dispatchevent.org/calebjohnston/code-documentation/</link>
	<description>Collective thoughts on the Flash Platform, iOS, Unity, and any other technology we use.</description>
	<lastBuildDate>Tue, 24 Jan 2012 12:18:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Caleb Johnston</title>
		<link>http://dispatchevent.org/calebjohnston/code-documentation/comment-page-1/#comment-121014</link>
		<dc:creator>Caleb Johnston</dc:creator>
		<pubDate>Fri, 25 Jul 2008 21:47:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.extends.eventdispatcher.org/?p=276#comment-121014</guid>
		<description>1. There is no &#039;Main Model&#039;. Each model class is usually only a collection of static constant values. However if the values must contain external data then they are variables instead. Those variables are then manually initialized when the external data has been loaded.
2. This can be done but currently, time will not permit!
3. All controllers are singletons that are very high-level in that they don&#039;t perform a lot of work other than processing and dispatching events. However, the only managers that are singletons are the AudioManager and the LinkManager. The managers handle more of the raw work. An example of this relationship is the following:
LoadController dispatches events to and process events from 3 LoadManagers. But LoadManagers actually perform the real loading of data and all decision making that is involved.

In terms of MVC design -both can be considered controllers but in terms of the architecture of the site, there is a difference in roles. The primary reason they&#039;re separated is so that I can easily re-use the managers for other projects. The controllers would be far less useful elsewhere.</description>
		<content:encoded><![CDATA[<p>1. There is no &#8216;Main Model&#8217;. Each model class is usually only a collection of static constant values. However if the values must contain external data then they are variables instead. Those variables are then manually initialized when the external data has been loaded.<br />
2. This can be done but currently, time will not permit!<br />
3. All controllers are singletons that are very high-level in that they don&#8217;t perform a lot of work other than processing and dispatching events. However, the only managers that are singletons are the AudioManager and the LinkManager. The managers handle more of the raw work. An example of this relationship is the following:<br />
LoadController dispatches events to and process events from 3 LoadManagers. But LoadManagers actually perform the real loading of data and all decision making that is involved.</p>
<p>In terms of MVC design -both can be considered controllers but in terms of the architecture of the site, there is a difference in roles. The primary reason they&#8217;re separated is so that I can easily re-use the managers for other projects. The controllers would be far less useful elsewhere.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hu</title>
		<link>http://dispatchevent.org/calebjohnston/code-documentation/comment-page-1/#comment-121004</link>
		<dc:creator>Hu</dc:creator>
		<pubDate>Fri, 25 Jul 2008 18:54:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.extends.eventdispatcher.org/?p=276#comment-121004</guid>
		<description>Hi Caleb, thank you so much for this post. It is one of the most helpful code posts that I have read. 

I recommend EnterpriseArchitect for UML purposes, if you are on a PC. The generation of UML is almost automatic and if you start up UML diagrams, it generates the AS files automatically, which saves some tedious and boring typing work.  

My question about your UML:
1. is there a Main Model that you keep track of all the data? where do the AudioModel, CopyModel, EnvironmentModel get their data from? XML files? I feel the structure of model is also key to a website.
2. Is there anyway you can list the public methods (especially getters and setters) under the classes? 
3. Is there a reason you separate &quot;Manager&quot; from &quot;Controller&quot;? What is the key difference of the two?

Good jobs.</description>
		<content:encoded><![CDATA[<p>Hi Caleb, thank you so much for this post. It is one of the most helpful code posts that I have read. </p>
<p>I recommend EnterpriseArchitect for UML purposes, if you are on a PC. The generation of UML is almost automatic and if you start up UML diagrams, it generates the AS files automatically, which saves some tedious and boring typing work.  </p>
<p>My question about your UML:<br />
1. is there a Main Model that you keep track of all the data? where do the AudioModel, CopyModel, EnvironmentModel get their data from? XML files? I feel the structure of model is also key to a website.<br />
2. Is there anyway you can list the public methods (especially getters and setters) under the classes?<br />
3. Is there a reason you separate &#8220;Manager&#8221; from &#8220;Controller&#8221;? What is the key difference of the two?</p>
<p>Good jobs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shaun</title>
		<link>http://dispatchevent.org/calebjohnston/code-documentation/comment-page-1/#comment-117885</link>
		<dc:creator>shaun</dc:creator>
		<pubDate>Thu, 05 Jun 2008 14:58:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.extends.eventdispatcher.org/?p=276#comment-117885</guid>
		<description>thanks for sharing your application structure - I find it much more useful to look at the big picture than read through specific code snippets. I wish more developers would share their UML.. application design is certainly more challenging than writing code! thanks again. s</description>
		<content:encoded><![CDATA[<p>thanks for sharing your application structure &#8211; I find it much more useful to look at the big picture than read through specific code snippets. I wish more developers would share their UML.. application design is certainly more challenging than writing code! thanks again. s</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dispatchEvent() / Flash Site Experience Profile</title>
		<link>http://dispatchevent.org/calebjohnston/code-documentation/comment-page-1/#comment-117842</link>
		<dc:creator>dispatchEvent() / Flash Site Experience Profile</dc:creator>
		<pubDate>Mon, 02 Jun 2008 05:21:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.extends.eventdispatcher.org/?p=276#comment-117842</guid>
		<description>[...] is essentially the second part to my last post. This time however, I&#8217;m concentrating on the user experience of the same campaign site [...]</description>
		<content:encoded><![CDATA[<p>[...] is essentially the second part to my last post. This time however, I&#8217;m concentrating on the user experience of the same campaign site [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paolo Iulita</title>
		<link>http://dispatchevent.org/calebjohnston/code-documentation/comment-page-1/#comment-117746</link>
		<dc:creator>Paolo Iulita</dc:creator>
		<pubDate>Tue, 27 May 2008 20:35:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.extends.eventdispatcher.org/?p=276#comment-117746</guid>
		<description>and you gained it! short but complete.
I&#039;ll dive on Absract Classes Issues and workarounds :)
About singleton, I asked just for being secure, since often UML diagram reports singleton classes.

Good job and thanks again!</description>
		<content:encoded><![CDATA[<p>and you gained it! short but complete.<br />
I&#8217;ll dive on Absract Classes Issues and workarounds :)<br />
About singleton, I asked just for being secure, since often UML diagram reports singleton classes.</p>
<p>Good job and thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Caleb Johnston</title>
		<link>http://dispatchevent.org/calebjohnston/code-documentation/comment-page-1/#comment-117737</link>
		<dc:creator>Caleb Johnston</dc:creator>
		<pubDate>Mon, 26 May 2008 17:38:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.extends.eventdispatcher.org/?p=276#comment-117737</guid>
		<description>Thanks for writing Paolo. I will try and keep my response short but complete.
1) Actionscript doesn&#039;t formally support abstract classes. Mims has provided a work-around example for building your own abstract class functionality. You can read that post here: http://blog.extends.eventdispatcher.org/mims/abstract-classes-in-as3/
However its my personal preference to use the existing language features as they are unless I truly need the additional organizational feature of something thats not native. Again this is my preference. Also, for my purposes there is no default behavior needed for any of my view classes other than what is provided in the base MovieClip and Sprite classes. So I think an abstract class is a bit unnecessary.
2) Yes. However, they interact with other classes almost exclusively through event listeners. Although in the case of the NavigationController, some listeners are added like so: NavigationController.getInstance().addEventListener(...);

Perhaps I can amend the diagram to show which classes are singletons. Thanks again for your feedback!</description>
		<content:encoded><![CDATA[<p>Thanks for writing Paolo. I will try and keep my response short but complete.<br />
1) Actionscript doesn&#8217;t formally support abstract classes. Mims has provided a work-around example for building your own abstract class functionality. You can read that post here: <a href="http://blog.extends.eventdispatcher.org/mims/abstract-classes-in-as3/" rel="nofollow">http://blog.extends.eventdispatcher.org/mims/abstract-classes-in-as3/</a><br />
However its my personal preference to use the existing language features as they are unless I truly need the additional organizational feature of something thats not native. Again this is my preference. Also, for my purposes there is no default behavior needed for any of my view classes other than what is provided in the base MovieClip and Sprite classes. So I think an abstract class is a bit unnecessary.<br />
2) Yes. However, they interact with other classes almost exclusively through event listeners. Although in the case of the NavigationController, some listeners are added like so: NavigationController.getInstance().addEventListener(&#8230;);</p>
<p>Perhaps I can amend the diagram to show which classes are singletons. Thanks again for your feedback!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paolo Iulita</title>
		<link>http://dispatchevent.org/calebjohnston/code-documentation/comment-page-1/#comment-117730</link>
		<dc:creator>Paolo Iulita</dc:creator>
		<pubDate>Mon, 26 May 2008 08:28:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.extends.eventdispatcher.org/?p=276#comment-117730</guid>
		<description>hey man that&#039;s nice! a cool diagram to study in order to see how different people approaches different type of solutions.

I have only two questions:

1) why haven&#039;t you created an AbstractView class and then extended it for all of your view classes?

2) are the controller classes singelton?

thanks and again congratulations for sharing this with us.

Paolo</description>
		<content:encoded><![CDATA[<p>hey man that&#8217;s nice! a cool diagram to study in order to see how different people approaches different type of solutions.</p>
<p>I have only two questions:</p>
<p>1) why haven&#8217;t you created an AbstractView class and then extended it for all of your view classes?</p>
<p>2) are the controller classes singelton?</p>
<p>thanks and again congratulations for sharing this with us.</p>
<p>Paolo</p>
]]></content:encoded>
	</item>
</channel>
</rss>

