<?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 aKa Web Design</title>
	<atom:link href="http://www.akawebdesign.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.akawebdesign.com</link>
	<description>Longtime nerd. Rockstar developer.</description>
	<lastBuildDate>Wed, 18 Apr 2012 11:52:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>Comment on Book Review: Sencha Touch Mobile JavaScript Framework by Arthur Kay</title>
		<link>http://www.akawebdesign.com/2012/03/20/book-review-sencha-touch-mobile-javascript-framework/#comment-724</link>
		<dc:creator>Arthur Kay</dc:creator>
		<pubDate>Wed, 18 Apr 2012 11:52:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.akawebdesign.com/?p=972#comment-724</guid>
		<description>Boris, there an over-abundance of information on this topic on the Sencha forums. Hard-coding a component&#039;s &quot;id&quot; itself is problematic from the DOM&#039;s point-of-view. Relying on Ext.getCmp further complicates matters because modern JavaScript applications have a fluid DOM... Components are rendered and destroyed constantly, so relying on static DOM ids is a terrible idea.</description>
		<content:encoded><![CDATA[<p>Boris, there an over-abundance of information on this topic on the Sencha forums. Hard-coding a component&#8217;s &#8220;id&#8221; itself is problematic from the DOM&#8217;s point-of-view. Relying on Ext.getCmp further complicates matters because modern JavaScript applications have a fluid DOM&#8230; Components are rendered and destroyed constantly, so relying on static DOM ids is a terrible idea.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Book Review: Sencha Touch Mobile JavaScript Framework by Boris</title>
		<link>http://www.akawebdesign.com/2012/03/20/book-review-sencha-touch-mobile-javascript-framework/#comment-723</link>
		<dc:creator>Boris</dc:creator>
		<pubDate>Tue, 17 Apr 2012 04:57:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.akawebdesign.com/?p=972#comment-723</guid>
		<description>Hi,

About the use of the id. Coming from a .NET background I find it weird and confusing to define your class and your instance(it&#039;s what you are doing when adding an id to the config). I did it anyway, because I am lazy and the use of  Ext.getCmp() was so convenient. But at the end of the day, I ran into multiple and frustrating run time issues because of this poor design. Can you develop a bit more on that and tell us more about the Ext.ComponentQuery method ?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>About the use of the id. Coming from a .NET background I find it weird and confusing to define your class and your instance(it&#8217;s what you are doing when adding an id to the config). I did it anyway, because I am lazy and the use of  Ext.getCmp() was so convenient. But at the end of the day, I ran into multiple and frustrating run time issues because of this poor design. Can you develop a bit more on that and tell us more about the Ext.ComponentQuery method ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Book Review: Specification By Example by Arthur Kay</title>
		<link>http://www.akawebdesign.com/2012/04/06/book-review-specification-by-example/#comment-720</link>
		<dc:creator>Arthur Kay</dc:creator>
		<pubDate>Mon, 09 Apr 2012 14:20:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.akawebdesign.com/?p=989#comment-720</guid>
		<description>SunKing2 - good points.

I haven&#039;t read &quot;Test Driven&quot;, but maybe I&#039;ll check it out based on your recommendation. 

You&#039;re also right in that this isn&#039;t a new topic... but I do think many software developers are oblivious to the idea. Developers are often uninvolved in the &quot;requirement&quot; process, or at least until much later in those discussions. I feel that developers in particular would benefit from reading this book for that reason alone.

I will agree that I thought the author should have &quot;just told me how to do it already&quot; early in the book... the use of so many anecdotes probably contributed to some of the dryness I mentioned. That being said, Adzic&#039;s clear vocabulary is certainly re-enforced by the examples.</description>
		<content:encoded><![CDATA[<p>SunKing2 &#8211; good points.</p>
<p>I haven&#8217;t read &#8220;Test Driven&#8221;, but maybe I&#8217;ll check it out based on your recommendation. </p>
<p>You&#8217;re also right in that this isn&#8217;t a new topic&#8230; but I do think many software developers are oblivious to the idea. Developers are often uninvolved in the &#8220;requirement&#8221; process, or at least until much later in those discussions. I feel that developers in particular would benefit from reading this book for that reason alone.</p>
<p>I will agree that I thought the author should have &#8220;just told me how to do it already&#8221; early in the book&#8230; the use of so many anecdotes probably contributed to some of the dryness I mentioned. That being said, Adzic&#8217;s clear vocabulary is certainly re-enforced by the examples.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Book Review: Specification By Example by SunKing2</title>
		<link>http://www.akawebdesign.com/2012/04/06/book-review-specification-by-example/#comment-715</link>
		<dc:creator>SunKing2</dc:creator>
		<pubDate>Sat, 07 Apr 2012 05:07:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.akawebdesign.com/?p=989#comment-715</guid>
		<description>Thanks for the review.  I&#039;ve been reading this book for quite awhile and if anyone isn&#039;t familiar with the topic, it&#039;s a must read.  However, I&#039;m not so sure it deserves such high praise as Amazon&#039;s visitors give it.  &quot;Test Driven&quot; - by Lasse Koskela in 2008 covered this topic quite well (he called it Acceptance TDD). &quot;Specification by Example&quot; has way too many anecdotes at the beginning; Part 1 (first 62 pages) leaves you with a feeling of &quot;Ok, I&#039;m sold, just tell me how to do it already!&quot;.  This topic is not new, despite the book&#039;s high ratings.  Frameworks such as Fit/Fitnesse have been around for several years, and what this book describes is what they had been invented for.  Not to say there&#039;s no new information here, but a lot of what is said in the book can be gleaned by using Fitnesse plus a few tips on having your users work with you to create the &quot;executable specifications&quot;.  Actually Adzic did one thing, he gave us a vocabulary for it; hopefully it&#039;ll catch on, because before this there was a LOT of terms to describe this process which caused a lot of confusion.</description>
		<content:encoded><![CDATA[<p>Thanks for the review.  I&#8217;ve been reading this book for quite awhile and if anyone isn&#8217;t familiar with the topic, it&#8217;s a must read.  However, I&#8217;m not so sure it deserves such high praise as Amazon&#8217;s visitors give it.  &#8220;Test Driven&#8221; &#8211; by Lasse Koskela in 2008 covered this topic quite well (he called it Acceptance TDD). &#8220;Specification by Example&#8221; has way too many anecdotes at the beginning; Part 1 (first 62 pages) leaves you with a feeling of &#8220;Ok, I&#8217;m sold, just tell me how to do it already!&#8221;.  This topic is not new, despite the book&#8217;s high ratings.  Frameworks such as Fit/Fitnesse have been around for several years, and what this book describes is what they had been invented for.  Not to say there&#8217;s no new information here, but a lot of what is said in the book can be gleaned by using Fitnesse plus a few tips on having your users work with you to create the &#8220;executable specifications&#8221;.  Actually Adzic did one thing, he gave us a vocabulary for it; hopefully it&#8217;ll catch on, because before this there was a LOT of terms to describe this process which caused a lot of confusion.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Thoughts on JS Unit Tests: Phantom.js vs Node.js by Arthur Kay</title>
		<link>http://www.akawebdesign.com/2012/03/21/thoughts-on-js-unit-tests-phantom-js-vs-node-js/#comment-702</link>
		<dc:creator>Arthur Kay</dc:creator>
		<pubDate>Wed, 21 Mar 2012 21:06:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.akawebdesign.com/?p=982#comment-702</guid>
		<description>I don&#039;t know if I agree that the line is blurred, and I certainly don&#039;t agree that all hope is lost.

Testing the logic for a method is simple (expect a specific output given an input) and should be run in complete isolation from the running application. Testing functional aspects of your application require the application be running... and these tests often don&#039;t have a clearly defined &quot;pass&quot; or &quot;fail&quot; scenario.

In other words, I tend to see logical tests as objective, whereas functional tests are (to a certain degree) subjective.

I&#039;ve been working a solid example based on Sencha Touch to demonstrate this... but I have not yet had the time to complete the functional tests. If you&#039;re curious, check out my &lt;a href=&quot;http://www.akawebdesign.com/2011/05/18/sencha-touch-prize-patrol-app/&quot; rel=&quot;nofollow&quot;&gt;Prize Patrol&lt;/a&gt; app. It&#039;s not really all that impressive, but you should get the idea.

How do you know you&#039;ve tested enough? My advice is to test the &quot;important&quot; or &quot;troublesome&quot; parts of your logic, and apply functional tests &lt;strong&gt;as needed&lt;/strong&gt; to prevent regression bugs. It&#039;s damn near impossible to get 100% code coverage... I&#039;m simply advocating a middle ground where you can be confident to a certain degree.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know if I agree that the line is blurred, and I certainly don&#8217;t agree that all hope is lost.</p>
<p>Testing the logic for a method is simple (expect a specific output given an input) and should be run in complete isolation from the running application. Testing functional aspects of your application require the application be running&#8230; and these tests often don&#8217;t have a clearly defined &#8220;pass&#8221; or &#8220;fail&#8221; scenario.</p>
<p>In other words, I tend to see logical tests as objective, whereas functional tests are (to a certain degree) subjective.</p>
<p>I&#8217;ve been working a solid example based on Sencha Touch to demonstrate this&#8230; but I have not yet had the time to complete the functional tests. If you&#8217;re curious, check out my <a href="http://www.akawebdesign.com/2011/05/18/sencha-touch-prize-patrol-app/" rel="nofollow">Prize Patrol</a> app. It&#8217;s not really all that impressive, but you should get the idea.</p>
<p>How do you know you&#8217;ve tested enough? My advice is to test the &#8220;important&#8221; or &#8220;troublesome&#8221; parts of your logic, and apply functional tests <strong>as needed</strong> to prevent regression bugs. It&#8217;s damn near impossible to get 100% code coverage&#8230; I&#8217;m simply advocating a middle ground where you can be confident to a certain degree.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Thoughts on JS Unit Tests: Phantom.js vs Node.js by Dmitry</title>
		<link>http://www.akawebdesign.com/2012/03/21/thoughts-on-js-unit-tests-phantom-js-vs-node-js/#comment-701</link>
		<dc:creator>Dmitry</dc:creator>
		<pubDate>Wed, 21 Mar 2012 19:40:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.akawebdesign.com/?p=982#comment-701</guid>
		<description>It seems that the line between Unit tests and Integration testing is blurred for RIA apps written ExtJS style. That makes it difficult to understand what should be tested, and how. I would love to see some real world test examples of ExtJS apps tested thoroughly (how do you test an autoloaded store for example?). If the case is that we should abandon all hope of unit testing, and focus on Functional tests - you know I am OK with that. The trouble is how do we know we have tested enough? How do we know what the test coverage is? Thanks for your feedback.</description>
		<content:encoded><![CDATA[<p>It seems that the line between Unit tests and Integration testing is blurred for RIA apps written ExtJS style. That makes it difficult to understand what should be tested, and how. I would love to see some real world test examples of ExtJS apps tested thoroughly (how do you test an autoloaded store for example?). If the case is that we should abandon all hope of unit testing, and focus on Functional tests &#8211; you know I am OK with that. The trouble is how do we know we have tested enough? How do we know what the test coverage is? Thanks for your feedback.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Thoughts on JS Unit Tests: Phantom.js vs Node.js by Arthur Kay</title>
		<link>http://www.akawebdesign.com/2012/03/21/thoughts-on-js-unit-tests-phantom-js-vs-node-js/#comment-700</link>
		<dc:creator>Arthur Kay</dc:creator>
		<pubDate>Wed, 21 Mar 2012 18:38:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.akawebdesign.com/?p=982#comment-700</guid>
		<description>Yes, so the perfect solution would to have BOTH traditional unit (i.e. logic) tests as well as functional/integration tests. In my experience, I usually run the logic tests first - and assuming those pass, run the functional tests next. I even go a step further and run JSLint on all of my code before running the tests...

In your case (like many developers) you will probably have far more functional tests than logic tests - but it also depends on your code. In order to write Jasmine tests for ExtJS components you have to have &quot;testable&quot; methods that aren&#039;t tightly coupled to the DOM or other dependencies.

The trouble with highly interactive UI&#039;s built with ExtJS (or other frameworks) is that Selenium can have a hard time mapping the dynamic DOM elements to the expected test result. I have had some better success using Phantom.js to drive those functional tests as you can create screenshots - and compare the expected screen to the result screen for pixel-perfect tests.

The obvious flaw in that approach is that Phantom.js isn&#039;t a true browser... it is based on WebKit, so it&#039;s a good bet for covering Chrome/Safari and mobile browsers. It&#039;s useless for Firefox, IE and others. 

In my earlier post (linked above) I say that flaw &quot;might be okay&quot; depending on your application, but tools like Selenium do offer you the ability to test across browsers using the actual browser.</description>
		<content:encoded><![CDATA[<p>Yes, so the perfect solution would to have BOTH traditional unit (i.e. logic) tests as well as functional/integration tests. In my experience, I usually run the logic tests first &#8211; and assuming those pass, run the functional tests next. I even go a step further and run JSLint on all of my code before running the tests&#8230;</p>
<p>In your case (like many developers) you will probably have far more functional tests than logic tests &#8211; but it also depends on your code. In order to write Jasmine tests for ExtJS components you have to have &#8220;testable&#8221; methods that aren&#8217;t tightly coupled to the DOM or other dependencies.</p>
<p>The trouble with highly interactive UI&#8217;s built with ExtJS (or other frameworks) is that Selenium can have a hard time mapping the dynamic DOM elements to the expected test result. I have had some better success using Phantom.js to drive those functional tests as you can create screenshots &#8211; and compare the expected screen to the result screen for pixel-perfect tests.</p>
<p>The obvious flaw in that approach is that Phantom.js isn&#8217;t a true browser&#8230; it is based on WebKit, so it&#8217;s a good bet for covering Chrome/Safari and mobile browsers. It&#8217;s useless for Firefox, IE and others. </p>
<p>In my earlier post (linked above) I say that flaw &#8220;might be okay&#8221; depending on your application, but tools like Selenium do offer you the ability to test across browsers using the actual browser.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Thoughts on JS Unit Tests: Phantom.js vs Node.js by Dmitry</title>
		<link>http://www.akawebdesign.com/2012/03/21/thoughts-on-js-unit-tests-phantom-js-vs-node-js/#comment-699</link>
		<dc:creator>Dmitry</dc:creator>
		<pubDate>Wed, 21 Mar 2012 17:56:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.akawebdesign.com/?p=982#comment-699</guid>
		<description>Thanks for the post, it&#039;s informative. What is your thought on separating Unit tests vs. Functional/System tests? If my ExtJS app code is 70% configs of ExtJS components and their extensions - what should be my test strategy? Just to clarify functional tests is something I would consider Selenium to be a good fit for.</description>
		<content:encoded><![CDATA[<p>Thanks for the post, it&#8217;s informative. What is your thought on separating Unit tests vs. Functional/System tests? If my ExtJS app code is 70% configs of ExtJS components and their extensions &#8211; what should be my test strategy? Just to clarify functional tests is something I would consider Selenium to be a good fit for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on DisplayLink USB2VGAPro on Mac OS X by Arthur Kay</title>
		<link>http://www.akawebdesign.com/2011/04/06/displaylink-usb2vgapro-on-mac-os-x/#comment-694</link>
		<dc:creator>Arthur Kay</dc:creator>
		<pubDate>Sun, 04 Mar 2012 15:26:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.akawebdesign.com/?p=640#comment-694</guid>
		<description>I just did another fresh install of Mac OSX, and this post came in handy!

One note... as the latest OSX is now 10.7.3, I had to additionally install this driver (don&#039;t know if the above link was necessary)

http://displaylink.com/support/mac_downloads.php (Version 1.7)</description>
		<content:encoded><![CDATA[<p>I just did another fresh install of Mac OSX, and this post came in handy!</p>
<p>One note&#8230; as the latest OSX is now 10.7.3, I had to additionally install this driver (don&#8217;t know if the above link was necessary)</p>
<p><a href="http://displaylink.com/support/mac_downloads.php" rel="nofollow">http://displaylink.com/support/mac_downloads.php</a> (Version 1.7)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JavaScript Encapsulation by David</title>
		<link>http://www.akawebdesign.com/2011/11/25/javascript-encapsulation/#comment-688</link>
		<dc:creator>David</dc:creator>
		<pubDate>Mon, 20 Feb 2012 19:16:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.akawebdesign.com/?p=766#comment-688</guid>
		<description>Thanks, I got it:

So the real magic is here:

    return {
        name : config.name,
        age  : config.age,

	get  : function() { 
		return getPrivateValue(); },
        set  : function(newValue) { setPrivateValue(newValue); }
    };

Not in the var.... above.

Doh! thanks!! :)</description>
		<content:encoded><![CDATA[<p>Thanks, I got it:</p>
<p>So the real magic is here:</p>
<p>    return {<br />
        name : config.name,<br />
        age  : config.age,</p>
<p>	get  : function() {<br />
		return getPrivateValue(); },<br />
        set  : function(newValue) { setPrivateValue(newValue); }<br />
    };</p>
<p>Not in the var&#8230;. above.</p>
<p>Doh! thanks!! <img src='http://www.akawebdesign.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

