<?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: My Coding Style</title>
	<atom:link href="http://www.tutwow.com/php/my-coding-style/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tutwow.com/php/my-coding-style/</link>
	<description>Playing Creativity Tag</description>
	<lastBuildDate>Thu, 29 Jul 2010 18:38:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Jon Daley</title>
		<link>http://www.tutwow.com/php/my-coding-style/comment-page-1/#comment-1420</link>
		<dc:creator>Jon Daley</dc:creator>
		<pubDate>Sat, 22 Aug 2009 14:14:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.tutwow.com/WP25/?p=10#comment-1420</guid>
		<description>I am big on comments, but extra comments just waste space - I only read two lines of your first example, and I think the second comment shouldn&#039;t be there:

Code: unset($_SESSION[&quot;useredit&quot;);
Comment // unset the useredit variable

A better comment would be *why* are you unsetting it every time it is set - perhaps it shouldn&#039;t be a session variable?</description>
		<content:encoded><![CDATA[<p>I am big on comments, but extra comments just waste space &#8211; I only read two lines of your first example, and I think the second comment shouldn&#8217;t be there:</p>
<p>Code: unset($_SESSION[&#8220;useredit&#8221;);<br />
Comment // unset the useredit variable</p>
<p>A better comment would be *why* are you unsetting it every time it is set &#8211; perhaps it shouldn&#8217;t be a session variable?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://www.tutwow.com/php/my-coding-style/comment-page-1/#comment-1414</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Wed, 19 Aug 2009 11:08:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.tutwow.com/WP25/?p=10#comment-1414</guid>
		<description>What about structuring your code into classes and functions? Then you have come somewhere. And read Code Complete.</description>
		<content:encoded><![CDATA[<p>What about structuring your code into classes and functions? Then you have come somewhere. And read Code Complete.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Montana Flynn</title>
		<link>http://www.tutwow.com/php/my-coding-style/comment-page-1/#comment-1375</link>
		<dc:creator>Montana Flynn</dc:creator>
		<pubDate>Tue, 09 Jun 2009 07:55:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.tutwow.com/WP25/?p=10#comment-1375</guid>
		<description>Great post, I really need to start doing this with my code since I am a total novice in PHP.   Thanks to Iain as well.</description>
		<content:encoded><![CDATA[<p>Great post, I really need to start doing this with my code since I am a total novice in PHP.   Thanks to Iain as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Iain Nash - Code Joust</title>
		<link>http://www.tutwow.com/php/my-coding-style/comment-page-1/#comment-507</link>
		<dc:creator>Iain Nash - Code Joust</dc:creator>
		<pubDate>Tue, 07 Apr 2009 13:12:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.tutwow.com/WP25/?p=10#comment-507</guid>
		<description>Really, Really great article.
However, I think this should be filed under php also... you rarely have to do this with HTML.
Another thing is the general syntax for docblocks (as they are called) is /** (line) ** (line) **/, which is colored differently in IDEs and interpreted by robots (if you ever need that done) as standard documentation.
And http://aptana.com/ is my favorite ide, and it colors everything, and offers a &quot;format&quot; function, which is nice if you copy+pasted stuff, wrote quickly and forgot to indent/space etc.
And-- Don&#039;t worry about the size of your comments, they won&#039;t increase load time.
The Zend articles are very good covering this.
Another tidbit is that it is MUCH better to use &lt;?php to open php, and, if your file is php-only, you don&#039;t need closing tags, in fact, that decreases the processing time.

Iain Nash - http://codejoust.com/</description>
		<content:encoded><![CDATA[<p>Really, Really great article.<br />
However, I think this should be filed under php also&#8230; you rarely have to do this with HTML.<br />
Another thing is the general syntax for docblocks (as they are called) is /** (line) ** (line) **/, which is colored differently in IDEs and interpreted by robots (if you ever need that done) as standard documentation.<br />
And <a href="http://aptana.com/" rel="nofollow">http://aptana.com/</a> is my favorite ide, and it colors everything, and offers a &#8220;format&#8221; function, which is nice if you copy+pasted stuff, wrote quickly and forgot to indent/space etc.<br />
And&#8211; Don&#8217;t worry about the size of your comments, they won&#8217;t increase load time.<br />
The Zend articles are very good covering this.<br />
Another tidbit is that it is MUCH better to use &lt;?php to open php, and, if your file is php-only, you don&#8217;t need closing tags, in fact, that decreases the processing time.</p>
<p>Iain Nash &#8211; <a href="http://codejoust.com/" rel="nofollow">http://codejoust.com/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dale</title>
		<link>http://www.tutwow.com/php/my-coding-style/comment-page-1/#comment-4</link>
		<dc:creator>Dale</dc:creator>
		<pubDate>Sun, 21 Sep 2008 12:29:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.tutwow.com/WP25/?p=10#comment-4</guid>
		<description>Unlike me... who just writes a load of the code into a file and makes it nice and messy so only I can understand it. :)</description>
		<content:encoded><![CDATA[<p>Unlike me&#8230; who just writes a load of the code into a file and makes it nice and messy so only I can understand it. <img src='http://www.tutwow.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
