<?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>Adventures in Development</title>
	<atom:link href="http://www.aaronmorris.ca/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.aaronmorris.ca</link>
	<description>Aaron&#039;s Totally Eexcellent Adventure!</description>
	<lastBuildDate>Sat, 17 Sep 2011 20:12:16 +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>How to Get the Most From Your Animator</title>
		<link>http://www.aaronmorris.ca/2010/10/how-to-get-the-most-from-your-animator/</link>
		<comments>http://www.aaronmorris.ca/2010/10/how-to-get-the-most-from-your-animator/#comments</comments>
		<pubDate>Wed, 27 Oct 2010 03:18:54 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[animators]]></category>
		<category><![CDATA[creative directors]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[producers]]></category>
		<category><![CDATA[project management]]></category>
		<category><![CDATA[timeline]]></category>

		<guid isPermaLink="false">http://www.aaronmorris.ca/?p=11</guid>
		<description><![CDATA[Although not a post on my own blog I recently wrote something for Jam3 (My employer). The article is all about how to effectively work with animators. Specifically, how to work with animators creating content for use in Flash websites. You can check it out here: labs.jam3media.com]]></description>
			<content:encoded><![CDATA[<p>Although not a post on my own blog I recently wrote something for <a href="http://www.jam3media.com">Jam3</a> (My employer). The article is all about how to effectively work with animators. Specifically, how to work with animators creating content for use in Flash websites. </p>
<p>You can check it out here:  <a href="http://labs.jam3.ca/2010/10/working-with-animators/">labs.jam3media.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.aaronmorris.ca/2010/10/how-to-get-the-most-from-your-animator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Polymorphimism, AKA one of the things that makes OOP awesome.</title>
		<link>http://www.aaronmorris.ca/2010/04/polymorphimism-aka-one-of-the-things-that-makes-oop-awesome/</link>
		<comments>http://www.aaronmorris.ca/2010/04/polymorphimism-aka-one-of-the-things-that-makes-oop-awesome/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 02:51:22 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Stuff]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[object-oriented]]></category>
		<category><![CDATA[oop]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.aaronmorris.ca/?p=9</guid>
		<description><![CDATA[I&#8217;ve noticed that while polymorphimism a super useful concept i&#8217;ve noticed a lot of programmers don&#8217;t really use it when they are just starting out with OOP.  Even those who are experienced with OOP can sometimes forget to use it.  It can be a bit difficult to wrap your head around it at first. So [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve noticed that while polymorphimism a super useful concept i&#8217;ve noticed a lot of programmers don&#8217;t really use it when they are just starting out with OOP.  Even those who are experienced with OOP can sometimes forget to use it.  It can be a bit difficult to wrap your head around it at first. So what is polymorphimism? I&#8217;m glad you asked. <a href="http://en.wikipedia.org/wiki/Type_polymorphism">Wikipedia says it is a programming language feature that allows values of different data types to be handled using a uniform interface.</a> The uniform interface is the bit that&#8217;s interesting. Its all about using the same code to achieve different results based on the data that you&#8217;re using.</p>
<p>Lets look at some really really simple example of some semi-psuedo ActionScript that doesn&#8217;t use polymorphism:</p>
<p><code><br />
function speak(animalType:String){<br />
switch(animalType){<br />
case "dog":<br />
woof();<br />
break;<br />
case "cat":<br />
meow();<br />
break;<br />
case "pig":<br />
oink();<br />
break;<br />
}<br />
}</code></p>
<p>trace( speak(&#8220;cat&#8221;))    //meow</p>
<p>This is pretty long and ugly just to get an animal to make noise.  Now, lets do this same thing using polymorphism<code>:<br />
function speak(animal:Animal){<br />
animal.speak();<br />
}<br />
trace(speak(cat))  //meow<span id="more-9"></span><br />
</code></p>
<p>This is way shorter! So what did we do here? First off in the original example we passed the speak function a string id to an animal and then the switch decides what that animal does when it talks. In the second one, we simply passed an animal type to our speak function..and it just called its speak function.</p>
<p>Basically,  All three of the animals implement an animal interface. This means they share one or more methods in common.  To keep our animal metaphor going, all three animals speak, eat, poop.  But they all eat different things!  They say different things! However, if you had a real dog or cat and had trained it to your commands.. you would say &#8220;sit!&#8221; and expect it to sit. You wouldn&#8217;t explain to it how to sit. The cat or dog just knows it. With polymorphism its the same thing. You tell the cat to speak and it just does it. They all have the speak() method but each animal implements it differently.</p>
<p>Another use of polymorphimism would be different sections of a website. Each section could implement an a section interface with animateOut and AnimateIn calls but home section could animate in one way and the contact section another. The code calling the methods doesn&#8217;t care what they do as long as the object does something when its told to.  This in its heart is polymorphism.  At its simplest form its a way to achieve different results using the same code.  This means shorter, clearer code that can be easily modified. you don&#8217;t have to update some crazy switch statement evertime you add a new animal. You just make sure the new animal implements the interface and everything else will magically work.</p>
<p>Hopefully, you&#8217;ve learned something here and in your next project you&#8217;ll plan a little ahead and architect your project to better use polymorphism and to ultimately write cleaner/better code.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aaronmorris.ca/2010/04/polymorphimism-aka-one-of-the-things-that-makes-oop-awesome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CircleClock!</title>
		<link>http://www.aaronmorris.ca/2010/04/circleclock/</link>
		<comments>http://www.aaronmorris.ca/2010/04/circleclock/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 01:04:37 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Blackberry]]></category>

		<guid isPermaLink="false">http://www.aaronmorris.ca/?p=4</guid>
		<description><![CDATA[A little while ago I noticed one of the designers in my office had a cool screen saver. It was some multicoloured concentric circles that were apparently supposed to be a  clock.  While a clock is generally used for telling time, these circles were about as useless as a sundial at night. However, they did [...]]]></description>
			<content:encoded><![CDATA[<p>A little while ago I noticed one of the designers in my office had a cool screen saver. It was some multicoloured concentric circles that were apparently supposed to be a  clock.  While a clock is generally used for telling time, these circles were about as useless as a sundial at night. However, they did look pretty cool so I thought to myself &#8220;this would be a good app to get back into some Blackberry app development!&#8221; A few hours of coding and a few hours of picking just the right colours (thanks Shawna) I came up with&#8230;&#8230;&#8230;&#8230;wait for it&#8230;.. <em>CircleClock</em>!  Great name&#8230;i know.</p>
<div id="attachment_5" class="wp-caption alignleft" style="width: 226px"><a href="http://www.aaronmorris.ca/wp-content/uploads/2010/04/9550-05.png"><img class="size-full wp-image-5 " title="9550-05" src="http://www.aaronmorris.ca/wp-content/uploads/2010/04/9550-05.png" alt="CircleClock" width="216" height="288" /></a><p class="wp-caption-text">Screen shot of CircleClock in action</p></div>
<p>Its pretty simple.. The 4 circles represent different measurements of  time.  The innermost circle is showing tenths of a second, the next  seconds, then minutes and hours. Again, almost impossible to tell what  time it is, but cool looking nonetheless.<span id="more-4"></span></p>
<p>The code for this is actually pretty simple. The hardest part was actually getting the time in a format that i could parse easily.   For this I had to checking the current time of my phone and then giving my Date object that time.</p>
<pre>Date date = new Date();
Calendar cal = Calendar.getInstance();
date.setTime(System.currentTimeMillis());
cal.setTime(date);</pre>
<p>Now that I have my calendar object up to date with the correct time i&#8217;m able to tell each of the clock &#8220;hands&#8221; what time they should display.</p>
<pre>Hand milli;   
Hand seconds;
Hand minutes;
Hand hours;
milli.setValue(cal.get(Calendar.MILLISECOND)/100, 10);
seconds.setValue(cal.get(Calendar.SECOND), 60);
minutes.setValue(cal.get(Calendar.MINUTE), 60);
hours.setValue(cal.get(Calendar.HOUR_OF_DAY), 24);</pre>
<p>The first value that gets passed into each Hand  is value while the second is the total number of either seconds in a minute, minutes in an hour or hours in a day. The clock hands just show what percentage of the total they are at. I&#8217;m pretty sure this isn&#8217;t the best way to do something like this but it works quite well.  This seemed to be the only way that i could easily parse the time into something manageable. There are other methods for generating nicely formatted strings but they aren&#8217;t good for extracting the values for  milliseconds, seconds or minutes.</p>
<p>You can download CircleClock for your Blackberry Storm <a title="CircleClock" href="http://www.aaronmorris.ca/downloads/CircleClock.jad">here</a>. Requires OS 5.0.  Actually&#8230;it might work on any phone, and while I used a 5.0 SDK I don&#8217;t know if I actually used anything that wouldn&#8217;t work on something using 4.0. I haven&#8217;t tested it on anything other than my storm 9530. In any case  use completely at your own risk even on the recommended hardware/software. Its probably full of bugs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aaronmorris.ca/2010/04/circleclock/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Welcome to Aaron&#8217;s Awesome Blog</title>
		<link>http://www.aaronmorris.ca/2010/04/hello-world/</link>
		<comments>http://www.aaronmorris.ca/2010/04/hello-world/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 00:10:17 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Stuff]]></category>

		<guid isPermaLink="false">http://www.aaronmorris.ca/?p=1</guid>
		<description><![CDATA[This is my Blog.  I am Aaron. I am Awesome.  I make websites.  I use Flash. Sometimes I use PHP, javascript or HTML. I&#8217;m planning on using this space to talk about the various projects i&#8217;m working on. Show new stuff that i&#8217;ve learned, post some projects&#8230; get my name out there. I&#8217;ve recently begun [...]]]></description>
			<content:encoded><![CDATA[<p>This is my Blog.  I am Aaron. I am Awesome.  I make websites.  I use Flash. Sometimes I use PHP, javascript or HTML.</p>
<p>I&#8217;m planning on using this space to talk about the various projects i&#8217;m working on. Show new stuff that i&#8217;ve learned, post some projects&#8230; get my name out there.</p>
<p>I&#8217;ve recently begun working with Java and blackberry application development. Hope to show some of that off here too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aaronmorris.ca/2010/04/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

