<?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: Couple of convenience methods to add to your bootstrap.php</title>
	<atom:link href="http://nuts-and-bolts-of-cakephp.com/2010/07/03/couple-of-convenience-methods-to-add-to-your-bootstrap-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://nuts-and-bolts-of-cakephp.com/2010/07/03/couple-of-convenience-methods-to-add-to-your-bootstrap-php/</link>
	<description></description>
	<lastBuildDate>Thu, 02 Feb 2012 09:32:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Angel S. Moreno</title>
		<link>http://nuts-and-bolts-of-cakephp.com/2010/07/03/couple-of-convenience-methods-to-add-to-your-bootstrap-php/#comment-10487</link>
		<dc:creator>Angel S. Moreno</dc:creator>
		<pubDate>Wed, 11 Aug 2010 23:57:48 +0000</pubDate>
		<guid isPermaLink="false">http://teknoid.wordpress.com/?p=1017#comment-10487</guid>
		<description>@petteyg359 great point! thanks for the tip! Did some benchmarks and the performance is night and day, best way to go is definitely non-wrapper functions inside my wrapper functions.

@teknoid if you are too busy with a cakephp-krumo then I could jump in.</description>
		<content:encoded><![CDATA[<p>@petteyg359 great point! thanks for the tip! Did some benchmarks and the performance is night and day, best way to go is definitely non-wrapper functions inside my wrapper functions.</p>
<p>@teknoid if you are too busy with a cakephp-krumo then I could jump in.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: teknoid</title>
		<link>http://nuts-and-bolts-of-cakephp.com/2010/07/03/couple-of-convenience-methods-to-add-to-your-bootstrap-php/#comment-10286</link>
		<dc:creator>teknoid</dc:creator>
		<pubDate>Sun, 04 Jul 2010 16:57:33 +0000</pubDate>
		<guid isPermaLink="false">http://teknoid.wordpress.com/?p=1017#comment-10286</guid>
		<description>@petteyg359

Exactly, that&#039;s why they are being removed from the usage inside the core. However, when developing they are simply short-cuts and in case of someone accidentally forgetting to remove print_r() in production, can actually quite valuable.

@Angel S. Moreno

Same problem, doesn&#039;t properly display certain values.

A side note, it is actually  quite nice to implement a solution like: http://krumo.sourceforge.net/
(Hmm... I should probably do an example for cake...)</description>
		<content:encoded><![CDATA[<p>@petteyg359</p>
<p>Exactly, that&#8217;s why they are being removed from the usage inside the core. However, when developing they are simply short-cuts and in case of someone accidentally forgetting to remove print_r() in production, can actually quite valuable.</p>
<p>@Angel S. Moreno</p>
<p>Same problem, doesn&#8217;t properly display certain values.</p>
<p>A side note, it is actually  quite nice to implement a solution like: <a href="http://krumo.sourceforge.net/">http://krumo.sourceforge.net/</a><br />
(Hmm&#8230; I should probably do an example for cake&#8230;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: petteyg359</title>
		<link>http://nuts-and-bolts-of-cakephp.com/2010/07/03/couple-of-convenience-methods-to-add-to-your-bootstrap-php/#comment-10285</link>
		<dc:creator>petteyg359</dc:creator>
		<pubDate>Sun, 04 Jul 2010 14:51:17 +0000</pubDate>
		<guid isPermaLink="false">http://teknoid.wordpress.com/?p=1017#comment-10285</guid>
		<description>The wrapper functions may save you a few keystrokes, or many if you use them often, but they slow down execution. Using a wrapper function inside of your own function saves you a few keystrokes one time only. Just type the full function name...</description>
		<content:encoded><![CDATA[<p>The wrapper functions may save you a few keystrokes, or many if you use them often, but they slow down execution. Using a wrapper function inside of your own function saves you a few keystrokes one time only. Just type the full function name&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Angel S. Moreno</title>
		<link>http://nuts-and-bolts-of-cakephp.com/2010/07/03/couple-of-convenience-methods-to-add-to-your-bootstrap-php/#comment-10284</link>
		<dc:creator>Angel S. Moreno</dc:creator>
		<pubDate>Sat, 03 Jul 2010 19:46:35 +0000</pubDate>
		<guid isPermaLink="false">http://teknoid.wordpress.com/?p=1017#comment-10284</guid>
		<description>what about prd ?

function prd($var){
     if(Configure::read() &gt; 0) {
          pr($var);
          die();
     }
}</description>
		<content:encoded><![CDATA[<p>what about prd ?</p>
<p>function prd($var){<br />
     if(Configure::read() > 0) {<br />
          pr($var);<br />
          die();<br />
     }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: teknoid</title>
		<link>http://nuts-and-bolts-of-cakephp.com/2010/07/03/couple-of-convenience-methods-to-add-to-your-bootstrap-php/#comment-10283</link>
		<dc:creator>teknoid</dc:creator>
		<pubDate>Sat, 03 Jul 2010 18:42:17 +0000</pubDate>
		<guid isPermaLink="false">http://teknoid.wordpress.com/?p=1017#comment-10283</guid>
		<description>@CAT Shannon

LOL, Duh... very good point :) Anyways in  that case the &lt;code&gt;pre&lt;/code&gt; tags are not really needed anyway. I&#039;ve just simplified the function a little. But your suggestions is just as good.

@petteyg359

Thanks for sharing.</description>
		<content:encoded><![CDATA[<p>@CAT Shannon</p>
<p>LOL, Duh&#8230; very good point :) Anyways in  that case the <code>pre</code> tags are not really needed anyway. I&#8217;ve just simplified the function a little. But your suggestions is just as good.</p>
<p>@petteyg359</p>
<p>Thanks for sharing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CAT Shannon</title>
		<link>http://nuts-and-bolts-of-cakephp.com/2010/07/03/couple-of-convenience-methods-to-add-to-your-bootstrap-php/#comment-10282</link>
		<dc:creator>CAT Shannon</dc:creator>
		<pubDate>Sat, 03 Jul 2010 18:09:10 +0000</pubDate>
		<guid isPermaLink="false">http://teknoid.wordpress.com/?p=1017#comment-10282</guid>
		<description>I think there is a small mistake in the &lt;em&gt;vdd&lt;/em&gt; function. The close tag for pre will never occur because is after die().
In this way it works fine.
&lt;code&gt;
function vdd($var) {
  if(Configure::read() &gt; 0) {
    echo &#039;&lt;pre&gt;&#039;;
    var_dump($var);
    echo &#039;&lt;/pre&gt;&#039;;
    die(); // or exit;
  }
}
&lt;/code&gt;

Anyway is not a relevant mistake. You make a great job.</description>
		<content:encoded><![CDATA[<p>I think there is a small mistake in the <em>vdd</em> function. The close tag for pre will never occur because is after die().<br />
In this way it works fine.<br />
<code><br />
function vdd($var) {<br />
  if(Configure::read() > 0) {<br />
    echo '
<pre>';
    var_dump($var);
    echo '</pre>
<p>';<br />
    die(); // or exit;<br />
  }<br />
}<br />
</code></p>
<p>Anyway is not a relevant mistake. You make a great job.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tweets that mention Couple of convenience methods to add to your bootstrap.php « nuts and bolts of cakephp -- Topsy.com</title>
		<link>http://nuts-and-bolts-of-cakephp.com/2010/07/03/couple-of-convenience-methods-to-add-to-your-bootstrap-php/#comment-10281</link>
		<dc:creator>Tweets that mention Couple of convenience methods to add to your bootstrap.php « nuts and bolts of cakephp -- Topsy.com</dc:creator>
		<pubDate>Sat, 03 Jul 2010 16:12:47 +0000</pubDate>
		<guid isPermaLink="false">http://teknoid.wordpress.com/?p=1017#comment-10281</guid>
		<description>[...] This post was mentioned on Twitter by Dennis James. Dennis James said: Reading: Couple of convenience methods to add to your bootstrap.php: Although most of the convenience methods will... http://bit.ly/ciQTm4 [...]</description>
		<content:encoded><![CDATA[<p>[...] This post was mentioned on Twitter by Dennis James. Dennis James said: Reading: Couple of convenience methods to add to your bootstrap.php: Although most of the convenience methods will&#8230; <a href="http://bit.ly/ciQTm4">http://bit.ly/ciQTm4</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: petteyg359</title>
		<link>http://nuts-and-bolts-of-cakephp.com/2010/07/03/couple-of-convenience-methods-to-add-to-your-bootstrap-php/#comment-10280</link>
		<dc:creator>petteyg359</dc:creator>
		<pubDate>Sat, 03 Jul 2010 15:08:10 +0000</pubDate>
		<guid isPermaLink="false">http://teknoid.wordpress.com/?p=1017#comment-10280</guid>
		<description>Typed too fast. Replace echo $b with var_dump($b) :)</description>
		<content:encoded><![CDATA[<p>Typed too fast. Replace echo $b with var_dump($b) :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: petteyg359</title>
		<link>http://nuts-and-bolts-of-cakephp.com/2010/07/03/couple-of-convenience-methods-to-add-to-your-bootstrap-php/#comment-10279</link>
		<dc:creator>petteyg359</dc:creator>
		<pubDate>Sat, 03 Jul 2010 15:07:10 +0000</pubDate>
		<guid isPermaLink="false">http://teknoid.wordpress.com/?p=1017#comment-10279</guid>
		<description>&lt;code&gt;function vd($var) {
 if (Configure::read() &gt; 0) {
  foreach($var as $a =&gt; $b) {
   echo $a;
   if(is_array($b)) {
    vd($b);
   } else {
    echo $b;
   }
  }
 }
}&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p><code>function vd($var) {<br />
 if (Configure::read() > 0) {<br />
  foreach($var as $a => $b) {<br />
   echo $a;<br />
   if(is_array($b)) {<br />
    vd($b);<br />
   } else {<br />
    echo $b;<br />
   }<br />
  }<br />
 }<br />
}</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>

