<?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: 21 Tips to Make Your PHP Code Better</title>
	<atom:link href="http://www.tuttoaster.com/20-tips-to-make-your-php-code-better/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tuttoaster.com/20-tips-to-make-your-php-code-better/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=20-tips-to-make-your-php-code-better</link>
	<description>Free Web and Graphic Design tutorials</description>
	<lastBuildDate>Wed, 27 Apr 2011 17:18:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: asulyk.com</title>
		<link>http://www.tuttoaster.com/20-tips-to-make-your-php-code-better/#comment-32750</link>
		<dc:creator>asulyk.com</dc:creator>
		<pubDate>Sat, 12 Feb 2011 19:11:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.tuttoaster.com/?p=3729#comment-32750</guid>
		<description>&lt;strong&gt;20 Tips to Make Your PHP Code Better...&lt;/strong&gt;

The most used and well documented programming language for web development is PHP, but it has some problems as a language (every language does)....</description>
		<content:encoded><![CDATA[<p><strong>20 Tips to Make Your PHP Code Better&#8230;</strong></p>
<p>The most used and well documented programming language for web development is PHP, but it has some problems as a language (every language does)&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 21 Tips to Make Your PHP Code Better &#124; PHP Ocean</title>
		<link>http://www.tuttoaster.com/20-tips-to-make-your-php-code-better/#comment-7788</link>
		<dc:creator>21 Tips to Make Your PHP Code Better &#124; PHP Ocean</dc:creator>
		<pubDate>Thu, 09 Sep 2010 14:22:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.tuttoaster.com/?p=3729#comment-7788</guid>
		<description>[...] Website: 21 Tips to Make Your PHP Code Better [...]</description>
		<content:encoded><![CDATA[<p>[...] Website: 21 Tips to Make Your PHP Code Better [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jose</title>
		<link>http://www.tuttoaster.com/20-tips-to-make-your-php-code-better/#comment-391</link>
		<dc:creator>Jose</dc:creator>
		<pubDate>Sun, 23 May 2010 10:46:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.tuttoaster.com/?p=3729#comment-391</guid>
		<description>@Stasovsky. If you don&#039;t get something, just let me know and I&#039;ll try to explain it better ;)</description>
		<content:encoded><![CDATA[<p>@Stasovsky. If you don&#8217;t get something, just let me know and I&#8217;ll try to explain it better <img src='http://www.tuttoaster.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stasovsky</title>
		<link>http://www.tuttoaster.com/20-tips-to-make-your-php-code-better/#comment-390</link>
		<dc:creator>Stasovsky</dc:creator>
		<pubDate>Sat, 22 May 2010 21:27:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.tuttoaster.com/?p=3729#comment-390</guid>
		<description>cool, I almost understood everything))</description>
		<content:encoded><![CDATA[<p>cool, I almost understood everything))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Calcular el tiempo de ejecución de un script PHP &#124; Otro Blog Más</title>
		<link>http://www.tuttoaster.com/20-tips-to-make-your-php-code-better/#comment-389</link>
		<dc:creator>Calcular el tiempo de ejecución de un script PHP &#124; Otro Blog Más</dc:creator>
		<pubDate>Fri, 30 Apr 2010 06:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.tuttoaster.com/?p=3729#comment-389</guid>
		<description>[...] Vía Tuttoaster [...]</description>
		<content:encoded><![CDATA[<p>[...] Vía Tuttoaster [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 20 Tips to Make Your PHP Code Better &#124; Design Newz</title>
		<link>http://www.tuttoaster.com/20-tips-to-make-your-php-code-better/#comment-388</link>
		<dc:creator>20 Tips to Make Your PHP Code Better &#124; Design Newz</dc:creator>
		<pubDate>Thu, 29 Apr 2010 17:46:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.tuttoaster.com/?p=3729#comment-388</guid>
		<description>[...] 20 Tips to Make Your PHP Code Better [...]</description>
		<content:encoded><![CDATA[<p>[...] 20 Tips to Make Your PHP Code Better [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 20 Tips to Make Your PHP Code Better &#124; TutToaster &#124; Source code bank</title>
		<link>http://www.tuttoaster.com/20-tips-to-make-your-php-code-better/#comment-387</link>
		<dc:creator>20 Tips to Make Your PHP Code Better &#124; TutToaster &#124; Source code bank</dc:creator>
		<pubDate>Thu, 29 Apr 2010 13:36:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.tuttoaster.com/?p=3729#comment-387</guid>
		<description>[...] link: 20 Tips to Make Your PHP Code Better &#124; TutToaster       If you enjoyed this article please consider sharing [...]</description>
		<content:encoded><![CDATA[<p>[...] link: 20 Tips to Make Your PHP Code Better | TutToaster       If you enjoyed this article please consider sharing [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jose</title>
		<link>http://www.tuttoaster.com/20-tips-to-make-your-php-code-better/#comment-386</link>
		<dc:creator>Jose</dc:creator>
		<pubDate>Thu, 29 Apr 2010 11:44:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.tuttoaster.com/?p=3729#comment-386</guid>
		<description>@aditia. Yes, actually it&#039;s better to follow the style of the project where we are working on. If we work on a huge project and we are new there we should see its style and try to follow it, because other coders&#039;ll thank us. Thanks for the comment!</description>
		<content:encoded><![CDATA[<p>@aditia. Yes, actually it&#8217;s better to follow the style of the project where we are working on. If we work on a huge project and we are new there we should see its style and try to follow it, because other coders&#8217;ll thank us. Thanks for the comment!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aditia</title>
		<link>http://www.tuttoaster.com/20-tips-to-make-your-php-code-better/#comment-385</link>
		<dc:creator>aditia</dc:creator>
		<pubDate>Thu, 29 Apr 2010 07:43:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.tuttoaster.com/?p=3729#comment-385</guid>
		<description>And if you are using framework it&#039;s better to follow the framework coding style, for example codeigniter and cakephp have a different coding style, maybe this is only simple thing, but sometimes make me confuse if the coding style not consistent</description>
		<content:encoded><![CDATA[<p>And if you are using framework it&#8217;s better to follow the framework coding style, for example codeigniter and cakephp have a different coding style, maybe this is only simple thing, but sometimes make me confuse if the coding style not consistent</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jose</title>
		<link>http://www.tuttoaster.com/20-tips-to-make-your-php-code-better/#comment-384</link>
		<dc:creator>Jose</dc:creator>
		<pubDate>Sun, 25 Apr 2010 18:35:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.tuttoaster.com/?p=3729#comment-384</guid>
		<description>@Nathan. Hello and thank you, I really appreciate the comment. Let me write the reply point by point:

Point 4, 5, 7, 9, 10 and 17 we agree so I won&#039;t say anything more about them :)

1.
The reason I&#039;ve said to use var_dump is because sometimes installing a debugger can be hard. In a usual code var_dump is pretty enough, and sometimes is more comfortable because you can type 20 variables in the same line.

2.
That function is a little bit old, but, yes, that parameter make things easier. According to the file, of course it&#039;s better having a class, but it&#039;s just an example and the reason why I put those functions in a file is just for making the final code cleaner.

3.
The problem is as developers we come from many languages, and if we are used to develop with a style it&#039;s difficult to change it. Standards are ok, but getting used to them can be a long process. With my advice I just meant we should respect a pattern, not forgetting about standards.

6.
I suspect we are not talking about the same thing here. The point is to notice that we usually use &quot;two false&quot; when it&#039;s easier just use a true. I&#039;m not talking about the meaning of enable or disable.

8.
Actually I haven&#039;t shown the actual point of having getters and setters, it was just the syntax. But having setters and getters can be useful for having a password where users can set it but not seeing its content, having a username where you can get the value but not setting it...and many others. But it&#039;s perfectly correct, of course you can generate with a function dynamic setters and getters, but that&#039;s a little bit harder and I just wanted to show the &quot;classic&quot; way.

11.
Character encoding is the correct term, but actually it seems clear when I&#039;m talking about é characters in the next paragraph.

12.
I don&#039;t know if you&#039;re trying to say I don&#039;t know OO, or just putting a link. Here I meant that when we build classes we have always to try make them as independent as possible, but when we have someone&#039;s classes, then everything can happen :) and checking exceptions or errors coming from that class is a must.

About the two 12&#039;s sorry, it was my mistake, and thank you for letting me know it.

13.
I thought when I was writing this that &quot;interface&quot; could be misunderstood. I meant interfaces as in an API or a control panel, that means methods which allow us to access to the class and give us some kind of responses. Not the OO term of interface, which is a very different thing.

15.
Good advice! But I was just trying to notice that we have to take care of the variables we are using.

16.
Family is just a term to mean we have to use the Object Oriented feature that PHP has. Of course I could put a lot more examples but the one I put is related and based on that feature. Perhaps I had to put another showing how to use the abstract concept in PHP.

18.
I think we should know how to do a thing if we are using a class which does. That means if we are using a framework as CodeIgniter we should be able to develop all the framework (or at least the part we are using) by ourselves and using the framework is just for saving time. Of course sometimes it&#039;s better think about what we need and if we really have to use a framework for that.

As I&#039;ve said before, thanks for the comment!</description>
		<content:encoded><![CDATA[<p>@Nathan. Hello and thank you, I really appreciate the comment. Let me write the reply point by point:</p>
<p>Point 4, 5, 7, 9, 10 and 17 we agree so I won&#8217;t say anything more about them <img src='http://www.tuttoaster.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>1.<br />
The reason I&#8217;ve said to use var_dump is because sometimes installing a debugger can be hard. In a usual code var_dump is pretty enough, and sometimes is more comfortable because you can type 20 variables in the same line.</p>
<p>2.<br />
That function is a little bit old, but, yes, that parameter make things easier. According to the file, of course it&#8217;s better having a class, but it&#8217;s just an example and the reason why I put those functions in a file is just for making the final code cleaner.</p>
<p>3.<br />
The problem is as developers we come from many languages, and if we are used to develop with a style it&#8217;s difficult to change it. Standards are ok, but getting used to them can be a long process. With my advice I just meant we should respect a pattern, not forgetting about standards.</p>
<p>6.<br />
I suspect we are not talking about the same thing here. The point is to notice that we usually use &#8220;two false&#8221; when it&#8217;s easier just use a true. I&#8217;m not talking about the meaning of enable or disable.</p>
<p>8.<br />
Actually I haven&#8217;t shown the actual point of having getters and setters, it was just the syntax. But having setters and getters can be useful for having a password where users can set it but not seeing its content, having a username where you can get the value but not setting it&#8230;and many others. But it&#8217;s perfectly correct, of course you can generate with a function dynamic setters and getters, but that&#8217;s a little bit harder and I just wanted to show the &#8220;classic&#8221; way.</p>
<p>11.<br />
Character encoding is the correct term, but actually it seems clear when I&#8217;m talking about é characters in the next paragraph.</p>
<p>12.<br />
I don&#8217;t know if you&#8217;re trying to say I don&#8217;t know OO, or just putting a link. Here I meant that when we build classes we have always to try make them as independent as possible, but when we have someone&#8217;s classes, then everything can happen <img src='http://www.tuttoaster.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  and checking exceptions or errors coming from that class is a must.</p>
<p>About the two 12&#8242;s sorry, it was my mistake, and thank you for letting me know it.</p>
<p>13.<br />
I thought when I was writing this that &#8220;interface&#8221; could be misunderstood. I meant interfaces as in an API or a control panel, that means methods which allow us to access to the class and give us some kind of responses. Not the OO term of interface, which is a very different thing.</p>
<p>15.<br />
Good advice! But I was just trying to notice that we have to take care of the variables we are using.</p>
<p>16.<br />
Family is just a term to mean we have to use the Object Oriented feature that PHP has. Of course I could put a lot more examples but the one I put is related and based on that feature. Perhaps I had to put another showing how to use the abstract concept in PHP.</p>
<p>18.<br />
I think we should know how to do a thing if we are using a class which does. That means if we are using a framework as CodeIgniter we should be able to develop all the framework (or at least the part we are using) by ourselves and using the framework is just for saving time. Of course sometimes it&#8217;s better think about what we need and if we really have to use a framework for that.</p>
<p>As I&#8217;ve said before, thanks for the comment!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

