<?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 The way I see it</title>
	<atom:link href="http://damiansromek.pl/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://damiansromek.pl</link>
	<description>Website development (PHP, JS, MySQL) by Damian Sromek</description>
	<lastBuildDate>Thu, 10 Nov 2011 23:01:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>Comment on [How to] ExtJS stateful components &#8211; Ext.Panel collapsed/expanded state stored in cookies by giant twist comfort cs</title>
		<link>http://damiansromek.pl/2010/12/20/how-to-extjs-stateful-components/#comment-41</link>
		<dc:creator>giant twist comfort cs</dc:creator>
		<pubDate>Thu, 10 Nov 2011 23:01:43 +0000</pubDate>
		<guid isPermaLink="false">http://damian.pcunited.info/?p=12#comment-41</guid>
		<description>&lt;strong&gt;... [Trackback]...&lt;/strong&gt;

[...] Read More Infos here: damiansromek.pl/2010/12/20/how-to-extjs-stateful-components/ [...]...</description>
		<content:encoded><![CDATA[<p><strong>&#8230; [Trackback]&#8230;</strong></p>
<p>[...] Read More Infos here: damiansromek.pl/2010/12/20/how-to-extjs-stateful-components/ [...]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on [How to] Run PHPUnit tests using database 10x faster by pAq</title>
		<link>http://damiansromek.pl/2011/01/03/how-to-run-phpunit-tests-using-database-10x-faster/#comment-15</link>
		<dc:creator>pAq</dc:creator>
		<pubDate>Fri, 07 Jan 2011 18:39:55 +0000</pubDate>
		<guid isPermaLink="false">http://damian.pcunited.info/?p=3#comment-15</guid>
		<description>I&#039;ve already read quite a lot about how to write good and testable code. Right now I&#039;m trying to make use of what I&#039;ve learned and I feel that it&#039;s paying off.

I have loosely coupled objects that are using dependency injection so I can test them much easier without a need of using the database.

But as I said before I still have to run &quot;old&quot; tests from time to time. That&#039;s where this RamDISK really helped me and my colleagues from my job. It saved us a lot of time. 

I&#039;ll certainly take a look at the books you proposed. Thanks :)</description>
		<content:encoded><![CDATA[<p>I&#8217;ve already read quite a lot about how to write good and testable code. Right now I&#8217;m trying to make use of what I&#8217;ve learned and I feel that it&#8217;s paying off.</p>
<p>I have loosely coupled objects that are using dependency injection so I can test them much easier without a need of using the database.</p>
<p>But as I said before I still have to run &#8220;old&#8221; tests from time to time. That&#8217;s where this RamDISK really helped me and my colleagues from my job. It saved us a lot of time. </p>
<p>I&#8217;ll certainly take a look at the books you proposed. Thanks <img src='http://damiansromek.pl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on [How to] Run PHPUnit tests using database 10x faster by pAq</title>
		<link>http://damiansromek.pl/2011/01/03/how-to-run-phpunit-tests-using-database-10x-faster/#comment-14</link>
		<dc:creator>pAq</dc:creator>
		<pubDate>Fri, 07 Jan 2011 18:31:03 +0000</pubDate>
		<guid isPermaLink="false">http://damian.pcunited.info/?p=3#comment-14</guid>
		<description>Thanks for the link. I didn&#039;t see that one. Although I&#039;ve seen couple of his lectures on the youtube.

I must admin that some parts of the &quot;old&quot; code could be written better way and that&#039;s why we have to test it involving database. But it works so it does not make sense right now to rewrite it just to be able to write &quot;better&quot; tests.
Right now we are creating everything having the tests in our minds so we can test the code without using the database.</description>
		<content:encoded><![CDATA[<p>Thanks for the link. I didn&#8217;t see that one. Although I&#8217;ve seen couple of his lectures on the youtube.</p>
<p>I must admin that some parts of the &#8220;old&#8221; code could be written better way and that&#8217;s why we have to test it involving database. But it works so it does not make sense right now to rewrite it just to be able to write &#8220;better&#8221; tests.<br />
Right now we are creating everything having the tests in our minds so we can test the code without using the database.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on [How to] Run PHPUnit tests using database 10x faster by pAq</title>
		<link>http://damiansromek.pl/2011/01/03/how-to-run-phpunit-tests-using-database-10x-faster/#comment-13</link>
		<dc:creator>pAq</dc:creator>
		<pubDate>Fri, 07 Jan 2011 18:25:17 +0000</pubDate>
		<guid isPermaLink="false">http://damian.pcunited.info/?p=3#comment-13</guid>
		<description>It&#039;s not quite integration testing. At least I would not call it like that.

I think doctrine query is the smallest unit we can test in many cases. And that&#039;s what is taking most of the test execution.

We could improve the tests speed by not cleaning the database after every test but that would require other problems to be solved, like how to be sure that tests are still independent.</description>
		<content:encoded><![CDATA[<p>It&#8217;s not quite integration testing. At least I would not call it like that.</p>
<p>I think doctrine query is the smallest unit we can test in many cases. And that&#8217;s what is taking most of the test execution.</p>
<p>We could improve the tests speed by not cleaning the database after every test but that would require other problems to be solved, like how to be sure that tests are still independent.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on [How to] Run PHPUnit tests using database 10x faster by Link of the day: RamDisk &#124; Alpha's Manifesto</title>
		<link>http://damiansromek.pl/2011/01/03/how-to-run-phpunit-tests-using-database-10x-faster/#comment-12</link>
		<dc:creator>Link of the day: RamDisk &#124; Alpha's Manifesto</dc:creator>
		<pubDate>Fri, 07 Jan 2011 15:24:16 +0000</pubDate>
		<guid isPermaLink="false">http://damian.pcunited.info/?p=3#comment-12</guid>
		<description>[...] a blog entry on the Web Developer&#8217;s Personal Notepad, and came across an article of how he could speed up his PHP Unit tests by 10 times. I mean, wow, TEN. TIMES. That&#8217;s a lot indeed.So, it turns out that he used a RAM storage for [...]</description>
		<content:encoded><![CDATA[<p>[...] a blog entry on the Web Developer&#8217;s Personal Notepad, and came across an article of how he could speed up his PHP Unit tests by 10 times. I mean, wow, TEN. TIMES. That&#8217;s a lot indeed.So, it turns out that he used a RAM storage for [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on [How to] Run PHPUnit tests using database 10x faster by Andreas Nurbo</title>
		<link>http://damiansromek.pl/2011/01/03/how-to-run-phpunit-tests-using-database-10x-faster/#comment-11</link>
		<dc:creator>Andreas Nurbo</dc:creator>
		<pubDate>Fri, 07 Jan 2011 14:39:57 +0000</pubDate>
		<guid isPermaLink="false">http://damian.pcunited.info/?p=3#comment-11</guid>
		<description>Unit Tests can test database interaction those who claim otherwise are wrong. Simple as that. Its not an integration test to test if a function returns correct output given certain inputs. 
However you can go overboard and having unittests that takes 30 min to run is a big big nono. UnitTests should go so fast that you can press a button and take a zip of tea and they are done.
You should probably take a look at what exactly your tests are testing and given what fred wrote you should probably give some thought to how you can refactor your code.

I recommend two books:
Test-driven development by example by Kent Beck
Continues Integration Duvall, Matuas and Glover</description>
		<content:encoded><![CDATA[<p>Unit Tests can test database interaction those who claim otherwise are wrong. Simple as that. Its not an integration test to test if a function returns correct output given certain inputs.<br />
However you can go overboard and having unittests that takes 30 min to run is a big big nono. UnitTests should go so fast that you can press a button and take a zip of tea and they are done.<br />
You should probably take a look at what exactly your tests are testing and given what fred wrote you should probably give some thought to how you can refactor your code.</p>
<p>I recommend two books:<br />
Test-driven development by example by Kent Beck<br />
Continues Integration Duvall, Matuas and Glover</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on [How to] Run PHPUnit tests using database 10x faster by fred</title>
		<link>http://damiansromek.pl/2011/01/03/how-to-run-phpunit-tests-using-database-10x-faster/#comment-10</link>
		<dc:creator>fred</dc:creator>
		<pubDate>Fri, 07 Jan 2011 12:21:02 +0000</pubDate>
		<guid isPermaLink="false">http://damian.pcunited.info/?p=3#comment-10</guid>
		<description>Hi,

It depends of the software tested, but usually the unit tests requiering the database are only a limited part. Unit test suits should be executed in (micro)seconds, if not, you have an issue.

In your case, I suspect (no offense) that the architecture of the code is not following certain principles that will make your code &quot;testable&quot; (Demeter law, avoiding singletons, avoiding global variables, etc.).

For further information and good talks, I can only advice you to watch this &quot;changing life video&quot; http://www.youtube.com/watch?v=RlfLCWKxHJ0 

Misko Hevery has done many talks, you can find other recorded talks on youtube. You can also look for his blog, there is a pdf which is a Google reference document for writting &quot;testable&quot; code.

Enjoy!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>It depends of the software tested, but usually the unit tests requiering the database are only a limited part. Unit test suits should be executed in (micro)seconds, if not, you have an issue.</p>
<p>In your case, I suspect (no offense) that the architecture of the code is not following certain principles that will make your code &#8220;testable&#8221; (Demeter law, avoiding singletons, avoiding global variables, etc.).</p>
<p>For further information and good talks, I can only advice you to watch this &#8220;changing life video&#8221; <a href="http://www.youtube.com/watch?v=RlfLCWKxHJ0" rel="nofollow">http://www.youtube.com/watch?v=RlfLCWKxHJ0</a> </p>
<p>Misko Hevery has done many talks, you can find other recorded talks on youtube. You can also look for his blog, there is a pdf which is a Google reference document for writting &#8220;testable&#8221; code.</p>
<p>Enjoy!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on [How to] Run PHPUnit tests using database 10x faster by dörte</title>
		<link>http://damiansromek.pl/2011/01/03/how-to-run-phpunit-tests-using-database-10x-faster/#comment-9</link>
		<dc:creator>dörte</dc:creator>
		<pubDate>Fri, 07 Jan 2011 07:21:39 +0000</pubDate>
		<guid isPermaLink="false">http://damian.pcunited.info/?p=3#comment-9</guid>
		<description>I guess you should look up the phrase &quot;integration test&quot; as well :)

And yes, Unit Tests may use the Database, but should take care of that sentence: &quot;A unit is the smallest testable part of an application.&quot;

HF dude, Dörte.</description>
		<content:encoded><![CDATA[<p>I guess you should look up the phrase &#8220;integration test&#8221; as well <img src='http://damiansromek.pl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>And yes, Unit Tests may use the Database, but should take care of that sentence: &#8220;A unit is the smallest testable part of an application.&#8221;</p>
<p>HF dude, Dörte.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on [How to] Run PHPUnit tests using database 10x faster by Damian Sromek&#8217;s Blog: [How to] Run PHPUnit tests using database 10x faster &#124; Development Blog With Code Updates : Developercast.com</title>
		<link>http://damiansromek.pl/2011/01/03/how-to-run-phpunit-tests-using-database-10x-faster/#comment-8</link>
		<dc:creator>Damian Sromek&#8217;s Blog: [How to] Run PHPUnit tests using database 10x faster &#124; Development Blog With Code Updates : Developercast.com</dc:creator>
		<pubDate>Thu, 06 Jan 2011 19:28:59 +0000</pubDate>
		<guid isPermaLink="false">http://damian.pcunited.info/?p=3#comment-8</guid>
		<description>[...] Sromek has a helpful unit testing hint for those working with database-heavy tests - less about code, more about server setup.   PHPUnit [...]</description>
		<content:encoded><![CDATA[<p>[...] Sromek has a helpful unit testing hint for those working with database-heavy tests &#8211; less about code, more about server setup.   PHPUnit [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on [How to] Run PHPUnit tests using database 10x faster by pAq</title>
		<link>http://damiansromek.pl/2011/01/03/how-to-run-phpunit-tests-using-database-10x-faster/#comment-7</link>
		<dc:creator>pAq</dc:creator>
		<pubDate>Thu, 06 Jan 2011 16:26:23 +0000</pubDate>
		<guid isPermaLink="false">http://damian.pcunited.info/?p=3#comment-7</guid>
		<description>Could you tell me what&#039;s the name of the test I&#039;m performing that are using the database?

According to the wikipedia: &quot;In computer programming, unit testing is a method by which individual units of source code are tested to determine if they are fit for use. A unit is the smallest testable part of an application.&quot;

So maybe I got it wrong but the &quot;database&quot; tests I&#039;m running test for example if the query does the things it is supposed to be doing. 
There&#039;s no way to test something &quot;smaller&quot; in that case because &quot;deeper&quot; in the code, I have only the Doctrine - which I assume to be working fine.

I did also a small research about your comment and I see it quite often that unit tests can use database.

PS thanks for your comments. I&#039;m glad you liked my idea.</description>
		<content:encoded><![CDATA[<p>Could you tell me what&#8217;s the name of the test I&#8217;m performing that are using the database?</p>
<p>According to the wikipedia: &#8220;In computer programming, unit testing is a method by which individual units of source code are tested to determine if they are fit for use. A unit is the smallest testable part of an application.&#8221;</p>
<p>So maybe I got it wrong but the &#8220;database&#8221; tests I&#8217;m running test for example if the query does the things it is supposed to be doing.<br />
There&#8217;s no way to test something &#8220;smaller&#8221; in that case because &#8220;deeper&#8221; in the code, I have only the Doctrine &#8211; which I assume to be working fine.</p>
<p>I did also a small research about your comment and I see it quite often that unit tests can use database.</p>
<p>PS thanks for your comments. I&#8217;m glad you liked my idea.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

