<?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 for AddyOsmani.com | Articles for developers</title> <atom:link href="http://addyosmani.com/blog/comments/feed/" rel="self" type="application/rss+xml" /><link>http://addyosmani.com/blog</link> <description>This is the home of Addy Osmani (JavaScript &#38; UI Developer, Designer &#38; Author). Here you can find some great tips and tutorials on everything to do with web development and even a few useful code samples!</description> <lastBuildDate>Tue, 22 May 2012 10:46:52 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Comment on Understanding MVVM &#8211; A Guide For JavaScript Developers by Architecting a MVC web application with Knockout &#171; thewayofcode</title><link>http://addyosmani.com/blog/understanding-mvvm-a-guide-for-javascript-developers/comment-page-1/#comment-16423</link> <dc:creator>Architecting a MVC web application with Knockout &#171; thewayofcode</dc:creator> <pubDate>Tue, 22 May 2012 10:46:52 +0000</pubDate> <guid
isPermaLink="false">http://addyosmani.com/blog/?p=4624#comment-16423</guid> <description>[...] all the pieces of the puzzle together. I chose to take Knockout as an example because I like its MVVM approach and the learning curve is not so steep. Finally, as always, the foundations of this [...]</description> <content:encoded><![CDATA[<p>[...] all the pieces of the puzzle together. I chose to take Knockout as an example because I like its MVVM approach and the learning curve is not so steep. Finally, as always, the foundations of this [...]</p> ]]></content:encoded> </item> <item><title>Comment on jQuery Fubar &#8211; How To Create A Website Toolbar From Scratch And Add Widgets To It by Kelly Swarthout</title><link>http://addyosmani.com/blog/jquery-fubar-how-to-create-a-website-toolbar-from-scratch-and-add-widgets-to-it/comment-page-2/#comment-16419</link> <dc:creator>Kelly Swarthout</dc:creator> <pubDate>Tue, 22 May 2012 09:12:27 +0000</pubDate> <guid
isPermaLink="false">http://addyosmani.com/blog/jquery-fubar-how-to-create-a-website-toolbar-from-scratch-and-add-widgets-to-it/#comment-16419</guid> <description>Hey! I&#039;m at work browsing your blog from my new iphone 4! Just wanted to say I love reading your blog and look forward to all your posts! Keep up the superb work!</description> <content:encoded><![CDATA[<p>Hey! I&#8217;m at work browsing your blog from my new iphone 4! Just wanted to say I love reading your blog and look forward to all your posts! Keep up the superb work!</p> ]]></content:encoded> </item> <item><title>Comment on jQuery UI CoverFlow 2.0 Using $.widget by 2bba</title><link>http://addyosmani.com/blog/jqueryuicoverflow/comment-page-1/#comment-16408</link> <dc:creator>2bba</dc:creator> <pubDate>Tue, 22 May 2012 04:48:12 +0000</pubDate> <guid
isPermaLink="false">http://addyosmani.com/blog/?p=1785#comment-16408</guid> <description>changes to #coverflow width of demos.css</description> <content:encoded><![CDATA[<p>changes to #coverflow width of demos.css</p> ]]></content:encoded> </item> <item><title>Comment on Auto-saving CSS And JavaScript Changes Locally From The Chrome Developer Tools by Dathan Nicholson</title><link>http://addyosmani.com/blog/autosave-changes-chrome-dev-tools/comment-page-1/#comment-16387</link> <dc:creator>Dathan Nicholson</dc:creator> <pubDate>Mon, 21 May 2012 02:49:22 +0000</pubDate> <guid
isPermaLink="false">http://addyosmani.com/blog/?p=4106#comment-16387</guid> <description>If you&#039;re not coding in SASS then you&#039;re not doing CSS the way it should be done... Until this tool supports SASS you&#039;re still wasting time.</description> <content:encoded><![CDATA[<p>If you&#8217;re not coding in SASS then you&#8217;re not doing CSS the way it should be done&#8230; Until this tool supports SASS you&#8217;re still wasting time.</p> ]]></content:encoded> </item> <item><title>Comment on RocketBar &#8211; A jQuery And CSS3 Persistent Navigation Menu by Ahmed</title><link>http://addyosmani.com/blog/rocketbar/comment-page-2/#comment-16383</link> <dc:creator>Ahmed</dc:creator> <pubDate>Sun, 20 May 2012 20:25:37 +0000</pubDate> <guid
isPermaLink="false">http://addyosmani.com/blog/?p=957#comment-16383</guid> <description>Really nice! Thanks</description> <content:encoded><![CDATA[<p>Really nice! Thanks</p> ]]></content:encoded> </item> <item><title>Comment on Big news! I&#8217;m joining Google. by html6game</title><link>http://addyosmani.com/blog/joining-google/comment-page-2/#comment-16376</link> <dc:creator>html6game</dc:creator> <pubDate>Sun, 20 May 2012 11:14:38 +0000</pubDate> <guid
isPermaLink="false">http://addyosmani.com/blog/?p=4432#comment-16376</guid> <description>I started reading your blog.</description> <content:encoded><![CDATA[<p>I started reading your blog.</p> ]]></content:encoded> </item> <item><title>Comment on Short Musings On JavaScript MV* Tech Stacks by Elf M. Sternberg</title><link>http://addyosmani.com/blog/short-musings-on-javascript-mv-tech-stacks/comment-page-1/#comment-16355</link> <dc:creator>Elf M. Sternberg</dc:creator> <pubDate>Sat, 19 May 2012 05:29:05 +0000</pubDate> <guid
isPermaLink="false">http://addyosmani.com/blog/?p=4222#comment-16355</guid> <description>My stack looks almost like that.   I haven&#039;t used Backbone Layout yet; I use Backbone-Relational for a lot of stuff and I like DrizzleDB more than any of the NoSQL solutions I&#039;ve seen yet.
But my biggest shift has been using these tools in a HAML/Less/Coffeescript environment, pre-compiling out the templates, CSS, and Javascript, and assembling them with r.js.  I have a boilerplate Cakefile for doing this and use inotifywait to build on-demand as I code.  Addy&#039;s right that there is an embarrassment of riches out there at the library level, but the dev environment has also become powerful and useful too.
And I couldn&#039;t figure out HOW to use Require.JS until ThomasDavis published the source code to his examples; once he showed me what worked, I was able to plug in my own code, and that made all the difference.</description> <content:encoded><![CDATA[<p>My stack looks almost like that.   I haven&#8217;t used Backbone Layout yet; I use Backbone-Relational for a lot of stuff and I like DrizzleDB more than any of the NoSQL solutions I&#8217;ve seen yet.</p><p>But my biggest shift has been using these tools in a HAML/Less/Coffeescript environment, pre-compiling out the templates, CSS, and Javascript, and assembling them with r.js.  I have a boilerplate Cakefile for doing this and use inotifywait to build on-demand as I code.  Addy&#8217;s right that there is an embarrassment of riches out there at the library level, but the dev environment has also become powerful and useful too.</p><p>And I couldn&#8217;t figure out HOW to use Require.JS until ThomasDavis published the source code to his examples; once he showed me what worked, I was able to plug in my own code, and that made all the difference.</p> ]]></content:encoded> </item> <item><title>Comment on JavaScript Style Guides And Beautifiers by Lee Kowalkowski</title><link>http://addyosmani.com/blog/javascript-style-guides-and-beautifiers/comment-page-1/#comment-16346</link> <dc:creator>Lee Kowalkowski</dc:creator> <pubDate>Fri, 18 May 2012 14:16:43 +0000</pubDate> <guid
isPermaLink="false">http://addyosmani.com/blog/?p=4645#comment-16346</guid> <description>JavaScript does not hoist all your initializations to the top.  All variables belonging to an execution context are created when the execution context is entered, and initialised to undefined.  Variables are not initialised to your values until the variable statement is executed (wherever that might be), not when the variable is created.
Local variable creation is more of a parsing activity than an execution activity, you don&#039;t need to know about it at all, so it doesn&#039;t really make sense to move any of your declarations just for that reason. (For other reasons, maybe.)
Using the var keyword just declares the scope of the variable, nothing else.  Nothing is &#039;moved&#039;, the variable is bound to the function&#039;s activation object by the parser (just like the function&#039;s parameter arguments).  As long as you understand there is only program scope and function scope, there&#039;s no confusion at all.
Some people prefer to declare all the variables at the top of their scope as a form of data dictionary, which is fine, but for temporary variables, one might wish to declare them closer to where they are first initialised (e.g. within loop initialisers) this follows the Don&#039;t Repeat Yourself principle more closely, if the variable cannot be initialised early (separating the declaration and initialisation unnecessarily is avoidably repeating yourself).</description> <content:encoded><![CDATA[<p>JavaScript does not hoist all your initializations to the top.  All variables belonging to an execution context are created when the execution context is entered, and initialised to undefined.  Variables are not initialised to your values until the variable statement is executed (wherever that might be), not when the variable is created.</p><p>Local variable creation is more of a parsing activity than an execution activity, you don&#8217;t need to know about it at all, so it doesn&#8217;t really make sense to move any of your declarations just for that reason. (For other reasons, maybe.)</p><p>Using the var keyword just declares the scope of the variable, nothing else.  Nothing is &#8216;moved&#8217;, the variable is bound to the function&#8217;s activation object by the parser (just like the function&#8217;s parameter arguments).  As long as you understand there is only program scope and function scope, there&#8217;s no confusion at all.</p><p>Some people prefer to declare all the variables at the top of their scope as a form of data dictionary, which is fine, but for temporary variables, one might wish to declare them closer to where they are first initialised (e.g. within loop initialisers) this follows the Don&#8217;t Repeat Yourself principle more closely, if the variable cannot be initialised early (separating the declaration and initialisation unnecessarily is avoidably repeating yourself).</p> ]]></content:encoded> </item> <item><title>Comment on Unit Testing Backbone.js Apps With QUnit And SinonJS by Unit Testing Backbone.js Apps With QUnit And SinonJS &#171; Sochinda&#039;s Blog</title><link>http://addyosmani.com/blog/unit-testing-backbone-js-apps-with-qunit-and-sinonjs/comment-page-1/#comment-16332</link> <dc:creator>Unit Testing Backbone.js Apps With QUnit And SinonJS &#171; Sochinda&#039;s Blog</dc:creator> <pubDate>Fri, 18 May 2012 02:40:58 +0000</pubDate> <guid
isPermaLink="false">http://addyosmani.com/blog/?p=4413#comment-16332</guid> <description>[...] HTML with QUnit-compatible markup:   view plaincopy to [...]</description> <content:encoded><![CDATA[<p>[...] HTML with QUnit-compatible markup:   view plaincopy to [...]</p> ]]></content:encoded> </item> <item><title>Comment on JavaScript Style Guides And Beautifiers by Meetserious</title><link>http://addyosmani.com/blog/javascript-style-guides-and-beautifiers/comment-page-1/#comment-16328</link> <dc:creator>Meetserious</dc:creator> <pubDate>Thu, 17 May 2012 19:51:39 +0000</pubDate> <guid
isPermaLink="false">http://addyosmani.com/blog/?p=4645#comment-16328</guid> <description>I use CoffeeScript to write my js files. In doing so, I have some constraints linked to the CoffeeScript syntax, and I loved it. I have to write in the CoffeeScript way, or it doesn&#039;t work. Only one way, thus no headache in order to find the better way!</description> <content:encoded><![CDATA[<p>I use CoffeeScript to write my js files. In doing so, I have some constraints linked to the CoffeeScript syntax, and I loved it. I have to write in the CoffeeScript way, or it doesn&#8217;t work. Only one way, thus no headache in order to find the better way!</p> ]]></content:encoded> </item> </channel> </rss>
