<?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: Object Literals vs. Constructed Objects in JavaScript</title>
	<atom:link href="http://www.zebrakick.com/blog/object-literals-vs-constructed-objects-in-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zebrakick.com/blog/object-literals-vs-constructed-objects-in-javascript/</link>
	<description>Creative Awesome Web</description>
	<lastBuildDate>Tue, 27 Jul 2010 13:54:20 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Brendan Flemons</title>
		<link>http://www.zebrakick.com/blog/object-literals-vs-constructed-objects-in-javascript/comment-page-1/#comment-196</link>
		<dc:creator>Brendan Flemons</dc:creator>
		<pubDate>Fri, 25 Jun 2010 10:35:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.zebrakick.com/blog/?p=171#comment-196</guid>
		<description>hello, love your site, great vision</description>
		<content:encoded><![CDATA[<p>hello, love your site, great vision</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://www.zebrakick.com/blog/object-literals-vs-constructed-objects-in-javascript/comment-page-1/#comment-137</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Fri, 20 Nov 2009 09:17:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.zebrakick.com/blog/?p=171#comment-137</guid>
		<description>First off, thanks and I&#039;m glad you liked it.  It&#039;s always good to have friends looking over your shoulder to make sure that you don&#039;t pop off and spread misinformation.

1) Ya....I don&#039;t know who the hell John is.  Good catch.

2) I&#039;m not saying it is an out-right singleton, but only that it behaves like one since object assignment is by reference, and not by value.  Also &quot;static object&quot; is a common second name for object literals.

3) I don&#039;t believe there is such a thing, but I couldn&#039;t find any definitive source stating one way or the other.  Anonymous functions, yes, because you can create and execute a function in one statement without ever storing a reference to it.  But anonymous object? I&#039;m not so sure.  It may be anonymous in one scope, but eventually a reference to it is stored in a very un-anonymous variable; otherwise, it is useless.  If you look at it from a type perspective, all user defined objects are of type `object`, regardless if it is a literal or instantiated object.</description>
		<content:encoded><![CDATA[<p>First off, thanks and I&#8217;m glad you liked it.  It&#8217;s always good to have friends looking over your shoulder to make sure that you don&#8217;t pop off and spread misinformation.</p>
<p>1) Ya&#8230;.I don&#8217;t know who the hell John is.  Good catch.</p>
<p>2) I&#8217;m not saying it is an out-right singleton, but only that it behaves like one since object assignment is by reference, and not by value.  Also &#8220;static object&#8221; is a common second name for object literals.</p>
<p>3) I don&#8217;t believe there is such a thing, but I couldn&#8217;t find any definitive source stating one way or the other.  Anonymous functions, yes, because you can create and execute a function in one statement without ever storing a reference to it.  But anonymous object? I&#8217;m not so sure.  It may be anonymous in one scope, but eventually a reference to it is stored in a very un-anonymous variable; otherwise, it is useless.  If you look at it from a type perspective, all user defined objects are of type `object`, regardless if it is a literal or instantiated object.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://www.zebrakick.com/blog/object-literals-vs-constructed-objects-in-javascript/comment-page-1/#comment-129</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Mon, 16 Nov 2009 11:33:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.zebrakick.com/blog/?p=171#comment-129</guid>
		<description>Just a couple things:

1) I assume you mean Douglas Crockford, not John Crockford.

2) Also, I think you might be confusing static and global variables. A static variable only implies that it was allocated at compile-time, not that it is globally available. The same thing goes for calling the global variable a singleton, a singleton is a design pattern, a global variable is a variable that is available within all execution scopes.

3) Correct me if I&#039;m wrong, but I think the first class of objects you descrive are called anonymous objects, not static objects. This is because the value of the objects at creation time can be affected by the runtime stack.

Other than that, nice article. This should clear up the difference between the two types of objects for ALOT of people</description>
		<content:encoded><![CDATA[<p>Just a couple things:</p>
<p>1) I assume you mean Douglas Crockford, not John Crockford.</p>
<p>2) Also, I think you might be confusing static and global variables. A static variable only implies that it was allocated at compile-time, not that it is globally available. The same thing goes for calling the global variable a singleton, a singleton is a design pattern, a global variable is a variable that is available within all execution scopes.</p>
<p>3) Correct me if I&#8217;m wrong, but I think the first class of objects you descrive are called anonymous objects, not static objects. This is because the value of the objects at creation time can be affected by the runtime stack.</p>
<p>Other than that, nice article. This should clear up the difference between the two types of objects for ALOT of people</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://www.zebrakick.com/blog/object-literals-vs-constructed-objects-in-javascript/comment-page-1/#comment-123</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Fri, 13 Nov 2009 18:22:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.zebrakick.com/blog/?p=171#comment-123</guid>
		<description>Glad I could help.</description>
		<content:encoded><![CDATA[<p>Glad I could help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shawn</title>
		<link>http://www.zebrakick.com/blog/object-literals-vs-constructed-objects-in-javascript/comment-page-1/#comment-117</link>
		<dc:creator>Shawn</dc:creator>
		<pubDate>Wed, 11 Nov 2009 21:53:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.zebrakick.com/blog/?p=171#comment-117</guid>
		<description>This is exactly the information I&#039;ve been searching for.  Thanks for the excellent explanation.</description>
		<content:encoded><![CDATA[<p>This is exactly the information I&#8217;ve been searching for.  Thanks for the excellent explanation.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
