<?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: DOM scripting review</title>
	<atom:link href="http://www.maratz.com/blog/archives/2006/01/28/dom-scripting-review/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.maratz.com/blog/archives/2006/01/28/dom-scripting-review/</link>
	<description>Hypertext rulez™</description>
	<lastBuildDate>Wed, 23 Mar 2011 22:34:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Gregory McCoy</title>
		<link>http://www.maratz.com/blog/archives/2006/01/28/dom-scripting-review/#comment-1827</link>
		<dc:creator>Gregory McCoy</dc:creator>
		<pubDate>Mon, 13 Feb 2006 17:45:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2006/01/28/dom-scripting-review/#comment-1827</guid>
		<description>Marko, Justin,

There is balance and compromise in everything.  When we are looking at web applications the key is performance.  The more complex the code, additional flag comparisons, etc., the longer it will take to download and, later, execute.  Having programmed at the operating system level, I can&#039;t count the number of times I pushed return instructions onto the stack then executed them just to save nanoseconds here and there.

Certainly, it&#039;s a stretch jumping from operating system code to DOM Scripting code but there is definite commonality, i.e., efficiency of execution.

In terms of style and best practices, I agree with you re: multiple exits.  In terms of efficiency, IMHO, one must selectively bend the &quot;style and best practices&quot; paridigm, as appropriate.

I own a copy of Jeremy&#039;s book and am working feverishly to master the concepts.  Hopefully, one day, I will be able to create web sites as impressive as Jeremy&#039;s personal web site, adactio.com.</description>
		<content:encoded><![CDATA[<p>Marko, Justin,</p>
<p>There is balance and compromise in everything.  When we are looking at web applications the key is performance.  The more complex the code, additional flag comparisons, etc., the longer it will take to download and, later, execute.  Having programmed at the operating system level, I can&#8217;t count the number of times I pushed return instructions onto the stack then executed them just to save nanoseconds here and there.</p>
<p>Certainly, it&#8217;s a stretch jumping from operating system code to DOM Scripting code but there is definite commonality, i.e., efficiency of execution.</p>
<p>In terms of style and best practices, I agree with you re: multiple exits.  In terms of efficiency, IMHO, one must selectively bend the &#8220;style and best practices&#8221; paridigm, as appropriate.</p>
<p>I own a copy of Jeremy&#8217;s book and am working feverishly to master the concepts.  Hopefully, one day, I will be able to create web sites as impressive as Jeremy&#8217;s personal web site, adactio.com.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marko</title>
		<link>http://www.maratz.com/blog/archives/2006/01/28/dom-scripting-review/#comment-1784</link>
		<dc:creator>marko</dc:creator>
		<pubDate>Mon, 30 Jan 2006 19:43:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2006/01/28/dom-scripting-review/#comment-1784</guid>
		<description>Never mind the &#8216;hijack&#8217;, thanks for your remark.</description>
		<content:encoded><![CDATA[<p>Never mind the &#8216;hijack&#8217;, thanks for your remark.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin Perkins</title>
		<link>http://www.maratz.com/blog/archives/2006/01/28/dom-scripting-review/#comment-1782</link>
		<dc:creator>Justin Perkins</dc:creator>
		<pubDate>Mon, 30 Jan 2006 19:11:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2006/01/28/dom-scripting-review/#comment-1782</guid>
		<description>Sure he does explain his reasoning, by saying (I&#039;m paraphrasing) &quot;Multiple exits should not be used unless they are at the top of the function&quot;. Then later in the book he goes on to say &quot;Multiple exits should be used at the top of the function, except when they need to be somewhere else, like the middle of the function&quot;.

I&#039;m sorry, but that is just poor practices to recommend to anybody, especially a newbie to Javascript. This only perpetuates the problem.

I don&#039;t mean to hijack this post and I considered not posting this comment. I could probably go on and on, but I&#039;ll stop here :)</description>
		<content:encoded><![CDATA[<p>Sure he does explain his reasoning, by saying (I&#8217;m paraphrasing) &#8220;Multiple exits should not be used unless they are at the top of the function&#8221;. Then later in the book he goes on to say &#8220;Multiple exits should be used at the top of the function, except when they need to be somewhere else, like the middle of the function&#8221;.</p>
<p>I&#8217;m sorry, but that is just poor practices to recommend to anybody, especially a newbie to Javascript. This only perpetuates the problem.</p>
<p>I don&#8217;t mean to hijack this post and I considered not posting this comment. I could probably go on and on, but I&#8217;ll stop here :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marko</title>
		<link>http://www.maratz.com/blog/archives/2006/01/28/dom-scripting-review/#comment-1780</link>
		<dc:creator>marko</dc:creator>
		<pubDate>Mon, 30 Jan 2006 18:20:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2006/01/28/dom-scripting-review/#comment-1780</guid>
		<description>I agree about the multiple exits, but he also explains a difference between traditional conventions and this approach.

I feel that, from the point of a JavaScript newbie, this way is much more readable and understandable, even though, you&#8217;re right &#8211; that shouldn&#8217;t be common practice and can eventually result in bad programming habits.</description>
		<content:encoded><![CDATA[<p>I agree about the multiple exits, but he also explains a difference between traditional conventions and this approach.</p>
<p>I feel that, from the point of a JavaScript newbie, this way is much more readable and understandable, even though, you&#8217;re right &#8211; that shouldn&#8217;t be common practice and can eventually result in bad programming habits.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin Perkins</title>
		<link>http://www.maratz.com/blog/archives/2006/01/28/dom-scripting-review/#comment-1778</link>
		<dc:creator>Justin Perkins</dc:creator>
		<pubDate>Mon, 30 Jan 2006 16:25:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2006/01/28/dom-scripting-review/#comment-1778</guid>
		<description>I have a big hang-up about using multiple exit statements (returns) inside functions. That&#039;s my biggest complaint, although there are others.

Jeremy argues that they (mutlitple exit points) aren&#039;t exactly a bad thing in the book, but I find it difficult to see his logic.</description>
		<content:encoded><![CDATA[<p>I have a big hang-up about using multiple exit statements (returns) inside functions. That&#8217;s my biggest complaint, although there are others.</p>
<p>Jeremy argues that they (mutlitple exit points) aren&#8217;t exactly a bad thing in the book, but I find it difficult to see his logic.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marko</title>
		<link>http://www.maratz.com/blog/archives/2006/01/28/dom-scripting-review/#comment-1776</link>
		<dc:creator>marko</dc:creator>
		<pubDate>Mon, 30 Jan 2006 08:36:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2006/01/28/dom-scripting-review/#comment-1776</guid>
		<description>Justin, what about the code you didn&#8217;t like exactly? The style or something else? I&#8217;m just curious...</description>
		<content:encoded><![CDATA[<p>Justin, what about the code you didn&#8217;t like exactly? The style or something else? I&#8217;m just curious&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin Perkins</title>
		<link>http://www.maratz.com/blog/archives/2006/01/28/dom-scripting-review/#comment-1775</link>
		<dc:creator>Justin Perkins</dc:creator>
		<pubDate>Mon, 30 Jan 2006 01:40:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2006/01/28/dom-scripting-review/#comment-1775</guid>
		<description>I didn&#039;t like the code in this book too much, but the lessons learned were excellent. Nobody has more clearly explained what unobtrusive Javascript is and why it is a good thing.</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t like the code in this book too much, but the lessons learned were excellent. Nobody has more clearly explained what unobtrusive Javascript is and why it is a good thing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan Smith</title>
		<link>http://www.maratz.com/blog/archives/2006/01/28/dom-scripting-review/#comment-1773</link>
		<dc:creator>Nathan Smith</dc:creator>
		<pubDate>Sun, 29 Jan 2006 01:09:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2006/01/28/dom-scripting-review/#comment-1773</guid>
		<description>Good Zeldman analogy. I agree, go buy this book.</description>
		<content:encoded><![CDATA[<p>Good Zeldman analogy. I agree, go buy this book.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

