<?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"
	>
<channel>
	<title>Comments on: Using variables.instance inside your components</title>
	<atom:link href="http://www.chapter31.com/2007/06/14/using-variablesinstance-inside-your-components/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chapter31.com/2007/06/14/using-variablesinstance-inside-your-components/</link>
	<description>development in a land far far away...</description>
	<pubDate>Wed, 15 Oct 2008 23:46:47 +0000</pubDate>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>By: chapter31 &#187; Blog Archive &#187; Coding standards, do you use them?</title>
		<link>http://www.chapter31.com/2007/06/14/using-variablesinstance-inside-your-components/#comment-64135</link>
		<dc:creator>chapter31 &#187; Blog Archive &#187; Coding standards, do you use them?</dc:creator>
		<pubDate>Sat, 02 Aug 2008 09:45:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.chapter31.com/2007/06/14/using-variablesinstance-inside-your-components/#comment-64135</guid>
		<description>[...] the variables scope) to the cfc unless you var scope them. This being the case a lot of people have global cfc variables inside a struct, often called something like variables.instance. This enables you to easily distinguish calls to [...]</description>
		<content:encoded><![CDATA[<p>[...] the variables scope) to the cfc unless you var scope them. This being the case a lot of people have global cfc variables inside a struct, often called something like variables.instance. This enables you to easily distinguish calls to [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Variables In Javascript</title>
		<link>http://www.chapter31.com/2007/06/14/using-variablesinstance-inside-your-components/#comment-59213</link>
		<dc:creator>Variables In Javascript</dc:creator>
		<pubDate>Tue, 08 Jul 2008 23:45:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.chapter31.com/2007/06/14/using-variablesinstance-inside-your-components/#comment-59213</guid>
		<description>anybody here know of a good site to find more info on variables in javascript? I\'ve got this site bookmarked and im gonna keep checking it out, but i still would like to find a site that covers variables in javascript a little more thoroughly..thanks</description>
		<content:encoded><![CDATA[<p>anybody here know of a good site to find more info on variables in javascript? I\&#8217;ve got this site bookmarked and im gonna keep checking it out, but i still would like to find a site that covers variables in javascript a little more thoroughly..thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter J. Farrell</title>
		<link>http://www.chapter31.com/2007/06/14/using-variablesinstance-inside-your-components/#comment-15416</link>
		<dc:creator>Peter J. Farrell</dc:creator>
		<pubDate>Mon, 23 Jul 2007 20:33:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.chapter31.com/2007/06/14/using-variablesinstance-inside-your-components/#comment-15416</guid>
		<description>I think that variables.instance is the defacto standard in the CF community.  The argument about "self" being shorter to type isn't a great argument since beans follow such a simple pattern that my tool like Rooibos can easily generation them for you.  Nobody should be hand typing beans any more.</description>
		<content:encoded><![CDATA[<p>I think that variables.instance is the defacto standard in the CF community.  The argument about &#8220;self&#8221; being shorter to type isn&#8217;t a great argument since beans follow such a simple pattern that my tool like Rooibos can easily generation them for you.  Nobody should be hand typing beans any more.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Sharman</title>
		<link>http://www.chapter31.com/2007/06/14/using-variablesinstance-inside-your-components/#comment-13380</link>
		<dc:creator>Michael Sharman</dc:creator>
		<pubDate>Sat, 23 Jun 2007 00:04:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.chapter31.com/2007/06/14/using-variablesinstance-inside-your-components/#comment-13380</guid>
		<description>@Adam

Yeah it's interesting, I was talking to a colleague the other day about something like that and I was thinking that some things in the community you could say are 'standards'. Naming a variables.instance could be one of those?

I mean, it doesn't really matter what you call it right? But if other developers are looking at your code and *most* people use variables.instance, does that put more pressure on you to use that defacto standard?</description>
		<content:encoded><![CDATA[<p>@Adam</p>
<p>Yeah it&#8217;s interesting, I was talking to a colleague the other day about something like that and I was thinking that some things in the community you could say are &#8217;standards&#8217;. Naming a variables.instance could be one of those?</p>
<p>I mean, it doesn&#8217;t really matter what you call it right? But if other developers are looking at your code and *most* people use variables.instance, does that put more pressure on you to use that defacto standard?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Ness</title>
		<link>http://www.chapter31.com/2007/06/14/using-variablesinstance-inside-your-components/#comment-13374</link>
		<dc:creator>Adam Ness</dc:creator>
		<pubDate>Fri, 22 Jun 2007 22:22:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.chapter31.com/2007/06/14/using-variablesinstance-inside-your-components/#comment-13374</guid>
		<description>I've been doing this for about the last year, but Instead of "instance" i'm using a variable named "self", i.e.



It's faster to type than instance.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been doing this for about the last year, but Instead of &#8220;instance&#8221; i&#8217;m using a variable named &#8220;self&#8221;, i.e.</p>
<p>It&#8217;s faster to type than instance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jim collins</title>
		<link>http://www.chapter31.com/2007/06/14/using-variablesinstance-inside-your-components/#comment-12928</link>
		<dc:creator>jim collins</dc:creator>
		<pubDate>Fri, 15 Jun 2007 15:39:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.chapter31.com/2007/06/14/using-variablesinstance-inside-your-components/#comment-12928</guid>
		<description>I'm not thrilled about instance as the structure name, I'd normally have say a widget bean and inside it have variables.widget = StructNew();</description>
		<content:encoded><![CDATA[<p>I&#8217;m not thrilled about instance as the structure name, I&#8217;d normally have say a widget bean and inside it have variables.widget = StructNew();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Bell</title>
		<link>http://www.chapter31.com/2007/06/14/using-variablesinstance-inside-your-components/#comment-12886</link>
		<dc:creator>Peter Bell</dc:creator>
		<pubDate>Thu, 14 Jun 2007 21:15:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.chapter31.com/2007/06/14/using-variablesinstance-inside-your-components/#comment-12886</guid>
		<description>Glad I'm not the only one doing this!
http://www.pbell.com/index.cfm/2007/6/10/Distinguishing-Properties-from-Methods</description>
		<content:encoded><![CDATA[<p>Glad I&#8217;m not the only one doing this!<br />
<a href="http://www.pbell.com/index.cfm/2007/6/10/Distinguishing-Properties-from-Methods" rel="nofollow">http://www.pbell.com/index.cfm/2007/6/10/Distinguishing-Properties-from-Methods</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Long</title>
		<link>http://www.chapter31.com/2007/06/14/using-variablesinstance-inside-your-components/#comment-12876</link>
		<dc:creator>Michael Long</dc:creator>
		<pubDate>Thu, 14 Jun 2007 17:58:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.chapter31.com/2007/06/14/using-variablesinstance-inside-your-components/#comment-12876</guid>
		<description>Personally, I'd only do this when:

1) I have no control over the names I might be adding to a component (as in a DTO), and want to avoid collisions.
2) I'm swapping entire sets of values (as in a DTO).
3) I'm caching the entire set of values.

Do it for a single object and the performance would be negligible. Do it as a matter of convenience for every component in the system, needed or not, and I suspect that all you're doing is adding the cost of creating a struct to the already high cost of creating a component.</description>
		<content:encoded><![CDATA[<p>Personally, I&#8217;d only do this when:</p>
<p>1) I have no control over the names I might be adding to a component (as in a DTO), and want to avoid collisions.<br />
2) I&#8217;m swapping entire sets of values (as in a DTO).<br />
3) I&#8217;m caching the entire set of values.</p>
<p>Do it for a single object and the performance would be negligible. Do it as a matter of convenience for every component in the system, needed or not, and I suspect that all you&#8217;re doing is adding the cost of creating a struct to the already high cost of creating a component.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Al Davidson</title>
		<link>http://www.chapter31.com/2007/06/14/using-variablesinstance-inside-your-components/#comment-12857</link>
		<dc:creator>Al Davidson</dc:creator>
		<pubDate>Thu, 14 Jun 2007 10:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.chapter31.com/2007/06/14/using-variablesinstance-inside-your-components/#comment-12857</guid>
		<description>Another benefit is that it makes it trivial to write a duplication/clone method, or the equivalent of a copy constructor.</description>
		<content:encoded><![CDATA[<p>Another benefit is that it makes it trivial to write a duplication/clone method, or the equivalent of a copy constructor.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
