<?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 Dave Gardner - PHP Developer</title>
	<atom:link href="http://www.davegardner.me.uk/blog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davegardner.me.uk/blog</link>
	<description>Just behind the bleeding edge of PHP.</description>
	<lastBuildDate>Sun, 11 Sep 2011 18:49:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on A mapper pattern for PHP by Pau</title>
		<link>http://www.davegardner.me.uk/blog/2011/07/27/a-mapper-pattern-for-php/comment-page-1/#comment-2112</link>
		<dc:creator>Pau</dc:creator>
		<pubDate>Sun, 11 Sep 2011 18:49:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.davegardner.me.uk/blog/?p=209#comment-2112</guid>
		<description>Well done David ... I&#039;ve learnt a bit more about mappers. I shall try my own implementation and then compare it with yours ;) !

I may digg into it at some point if I have time, thanks for sharing!</description>
		<content:encoded><![CDATA[<p>Well done David &#8230; I&#8217;ve learnt a bit more about mappers. I shall try my own implementation and then compare it with yours <img src='http://www.davegardner.me.uk/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  !</p>
<p>I may digg into it at some point if I have time, thanks for sharing!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A mapper pattern for PHP by Dave</title>
		<link>http://www.davegardner.me.uk/blog/2011/07/27/a-mapper-pattern-for-php/comment-page-1/#comment-1840</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Thu, 28 Jul 2011 14:25:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.davegardner.me.uk/blog/?p=209#comment-1840</guid>
		<description>1. Why have I mellowed? Because it means you can have a mapper pattern, where the mapper chooses which bits of information it wants to extract from the object. I tried an alternative once, which gave responsibility to the object for &quot;exporting&quot; it&#039;s information to some container. This had a major drawback that by having the responsibility, it could not choose what to export and what not to. I am going to be blogging about this soon.
2. There is an example of this within &lt;a href=&quot;http://www.davegardner.me.uk/blog/2010/11/21/why-you-should-always-use-php-interfaces/&quot; rel=&quot;nofollow&quot;&gt;this post on Interfaces&lt;/a&gt;. In terms of &quot;why&quot;, the reason being that in a complex system, every object will probably be connected to every other object. To carry out some simple feature of a site (display a welcome message to a user, for example), you almost certainly don&#039;t want to load every object from your database. Hence the lazy-load pattern.
3. No reason. They are objects with keys, so I called them keyed objects. Google suggests that DDD entities are exactly the same concept.
4. I would make the object immutable and use a builder pattern that ultimately yields a brand new object in a situation where you want to change details within the object. You would then ask the Data Access Object to persist your new user; it would then be responsible (if required) to update any &quot;user change history&quot; relating to that object. I am probably going to be blogging about this soon as well.

Hope that helps.</description>
		<content:encoded><![CDATA[<p>1. Why have I mellowed? Because it means you can have a mapper pattern, where the mapper chooses which bits of information it wants to extract from the object. I tried an alternative once, which gave responsibility to the object for &#8220;exporting&#8221; it&#8217;s information to some container. This had a major drawback that by having the responsibility, it could not choose what to export and what not to. I am going to be blogging about this soon.<br />
2. There is an example of this within <a href="http://www.davegardner.me.uk/blog/2010/11/21/why-you-should-always-use-php-interfaces/" rel="nofollow">this post on Interfaces</a>. In terms of &#8220;why&#8221;, the reason being that in a complex system, every object will probably be connected to every other object. To carry out some simple feature of a site (display a welcome message to a user, for example), you almost certainly don&#8217;t want to load every object from your database. Hence the lazy-load pattern.<br />
3. No reason. They are objects with keys, so I called them keyed objects. Google suggests that DDD entities are exactly the same concept.<br />
4. I would make the object immutable and use a builder pattern that ultimately yields a brand new object in a situation where you want to change details within the object. You would then ask the Data Access Object to persist your new user; it would then be responsible (if required) to update any &#8220;user change history&#8221; relating to that object. I am probably going to be blogging about this soon as well.</p>
<p>Hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A mapper pattern for PHP by cryptocompress</title>
		<link>http://www.davegardner.me.uk/blog/2011/07/27/a-mapper-pattern-for-php/comment-page-1/#comment-1839</link>
		<dc:creator>cryptocompress</dc:creator>
		<pubDate>Thu, 28 Jul 2011 13:25:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.davegardner.me.uk/blog/?p=209#comment-1839</guid>
		<description>Hello Dave,

1. &quot;I used to think this was a bad idea but I have since mellowed in my opinion (setters are still evil).&quot;
May i ask why?

2. &quot;Virtual-proxy pattern for lazy-loading&quot;
Can you please provide an example for this?
I wonder why i would instantiate an domain object witch is never used? (wrong lifetime in objectgraph?)

3. &quot;Keyed objects&quot;
Why you call DDD Entities &quot;Keyed objects&quot;?

4. &quot;Aggregates&quot;
Where you put domain logic witch operates on data and its &quot;metadata&quot;?
eg: user-&gt;rename()
tables: user_name, user_change_history

Thank you</description>
		<content:encoded><![CDATA[<p>Hello Dave,</p>
<p>1. &#8220;I used to think this was a bad idea but I have since mellowed in my opinion (setters are still evil).&#8221;<br />
May i ask why?</p>
<p>2. &#8220;Virtual-proxy pattern for lazy-loading&#8221;<br />
Can you please provide an example for this?<br />
I wonder why i would instantiate an domain object witch is never used? (wrong lifetime in objectgraph?)</p>
<p>3. &#8220;Keyed objects&#8221;<br />
Why you call DDD Entities &#8220;Keyed objects&#8221;?</p>
<p>4. &#8220;Aggregates&#8221;<br />
Where you put domain logic witch operates on data and its &#8220;metadata&#8221;?<br />
eg: user-&gt;rename()<br />
tables: user_name, user_change_history</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Setting up Git on CentOS 5 server by ali</title>
		<link>http://www.davegardner.me.uk/blog/2010/01/29/setting-up-git-on-centos-5-server/comment-page-1/#comment-1780</link>
		<dc:creator>ali</dc:creator>
		<pubDate>Wed, 13 Jul 2011 15:30:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.davegardner.me.uk/blog/?p=79#comment-1780</guid>
		<description>GPG key retrieval failed: [Errno 5] OSError: [Errno 2] No such file or directory: &#039;/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL&#039;

Thanks to BigMike&#039;s comment:

cd /etc/pki/rpm-gpg
wget http://download.fedora.redhat.com/pub/epel/RPM-GPG-KEY-EPEL</description>
		<content:encoded><![CDATA[<p>GPG key retrieval failed: [Errno 5] OSError: [Errno 2] No such file or directory: &#8216;/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL&#8217;</p>
<p>Thanks to BigMike&#8217;s comment:</p>
<p>cd /etc/pki/rpm-gpg<br />
wget <a href="http://download.fedora.redhat.com/pub/epel/RPM-GPG-KEY-EPEL" rel="nofollow">http://download.fedora.redhat.com/pub/epel/RPM-GPG-KEY-EPEL</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Mocking Iterator with PHPUnit by Francesco Tassi</title>
		<link>http://www.davegardner.me.uk/blog/2011/03/04/mocking-iterator-with-phpunit/comment-page-1/#comment-1736</link>
		<dc:creator>Francesco Tassi</dc:creator>
		<pubDate>Thu, 09 Jun 2011 22:34:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.davegardner.me.uk/blog/?p=173#comment-1736</guid>
		<description>&lt;strong&gt;PHPUnit, mock di oggetti Iterator...&lt;/strong&gt;

Scrivendo unit test è molto comune avere a che fare con oggetti mock. Dovendo isolare il componente sotto test, ogni altro oggetto in gioco dovrebbe essere mockato. Questo permette di avere il necessario isolamento del componente sotto test, dal resto ...</description>
		<content:encoded><![CDATA[<p><strong>PHPUnit, mock di oggetti Iterator&#8230;</strong></p>
<p>Scrivendo unit test è molto comune avere a che fare con oggetti mock. Dovendo isolare il componente sotto test, ogni altro oggetto in gioco dovrebbe essere mockato. Questo permette di avere il necessario isolamento del componente sotto test, dal resto &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP dependency strategies: dependency injection and service locator by Jamol</title>
		<link>http://www.davegardner.me.uk/blog/2009/11/23/php-dependency-strategies-dependency-injection-and-service-locator/comment-page-1/#comment-1685</link>
		<dc:creator>Jamol</dc:creator>
		<pubDate>Mon, 30 May 2011 13:03:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.davegardner.me.uk/blog/?p=17#comment-1685</guid>
		<description>I&#039;ve written a Guice-like dependency injection framework for PHP.
https://github.com/jamolkhon/Sharbat</description>
		<content:encoded><![CDATA[<p>I&#8217;ve written a Guice-like dependency injection framework for PHP.<br />
<a href="https://github.com/jamolkhon/Sharbat" rel="nofollow">https://github.com/jamolkhon/Sharbat</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Setting up Git on CentOS 5 server by Evan Reeves</title>
		<link>http://www.davegardner.me.uk/blog/2010/01/29/setting-up-git-on-centos-5-server/comment-page-1/#comment-1618</link>
		<dc:creator>Evan Reeves</dc:creator>
		<pubDate>Mon, 18 Apr 2011 19:22:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.davegardner.me.uk/blog/?p=79#comment-1618</guid>
		<description>Check out BIGMike&#039;s comment above. Necessary to fetch the PGP key or the installation will fail.</description>
		<content:encoded><![CDATA[<p>Check out BIGMike&#8217;s comment above. Necessary to fetch the PGP key or the installation will fail.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Setting up continuous integration for PHP using Hudson and Phing by Pura</title>
		<link>http://www.davegardner.me.uk/blog/2009/11/09/continuous-integration-for-php-using-hudson-and-phing/comment-page-1/#comment-1616</link>
		<dc:creator>Pura</dc:creator>
		<pubDate>Thu, 07 Apr 2011 09:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.davegardner.me.uk/blog/?p=5#comment-1616</guid>
		<description>Hi Dave

Any suggestion on my question above ?  (I should have saide Phing Script rather than just script, in the previous post)

Thanks
Pura</description>
		<content:encoded><![CDATA[<p>Hi Dave</p>
<p>Any suggestion on my question above ?  (I should have saide Phing Script rather than just script, in the previous post)</p>
<p>Thanks<br />
Pura</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Setting up continuous integration for PHP using Hudson and Phing by Dave</title>
		<link>http://www.davegardner.me.uk/blog/2009/11/09/continuous-integration-for-php-using-hudson-and-phing/comment-page-1/#comment-1615</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Wed, 06 Apr 2011 11:02:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.davegardner.me.uk/blog/?p=5#comment-1615</guid>
		<description>I should update the post really, now that we have the Jenkins/Hudson split! Thanks for pointing this out.</description>
		<content:encoded><![CDATA[<p>I should update the post really, now that we have the Jenkins/Hudson split! Thanks for pointing this out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Setting up continuous integration for PHP using Hudson and Phing by Pura</title>
		<link>http://www.davegardner.me.uk/blog/2009/11/09/continuous-integration-for-php-using-hudson-and-phing/comment-page-1/#comment-1614</link>
		<dc:creator>Pura</dc:creator>
		<pubDate>Wed, 06 Apr 2011 09:08:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.davegardner.me.uk/blog/?p=5#comment-1614</guid>
		<description>Thanks. It&#039;s a very helpful article. But I&#039;ve a question. 
I&#039;ve an application build on Zend Framework and file structure of tests is pretty much like application structure. 

tests
----modules
--------default
------------controllers
----------------aControllerTest.php
------------models
----------------aModelTest.php
----------------a2ModelTest.php
----------------resources
---------------------aResourceModelTest.php
--------anothermodule
------------controllers
and same......

So, in the script above you&#039;ve got a line as follows under the target phpunit.


My questions are:
1. How would I change the line above to adopt my file structure? In other words what i replace $(ws}/source/tests with?

2. Where in the script I specify, these are the tests and these are the fileset tested?

Your help would complete my CI integration and appreciated a lot. 

TIA.
P</description>
		<content:encoded><![CDATA[<p>Thanks. It&#8217;s a very helpful article. But I&#8217;ve a question.<br />
I&#8217;ve an application build on Zend Framework and file structure of tests is pretty much like application structure. </p>
<p>tests<br />
&#8212;-modules<br />
&#8212;&#8212;&#8211;default<br />
&#8212;&#8212;&#8212;&#8212;controllers<br />
&#8212;&#8212;&#8212;&#8212;&#8212;-aControllerTest.php<br />
&#8212;&#8212;&#8212;&#8212;models<br />
&#8212;&#8212;&#8212;&#8212;&#8212;-aModelTest.php<br />
&#8212;&#8212;&#8212;&#8212;&#8212;-a2ModelTest.php<br />
&#8212;&#8212;&#8212;&#8212;&#8212;-resources<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;aResourceModelTest.php<br />
&#8212;&#8212;&#8211;anothermodule<br />
&#8212;&#8212;&#8212;&#8212;controllers<br />
and same&#8230;&#8230;</p>
<p>So, in the script above you&#8217;ve got a line as follows under the target phpunit.</p>
<p>My questions are:<br />
1. How would I change the line above to adopt my file structure? In other words what i replace $(ws}/source/tests with?</p>
<p>2. Where in the script I specify, these are the tests and these are the fileset tested?</p>
<p>Your help would complete my CI integration and appreciated a lot. </p>
<p>TIA.<br />
P</p>
]]></content:encoded>
	</item>
</channel>
</rss>

