<?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: Use a convention to structure your code</title>
	<atom:link href="http://cakebaker.42dh.com/2007/09/24/use-a-convention-to-structure-your-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://cakebaker.42dh.com/2007/09/24/use-a-convention-to-structure-your-code/</link>
	<description>baking cakes with CakePHP</description>
	<lastBuildDate>Tue, 31 Jan 2012 15:12:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/09/24/use-a-convention-to-structure-your-code/comment-page-1/#comment-15319</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Tue, 25 Sep 2007 16:57:15 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/09/24/use-a-convention-to-structure-your-code/#comment-15319</guid>
		<description>@all: Thanks for your comments!

@Brandon: I think one reason why many people stay with PHP 4 is that nobody wants to pay to migrate old stuff. 

@Mladen: Yeah, I am aware of this button, but unfortunately it mixes the variables and methods. And that&#039;s something I don&#039;t like ;-)

@Henrik: Currently I use PDT 1.0 (http://www.eclipse.org/pdt) together with the Subclipse plug-in.</description>
		<content:encoded><![CDATA[<p>@all: Thanks for your comments!</p>
<p>@Brandon: I think one reason why many people stay with PHP 4 is that nobody wants to pay to migrate old stuff. </p>
<p>@Mladen: Yeah, I am aware of this button, but unfortunately it mixes the variables and methods. And that&#8217;s something I don&#8217;t like ;-)</p>
<p>@Henrik: Currently I use PDT 1.0 (<a href="http://www.eclipse.org/pdt" rel="nofollow">http://www.eclipse.org/pdt</a>) together with the Subclipse plug-in.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henrik</title>
		<link>http://cakebaker.42dh.com/2007/09/24/use-a-convention-to-structure-your-code/comment-page-1/#comment-15229</link>
		<dc:creator>Henrik</dc:creator>
		<pubDate>Tue, 25 Sep 2007 07:23:42 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/09/24/use-a-convention-to-structure-your-code/#comment-15229</guid>
		<description>What kind of eclipse setup do u use??</description>
		<content:encoded><![CDATA[<p>What kind of eclipse setup do u use??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mladen Mihajlovic</title>
		<link>http://cakebaker.42dh.com/2007/09/24/use-a-convention-to-structure-your-code/comment-page-1/#comment-15215</link>
		<dc:creator>Mladen Mihajlovic</dc:creator>
		<pubDate>Tue, 25 Sep 2007 05:46:32 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/09/24/use-a-convention-to-structure-your-code/#comment-15215</guid>
		<description>You don&#039;t actually need to write the methods in alphabetical order for them to appear in that order in the outline view - there is a button there to sort them.</description>
		<content:encoded><![CDATA[<p>You don&#8217;t actually need to write the methods in alphabetical order for them to appear in that order in the outline view &#8211; there is a button there to sort them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brandon</title>
		<link>http://cakebaker.42dh.com/2007/09/24/use-a-convention-to-structure-your-code/comment-page-1/#comment-15163</link>
		<dc:creator>brandon</dc:creator>
		<pubDate>Mon, 24 Sep 2007 23:45:40 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/09/24/use-a-convention-to-structure-your-code/#comment-15163</guid>
		<description>IMO, I think variables and methods should always be sorted alphabetically.  I think this based on how one &quot;reads&quot; source code.  Grouping semantically equivalently methods make the source easier to read and especially easier to find.

The access of those methods (public, private, protected, etc) is ancillary when reading source code and only matters when you are instantiating/extending the object.

I think we could all benefit from some more defined standards when it comes to naming variables and methods.  For instance, &quot;_&quot; and &quot;__&quot; should no longer be used outside PHP4, get/set methods, or even type hinting on variables names.

On another note, why do you think so many people are still stuck on PHP4? In mid July the PHP Team announced they will no longer release new versions of 4.x at the end of this year and will stop ALL work on by Aug 2008.</description>
		<content:encoded><![CDATA[<p>IMO, I think variables and methods should always be sorted alphabetically.  I think this based on how one &#8220;reads&#8221; source code.  Grouping semantically equivalently methods make the source easier to read and especially easier to find.</p>
<p>The access of those methods (public, private, protected, etc) is ancillary when reading source code and only matters when you are instantiating/extending the object.</p>
<p>I think we could all benefit from some more defined standards when it comes to naming variables and methods.  For instance, &#8220;_&#8221; and &#8220;__&#8221; should no longer be used outside PHP4, get/set methods, or even type hinting on variables names.</p>
<p>On another note, why do you think so many people are still stuck on PHP4? In mid July the PHP Team announced they will no longer release new versions of 4.x at the end of this year and will stop ALL work on by Aug 2008.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bkuhns</title>
		<link>http://cakebaker.42dh.com/2007/09/24/use-a-convention-to-structure-your-code/comment-page-1/#comment-15081</link>
		<dc:creator>bkuhns</dc:creator>
		<pubDate>Mon, 24 Sep 2007 15:49:05 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/09/24/use-a-convention-to-structure-your-code/#comment-15081</guid>
		<description>This is pretty good advice, though I&#039;ve been doing something similar for a while. With cakePHP, I write my controllers with all the public actions first (if there are &quot;admin_&quot; actions, they go after the normal ones), followed by public functions that may be called through requestAction. Finally, any private functions come at the very end. This really helps when jumping around controllers so you know where in the file to look for certain things.</description>
		<content:encoded><![CDATA[<p>This is pretty good advice, though I&#8217;ve been doing something similar for a while. With cakePHP, I write my controllers with all the public actions first (if there are &#8220;admin_&#8221; actions, they go after the normal ones), followed by public functions that may be called through requestAction. Finally, any private functions come at the very end. This really helps when jumping around controllers so you know where in the file to look for certain things.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

