<?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: Managing state</title>
	<atom:link href="http://www.71squared.com/2009/05/managing-state/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.71squared.com/2009/05/managing-state/</link>
	<description>iPhone Game Development - Web Development</description>
	<lastBuildDate>Sat, 04 Feb 2012 20:13:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: mike</title>
		<link>http://www.71squared.com/2009/05/managing-state/comment-page-1/#comment-576</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Fri, 15 May 2009 18:34:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=514#comment-576</guid>
		<description>I&#039;m just encoding a tutorial on creating a Singleton class to manage state and it will then be posted.

Mike</description>
		<content:encoded><![CDATA[<p>I&#8217;m just encoding a tutorial on creating a Singleton class to manage state and it will then be posted.</p>
<p>Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://www.71squared.com/2009/05/managing-state/comment-page-1/#comment-568</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Fri, 15 May 2009 12:59:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=514#comment-568</guid>
		<description>Hi RoberRM, you are right, there is nothing stopping you only implementing a single method which takes all the possible parameters at once.  I&#039;m not sure you would even be able to measure the speed boost by doing it as it would be very small :o)

This is more a personal preference I suppose.  The extra method signatures are there for convenience and I think it also makes code which uses that class easier to read.  Rather than having large method calls which contain lots of unused default settings all the time, you can just call the method with a signature that contains the important settings you do want to change.  That&#039;s the only reason I&#039;ve create some extra methods in classes such as Image really :o)

Mike</description>
		<content:encoded><![CDATA[<p>Hi RoberRM, you are right, there is nothing stopping you only implementing a single method which takes all the possible parameters at once.  I&#8217;m not sure you would even be able to measure the speed boost by doing it as it would be very small :o)</p>
<p>This is more a personal preference I suppose.  The extra method signatures are there for convenience and I think it also makes code which uses that class easier to read.  Rather than having large method calls which contain lots of unused default settings all the time, you can just call the method with a signature that contains the important settings you do want to change.  That&#8217;s the only reason I&#8217;ve create some extra methods in classes such as Image really :o)</p>
<p>Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RoberRM</title>
		<link>http://www.71squared.com/2009/05/managing-state/comment-page-1/#comment-565</link>
		<dc:creator>RoberRM</dc:creator>
		<pubDate>Fri, 15 May 2009 11:41:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=514#comment-565</guid>
		<description>Hello again, Mike:

One quick question (that I don&#039;t know where to post, so I post it here because it&#039;s performance related): in some cases we are creating a function that calls to another function and this one to another function (for example, [h doThis] calls to [h doThisWith:1] which, in return, calls [h doThisWith:1 and:1]. Wouldn&#039;t it be better to only implement the last method and whenever you need to use [h doThis] use [h doThisWith:1 and:1] instead?

My guess is that the improvement is too little to notice, but I don&#039;t see the harm in doing this and you can gain a small speed boost, can&#039;t you?</description>
		<content:encoded><![CDATA[<p>Hello again, Mike:</p>
<p>One quick question (that I don&#8217;t know where to post, so I post it here because it&#8217;s performance related): in some cases we are creating a function that calls to another function and this one to another function (for example, [h doThis] calls to [h doThisWith:1] which, in return, calls [h doThisWith:1 and:1]. Wouldn&#8217;t it be better to only implement the last method and whenever you need to use [h doThis] use [h doThisWith:1 and:1] instead?</p>
<p>My guess is that the improvement is too little to notice, but I don&#8217;t see the harm in doing this and you can gain a small speed boost, can&#8217;t you?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://www.71squared.com/2009/05/managing-state/comment-page-1/#comment-561</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Fri, 15 May 2009 08:42:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.71squared.co.uk/?p=514#comment-561</guid>
		<description>Got my singleton class instance working now so I can track state between classes easily.  I&#039;ll be posting a small tutorial on this soon :o)

Mike</description>
		<content:encoded><![CDATA[<p>Got my singleton class instance working now so I can track state between classes easily.  I&#8217;ll be posting a small tutorial on this soon :o)</p>
<p>Mike</p>
]]></content:encoded>
	</item>
</channel>
</rss>

