<?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 on: Not everything has to be public</title>
	<atom:link href="http://cakebaker.42dh.com/2008/07/08/not-everything-has-to-be-public/feed/" rel="self" type="application/rss+xml" />
	<link>http://cakebaker.42dh.com/2008/07/08/not-everything-has-to-be-public/</link>
	<description>baking cakes with CakePHP</description>
	<lastBuildDate>Tue, 16 Mar 2010 15:25:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: New Age/Misconceptioned Private methods &#171; Something on Everything</title>
		<link>http://cakebaker.42dh.com/2008/07/08/not-everything-has-to-be-public/comment-page-1/#comment-104260</link>
		<dc:creator>New Age/Misconceptioned Private methods &#171; Something on Everything</dc:creator>
		<pubDate>Sun, 24 Aug 2008 04:19:18 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=621#comment-104260</guid>
		<description>[...] Crawling around CakePHP&#8217;s source, you&#8217;ll find some private methods on Model. Model::_find{type} methods are just for api concistency purposes and to centralize default operations on find options - so you don&#8217;t have to call a __setupFind() before each custom find method you write, so it is a case where a private method is really needed, because calling those _find{types} methods would have no usage, as all they do is a query setup and it&#8217;s results manipulation. And it is just one example - here&#8217;s another: http://cakebaker.42dh.com/2008/07/08/not-everything-has-to-be-public/ [...]</description>
		<content:encoded><![CDATA[<p>[...] Crawling around CakePHP&#8217;s source, you&#8217;ll find some private methods on Model. Model::_find{type} methods are just for api concistency purposes and to centralize default operations on find options &#8211; so you don&#8217;t have to call a __setupFind() before each custom find method you write, so it is a case where a private method is really needed, because calling those _find{types} methods would have no usage, as all they do is a query setup and it&#8217;s results manipulation. And it is just one example &#8211; here&#8217;s another: <a href="http://cakebaker.42dh.com/2008/07/08/not-everything-has-to-be-public/" rel="nofollow">http://cakebaker.42dh.com/2008/07/08/not-everything-has-to-be-public/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2008/07/08/not-everything-has-to-be-public/comment-page-1/#comment-98247</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Mon, 14 Jul 2008 14:22:34 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=621#comment-98247</guid>
		<description>@Peter, Shihan: Thanks for your comments!

@Peter: Imho it is good to have such articles from time to time, they force you to think about what you do and why you do it. But yes, I was also a bit surprised to read such an article on the Debuggable blog ;-)</description>
		<content:encoded><![CDATA[<p>@Peter, Shihan: Thanks for your comments!</p>
<p>@Peter: Imho it is good to have such articles from time to time, they force you to think about what you do and why you do it. But yes, I was also a bit surprised to read such an article on the Debuggable blog ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: M N Islam Shihan</title>
		<link>http://cakebaker.42dh.com/2008/07/08/not-everything-has-to-be-public/comment-page-1/#comment-97942</link>
		<dc:creator>M N Islam Shihan</dc:creator>
		<pubDate>Fri, 11 Jul 2008 23:43:04 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=621#comment-97942</guid>
		<description>Hi Deniel,

Your idea is almost identical to me. I&#039;ve submitted my comments on Felix&#039;s post and hence not repeating same here. You may have a look at that post at http://debuggable.com/posts/programming-psychology-ii-private-methods:481ed862-b0d8-4a0e-9247-165c4834cda3#comment-4877e9aa-cf90-4cb1-954b-361e4834cda3

You might get more ideas there on this funky false topic.

Regards,
Shihan</description>
		<content:encoded><![CDATA[<p>Hi Deniel,</p>
<p>Your idea is almost identical to me. I&#8217;ve submitted my comments on Felix&#8217;s post and hence not repeating same here. You may have a look at that post at <a href="http://debuggable.com/posts/programming-psychology-ii-private-methods:481ed862-b0d8-4a0e-9247-165c4834cda3#comment-4877e9aa-cf90-4cb1-954b-361e4834cda3" rel="nofollow">http://debuggable.com/posts/programming-psychology-ii-private-methods:481ed862-b0d8-4a0e-9247-165c4834cda3#comment-4877e9aa-cf90-4cb1-954b-361e4834cda3</a></p>
<p>You might get more ideas there on this funky false topic.</p>
<p>Regards,<br />
Shihan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Butler</title>
		<link>http://cakebaker.42dh.com/2008/07/08/not-everything-has-to-be-public/comment-page-1/#comment-97907</link>
		<dc:creator>Peter Butler</dc:creator>
		<pubDate>Fri, 11 Jul 2008 14:45:24 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=621#comment-97907</guid>
		<description>I am absolutely with you on this one, and as far as I&#039;m concerned, making proper use of public/private and protected methods goes right up there with correctly commenting code, oop evolved to ensure better encapsulation and code re-use for a reason, just as application frameworks such as CakePHP have evolved for much the same reason, by following standards, and conventions, everything becomes much easier to work with, we stop reinventing the wheel, all become more productive and take things forward.

I am a huge fan of debuggable, but this time I think they are way off the mark.</description>
		<content:encoded><![CDATA[<p>I am absolutely with you on this one, and as far as I&#8217;m concerned, making proper use of public/private and protected methods goes right up there with correctly commenting code, oop evolved to ensure better encapsulation and code re-use for a reason, just as application frameworks such as CakePHP have evolved for much the same reason, by following standards, and conventions, everything becomes much easier to work with, we stop reinventing the wheel, all become more productive and take things forward.</p>
<p>I am a huge fan of debuggable, but this time I think they are way off the mark.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: This week in Cake (part 4) &#124; Personal weblog of Robert Beekman</title>
		<link>http://cakebaker.42dh.com/2008/07/08/not-everything-has-to-be-public/comment-page-1/#comment-97893</link>
		<dc:creator>This week in Cake (part 4) &#124; Personal weblog of Robert Beekman</dc:creator>
		<pubDate>Fri, 11 Jul 2008 10:10:27 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=621#comment-97893</guid>
		<description>[...] methods. Debuggable begins by writing a post about not using them and Cakebaker responds with a number of arguments and an example that you do need to use [...]</description>
		<content:encoded><![CDATA[<p>[...] methods. Debuggable begins by writing a post about not using them and Cakebaker responds with a number of arguments and an example that you do need to use [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sander</title>
		<link>http://cakebaker.42dh.com/2008/07/08/not-everything-has-to-be-public/comment-page-1/#comment-97884</link>
		<dc:creator>Sander</dc:creator>
		<pubDate>Fri, 11 Jul 2008 08:05:48 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=621#comment-97884</guid>
		<description>Hear ye, hear ye!</description>
		<content:encoded><![CDATA[<p>Hear ye, hear ye!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2008/07/08/not-everything-has-to-be-public/comment-page-1/#comment-97824</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Thu, 10 Jul 2008 14:45:11 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=621#comment-97824</guid>
		<description>@Frédéric: Thanks for your comment! And yes, interfaces are a powerful concept to make software more flexible. 

@Matt: Thanks for the hint, I changed it in the article. It seems &quot;coke automate&quot; is Swiss English ;-)</description>
		<content:encoded><![CDATA[<p>@Frédéric: Thanks for your comment! And yes, interfaces are a powerful concept to make software more flexible. </p>
<p>@Matt: Thanks for the hint, I changed it in the article. It seems &#8220;coke automate&#8221; is Swiss English ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Huggins</title>
		<link>http://cakebaker.42dh.com/2008/07/08/not-everything-has-to-be-public/comment-page-1/#comment-97798</link>
		<dc:creator>Matt Huggins</dc:creator>
		<pubDate>Thu, 10 Jul 2008 06:37:26 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=621#comment-97798</guid>
		<description>Definitely took me a few minutes to figure out what &quot;coke automate&quot; meant!  If anyone else is wondering, it means Coke machine. :P</description>
		<content:encoded><![CDATA[<p>Definitely took me a few minutes to figure out what &#8220;coke automate&#8221; meant!  If anyone else is wondering, it means Coke machine. :P</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frédéric Wenzel</title>
		<link>http://cakebaker.42dh.com/2008/07/08/not-everything-has-to-be-public/comment-page-1/#comment-97772</link>
		<dc:creator>Frédéric Wenzel</dc:creator>
		<pubDate>Wed, 09 Jul 2008 23:03:27 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=621#comment-97772</guid>
		<description>In addition to not wanting other people to access something, having defined public interfaces will ensure that even a year or two down the road you still won&#039;t rely on dependencies you didn&#039;t think about when writing your object in the first place. You can then replace it with something better, without worrying if somewhere in your project you may have used that method you always thought was not meant to be used by the outside world.

Defining and using clean interfaces is one of the major points dividing hobby hackers from professional software engineers.</description>
		<content:encoded><![CDATA[<p>In addition to not wanting other people to access something, having defined public interfaces will ensure that even a year or two down the road you still won&#8217;t rely on dependencies you didn&#8217;t think about when writing your object in the first place. You can then replace it with something better, without worrying if somewhere in your project you may have used that method you always thought was not meant to be used by the outside world.</p>
<p>Defining and using clean interfaces is one of the major points dividing hobby hackers from professional software engineers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2008/07/08/not-everything-has-to-be-public/comment-page-1/#comment-97688</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Tue, 08 Jul 2008 17:16:16 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=621#comment-97688</guid>
		<description>@Adam, polerin: Thanks for your comments!

@Adam: Yes, if the requirements are different, you have to build a different machine.

@polerin: Yes, encapsulation and re-usability are important benefits of having private/protected methods.</description>
		<content:encoded><![CDATA[<p>@Adam, polerin: Thanks for your comments!</p>
<p>@Adam: Yes, if the requirements are different, you have to build a different machine.</p>
<p>@polerin: Yes, encapsulation and re-usability are important benefits of having private/protected methods.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
