<?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 Pompi Pompi - A Gamers and Developers blog for indie games</title>
	<atom:link href="http://www.pompidev.net/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pompidev.net</link>
	<description>A blog about indie game development for both gamers and developers</description>
	<lastBuildDate>Fri, 12 Feb 2010 16:37:36 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Bug negative verification by Ground Truth &#171; Pompi Pompi &#8211; A Gamers and Developers blog for indie games</title>
		<link>http://www.pompidev.net/2009/09/13/bug-negative-verification/comment-page-1/#comment-264</link>
		<dc:creator>Ground Truth &#171; Pompi Pompi &#8211; A Gamers and Developers blog for indie games</dc:creator>
		<pubDate>Fri, 12 Feb 2010 16:37:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.pompidev.net/?p=34#comment-264</guid>
		<description>[...] many other fields where you have some tool you know is working right. It is kind of similar to the Bug negative verification.   Share and [...]</description>
		<content:encoded><![CDATA[<p>[...] many other fields where you have some tool you know is working right. It is kind of similar to the Bug negative verification.   Share and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Accessing privates without &#8216;friend&#8217;(c++) by ofer</title>
		<link>http://www.pompidev.net/2010/01/05/accessing-privates-without-friendc/comment-page-1/#comment-185</link>
		<dc:creator>ofer</dc:creator>
		<pubDate>Fri, 15 Jan 2010 06:51:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.pompidev.net/?p=427#comment-185</guid>
		<description>Hello Marcin,

I understand what you are saying, but I think sometimes you want classes to be closely dependent of each other.
The best way to decouple classes is data driven, but sometimes it&#039;s not worth or doesn&#039;t make sense to use that.</description>
		<content:encoded><![CDATA[<p>Hello Marcin,</p>
<p>I understand what you are saying, but I think sometimes you want classes to be closely dependent of each other.<br />
The best way to decouple classes is data driven, but sometimes it&#8217;s not worth or doesn&#8217;t make sense to use that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Accessing privates without &#8216;friend&#8217;(c++) by Marcin Seredynski</title>
		<link>http://www.pompidev.net/2010/01/05/accessing-privates-without-friendc/comment-page-1/#comment-183</link>
		<dc:creator>Marcin Seredynski</dc:creator>
		<pubDate>Thu, 14 Jan 2010 19:30:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.pompidev.net/?p=427#comment-183</guid>
		<description>Hmmm... &quot;Cruising alone&quot; doesn&#039;t look like a good reason to break encapsulation, really. IMHO: if you ever find yourself needing to break encapsulation, this is an indicator of a design that could be improved.

Other than that - interesting approach.</description>
		<content:encoded><![CDATA[<p>Hmmm&#8230; &#8220;Cruising alone&#8221; doesn&#8217;t look like a good reason to break encapsulation, really. IMHO: if you ever find yourself needing to break encapsulation, this is an indicator of a design that could be improved.</p>
<p>Other than that &#8211; interesting approach.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Happy Malloc Year! by Who moved my monitor(cheese)? &#171; Pompi Pompi &#8211; A Gamers and Developers blog for indie games</title>
		<link>http://www.pompidev.net/2009/12/31/happy-malloc-year/comment-page-1/#comment-177</link>
		<dc:creator>Who moved my monitor(cheese)? &#171; Pompi Pompi &#8211; A Gamers and Developers blog for indie games</dc:creator>
		<pubDate>Tue, 12 Jan 2010 19:15:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.pompidev.net/?p=416#comment-177</guid>
		<description>[...] a lot of loose cable. We some time rationalize things or find excuses to not try things because of a future event we are looking forward to. It is a really important quality to be able to try things out even if you have no prior knowledge [...]</description>
		<content:encoded><![CDATA[<p>[...] a lot of loose cable. We some time rationalize things or find excuses to not try things because of a future event we are looking forward to. It is a really important quality to be able to try things out even if you have no prior knowledge [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Accessing privates without &#8216;friend&#8217;(c++) by hermitC</title>
		<link>http://www.pompidev.net/2010/01/05/accessing-privates-without-friendc/comment-page-1/#comment-166</link>
		<dc:creator>hermitC</dc:creator>
		<pubDate>Fri, 08 Jan 2010 16:14:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.pompidev.net/?p=427#comment-166</guid>
		<description>@ofer: Good point, didn&#039;t consider that traffic lights are useless when cruising alone :)</description>
		<content:encoded><![CDATA[<p>@ofer: Good point, didn&#8217;t consider that traffic lights are useless when cruising alone <img src='http://www.pompidev.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Accessing privates without &#8216;friend&#8217;(c++) by ofer</title>
		<link>http://www.pompidev.net/2010/01/05/accessing-privates-without-friendc/comment-page-1/#comment-164</link>
		<dc:creator>ofer</dc:creator>
		<pubDate>Fri, 08 Jan 2010 15:41:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.pompidev.net/?p=427#comment-164</guid>
		<description>hermitC, I don&#039;t think the traffic light is a good example. Because private are useful for the lone programmer as well.
This pattern can be useful for a lone programer as well, of course it doesn&#039;t mean you have to use it. It depend on a lot of things. For instance, I wouldn&#039;t give the same attention to different parts of code. Some times I prefer the &quot;quick and dirty&quot; solutions, sometimes I prefer the &quot;overkill&quot;.</description>
		<content:encoded><![CDATA[<p>hermitC, I don&#8217;t think the traffic light is a good example. Because private are useful for the lone programmer as well.<br />
This pattern can be useful for a lone programer as well, of course it doesn&#8217;t mean you have to use it. It depend on a lot of things. For instance, I wouldn&#8217;t give the same attention to different parts of code. Some times I prefer the &#8220;quick and dirty&#8221; solutions, sometimes I prefer the &#8220;overkill&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Accessing privates without &#8216;friend&#8217;(c++) by hermitC</title>
		<link>http://www.pompidev.net/2010/01/05/accessing-privates-without-friendc/comment-page-1/#comment-163</link>
		<dc:creator>hermitC</dc:creator>
		<pubDate>Fri, 08 Jan 2010 13:23:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.pompidev.net/?p=427#comment-163</guid>
		<description>@ofer: You are right, private is just an artificial &#039;stop sign&#039; in the code.
An even better way to think of it is as a traffic light: public=green, protected=orange, private=red. It makes the compiler tell you (or other programmers using your code) what is accessible and what not.
When you are driving on a lonely road (small one-man project) there is no need for traffic lights. But chaos will rise when you enter a big city without any traffic controls.
The friend declaration is a kind of backstage pass, handed out only by the concert management. It&#039;s an exception, a privilege for a few. The pattern discussed here is a backstage pass for everyone but reduced to small areas of the backstage. The only hurdle to overcome is the extra code to derive from the Observer class for each wanted member.

Conclusion: The pattern could be useful for libraries I write and hand out to other programmers. For my one-man project it&#039;s just an overkill.</description>
		<content:encoded><![CDATA[<p>@ofer: You are right, private is just an artificial &#8217;stop sign&#8217; in the code.<br />
An even better way to think of it is as a traffic light: public=green, protected=orange, private=red. It makes the compiler tell you (or other programmers using your code) what is accessible and what not.<br />
When you are driving on a lonely road (small one-man project) there is no need for traffic lights. But chaos will rise when you enter a big city without any traffic controls.<br />
The friend declaration is a kind of backstage pass, handed out only by the concert management. It&#8217;s an exception, a privilege for a few. The pattern discussed here is a backstage pass for everyone but reduced to small areas of the backstage. The only hurdle to overcome is the extra code to derive from the Observer class for each wanted member.</p>
<p>Conclusion: The pattern could be useful for libraries I write and hand out to other programmers. For my one-man project it&#8217;s just an overkill.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Accessing privates without &#8216;friend&#8217;(c++) by ofer</title>
		<link>http://www.pompidev.net/2010/01/05/accessing-privates-without-friendc/comment-page-1/#comment-159</link>
		<dc:creator>ofer</dc:creator>
		<pubDate>Thu, 07 Jan 2010 17:43:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.pompidev.net/?p=427#comment-159</guid>
		<description>Hi hermitC,
I have been thinking about this for a bit. And I come to think of a good example to explain this.
What is &quot;needed&quot;? Do you need &#039;private:&#039;?
You know it is possible to write a complete program without using &#039;private&#039; at all! You can make everything public. private only shout a compilation error when you try to access it outside of the class.
&#039;private&#039; is useful, eventhough it doesn&#039;t change the game&#039;s logic.</description>
		<content:encoded><![CDATA[<p>Hi hermitC,<br />
I have been thinking about this for a bit. And I come to think of a good example to explain this.<br />
What is &#8220;needed&#8221;? Do you need &#8216;private:&#8217;?<br />
You know it is possible to write a complete program without using &#8216;private&#8217; at all! You can make everything public. private only shout a compilation error when you try to access it outside of the class.<br />
&#8216;private&#8217; is useful, eventhough it doesn&#8217;t change the game&#8217;s logic.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Accessing privates without &#8216;friend&#8217;(c++) by hermitC</title>
		<link>http://www.pompidev.net/2010/01/05/accessing-privates-without-friendc/comment-page-1/#comment-157</link>
		<dc:creator>hermitC</dc:creator>
		<pubDate>Thu, 07 Jan 2010 13:12:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.pompidev.net/?p=427#comment-157</guid>
		<description>Pro:
- friend declaration makes all members available to friend class, your pattern allows to publish only a part of the member data
- member access declaration via friend is done in class owning the members (changes are intrusive), your pattern allows client class to choose access itself

Contra:
- less readable
- may not work (that way) with some compilers (VS6?, I&#039;m not sure here)

Finally I can&#039;t remember any situation in which I had a need for such a specific member publication. IMHO friend declarations should be made where the affected members are declared. This guarantees that the access policy is declared at one position (central access control). Friend declarations should be used with care, not at all if possible.
I will keep this pattern in mind. Maybe there are some situations where it is useful. &#039;If you only have a hammer every problem looks like a nail&#039;.</description>
		<content:encoded><![CDATA[<p>Pro:<br />
- friend declaration makes all members available to friend class, your pattern allows to publish only a part of the member data<br />
- member access declaration via friend is done in class owning the members (changes are intrusive), your pattern allows client class to choose access itself</p>
<p>Contra:<br />
- less readable<br />
- may not work (that way) with some compilers (VS6?, I&#8217;m not sure here)</p>
<p>Finally I can&#8217;t remember any situation in which I had a need for such a specific member publication. IMHO friend declarations should be made where the affected members are declared. This guarantees that the access policy is declared at one position (central access control). Friend declarations should be used with care, not at all if possible.<br />
I will keep this pattern in mind. Maybe there are some situations where it is useful. &#8216;If you only have a hammer every problem looks like a nail&#8217;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Minimizing &#8220;thought resources&#8221; by ofer</title>
		<link>http://www.pompidev.net/2009/12/18/minimizing-thought-resources/comment-page-1/#comment-117</link>
		<dc:creator>ofer</dc:creator>
		<pubDate>Fri, 18 Dec 2009 15:43:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.pompidev.net/?p=371#comment-117</guid>
		<description>Sorry for the messy code. I am still looking for a code plugin that doesn&#039;t break the whole website template. :/</description>
		<content:encoded><![CDATA[<p>Sorry for the messy code. I am still looking for a code plugin that doesn&#8217;t break the whole website template. :/</p>
]]></content:encoded>
	</item>
</channel>
</rss>
