<?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: Safely referencing objects in javascript (understanding null and undefined)</title>
	<atom:link href="http://blog.stchur.com/2006/07/08/safely-referencing-objects-in-javascript-understanding-null-and-undefined/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.stchur.com/2006/07/08/safely-referencing-objects-in-javascript-understanding-null-and-undefined/</link>
	<description>If you don&#039;t expect too much from me, you might not be let down.</description>
	<lastBuildDate>Thu, 26 Jan 2012 08:23:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Stephen Stchur</title>
		<link>http://blog.stchur.com/2006/07/08/safely-referencing-objects-in-javascript-understanding-null-and-undefined/comment-page-1/#comment-12233</link>
		<dc:creator>Stephen Stchur</dc:creator>
		<pubDate>Tue, 07 Apr 2009 23:17:48 +0000</pubDate>
		<guid isPermaLink="false">http://stchur.com/blog2/2006/07/08/safely-referencing-objects-in-javascript-understanding-null-and-undefined/#comment-12233</guid>
		<description>@Pieter:

Thanks for your comments.  I started the blog just as a way to keep a programming reference for myself and the things I&#039;ve learned, and also as a way to share what I&#039;ve learned with others.</description>
		<content:encoded><![CDATA[<p>@Pieter:</p>
<p>Thanks for your comments.  I started the blog just as a way to keep a programming reference for myself and the things I&#039;ve learned, and also as a way to share what I&#039;ve learned with others.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PiterKokoniz</title>
		<link>http://blog.stchur.com/2006/07/08/safely-referencing-objects-in-javascript-understanding-null-and-undefined/comment-page-1/#comment-12231</link>
		<dc:creator>PiterKokoniz</dc:creator>
		<pubDate>Tue, 07 Apr 2009 23:02:04 +0000</pubDate>
		<guid isPermaLink="false">http://stchur.com/blog2/2006/07/08/safely-referencing-objects-in-javascript-understanding-null-and-undefined/#comment-12231</guid>
		<description>Hello ! ;)
My name is Piter Kokoniz. Just want to tell, that your posts are really interesting
And want to ask you: what was the reasson for you to start this blog?
Sorry for my bad english:)
Tnx!
Piter Kokoniz, from Latvia</description>
		<content:encoded><![CDATA[<p>Hello ! <img src='http://blog.stchur.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> <br />
My name is Piter Kokoniz. Just want to tell, that your posts are really interesting<br />
And want to ask you: what was the reasson for you to start this blog?<br />
Sorry for my bad english:)<br />
Tnx!<br />
Piter Kokoniz, from Latvia</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RaiulBaztepo</title>
		<link>http://blog.stchur.com/2006/07/08/safely-referencing-objects-in-javascript-understanding-null-and-undefined/comment-page-1/#comment-11822</link>
		<dc:creator>RaiulBaztepo</dc:creator>
		<pubDate>Sat, 28 Mar 2009 22:04:10 +0000</pubDate>
		<guid isPermaLink="false">http://stchur.com/blog2/2006/07/08/safely-referencing-objects-in-javascript-understanding-null-and-undefined/#comment-11822</guid>
		<description>Hello!
Very Interesting post! Thank you for such interesting resource! 
PS: Sorry for my bad english, I&#039;v just started to learn this language ;)
See you! 
Your, Raiul Baztepo</description>
		<content:encoded><![CDATA[<p>Hello!<br />
Very Interesting post! Thank you for such interesting resource!<br />
PS: Sorry for my bad english, I&#039;v just started to learn this language <img src='http://blog.stchur.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> <br />
See you!<br />
Your, Raiul Baztepo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sstchur</title>
		<link>http://blog.stchur.com/2006/07/08/safely-referencing-objects-in-javascript-understanding-null-and-undefined/comment-page-1/#comment-1219</link>
		<dc:creator>sstchur</dc:creator>
		<pubDate>Wed, 09 Apr 2008 17:41:29 +0000</pubDate>
		<guid isPermaLink="false">http://stchur.com/blog2/2006/07/08/safely-referencing-objects-in-javascript-understanding-null-and-undefined/#comment-1219</guid>
		<description>Till,

&lt;p&gt;Granted, the concept has its proper place, and the scenario you point to makes sense.  My point is just that if you don&#039;t know what properties/methods exist on an object, and you &lt;em&gt;constantly&lt;/em&gt; find yourself &quot;guessing&quot; or &quot;testing the waters&quot; by using typeof to determine if a method or property exists, you might want to rethink the design a tad.  In my experience, when programming like that is overused, it leads to unwieldy and difficult to maintain code.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Till,</p>
<p>Granted, the concept has its proper place, and the scenario you point to makes sense.  My point is just that if you don&#039;t know what properties/methods exist on an object, and you <em>constantly</em> find yourself &#034;guessing&#034; or &#034;testing the waters&#034; by using typeof to determine if a method or property exists, you might want to rethink the design a tad.  In my experience, when programming like that is overused, it leads to unwieldy and difficult to maintain code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Till</title>
		<link>http://blog.stchur.com/2006/07/08/safely-referencing-objects-in-javascript-understanding-null-and-undefined/comment-page-1/#comment-1211</link>
		<dc:creator>Till</dc:creator>
		<pubDate>Mon, 07 Apr 2008 20:06:20 +0000</pubDate>
		<guid isPermaLink="false">http://stchur.com/blog2/2006/07/08/safely-referencing-objects-in-javascript-understanding-null-and-undefined/#comment-1211</guid>
		<description>Nice post.

One remark to your statements &quot;[..] frequently using the typeof operator exclusively to check for the existence of a variable [..] is probably a sign of bad program design&quot; and &quot;[indicates] that your objects [..] are too tightly coupled&quot;:

I don&#039;t agree here, because I suggest using this check as good practice especially in loosley coupled objects to verify pre-conditions. For instance in setter methods with variant parameters this makes very much sense.</description>
		<content:encoded><![CDATA[<p>Nice post.</p>
<p>One remark to your statements &#034;[..] frequently using the typeof operator exclusively to check for the existence of a variable [..] is probably a sign of bad program design&#034; and &#034;[indicates] that your objects [..] are too tightly coupled&#034;:</p>
<p>I don&#039;t agree here, because I suggest using this check as good practice especially in loosley coupled objects to verify pre-conditions. For instance in setter methods with variant parameters this makes very much sense.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: michhes</title>
		<link>http://blog.stchur.com/2006/07/08/safely-referencing-objects-in-javascript-understanding-null-and-undefined/comment-page-1/#comment-8</link>
		<dc:creator>michhes</dc:creator>
		<pubDate>Sun, 11 Mar 2007 07:15:03 +0000</pubDate>
		<guid isPermaLink="false">http://stchur.com/blog2/2006/07/08/safely-referencing-objects-in-javascript-understanding-null-and-undefined/#comment-8</guid>
		<description>Brilliant tutorial, mate! I&#039;m finally working with javascript again for the first time in ten years since hacking around as a teenager; it&#039;s the accurate, well-written posts like this one that are filling in so many gaps for me.</description>
		<content:encoded><![CDATA[<p>Brilliant tutorial, mate! I&#039;m finally working with javascript again for the first time in ten years since hacking around as a teenager; it&#039;s the accurate, well-written posts like this one that are filling in so many gaps for me.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

