<?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: P4A 3: the first PHP framework with chain effect :-)</title>
	<atom:link href="http://fabrizioballiano.net/2008/02/14/p4a-3-the-first-php-framework-with-chain-effect/feed/" rel="self" type="application/rss+xml" />
	<link>http://fabrizioballiano.net/2008/02/14/p4a-3-the-first-php-framework-with-chain-effect/</link>
	<description></description>
	<lastBuildDate>Fri, 03 Feb 2012 15:05:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Fabrizio Balliano</title>
		<link>http://fabrizioballiano.net/2008/02/14/p4a-3-the-first-php-framework-with-chain-effect/comment-page-1/#comment-264</link>
		<dc:creator>Fabrizio Balliano</dc:creator>
		<pubDate>Sat, 23 Feb 2008 19:10:54 +0000</pubDate>
		<guid isPermaLink="false">http://fabrizioballiano.net/2008/02/14/p4a-3-the-first-php-framework-with-chain-effect/#comment-264</guid>
		<description>@joshdavey: post updated with a small note, anyway:
- before writing the title I googled for info about other frameworks but nothing significant was found
- googling for &quot;cakephp chainability&quot; does not return any significant result
- I thought that title was just a nice claim for a nice feature and it&#039;s not meant to be some kind of supremacy declaration I don&#039;t really care about
- in your framework I can&#039;t find any &quot;return $this&quot; thus you&#039;re not supporting chainability
- using PHP5 does not mean you support chainability, if you don&#039;t return $this on every method you&#039;re not supporting chainability
- Zend Framework does not support chainability, sorry

I wrote this long comment not because I felt I had to justify myself but because there are too many unuseful wars within the free software environment which should be avoided.</description>
		<content:encoded><![CDATA[<p>@joshdavey: post updated with a small note, anyway:<br />
- before writing the title I googled for info about other frameworks but nothing significant was found<br />
- googling for &#8220;cakephp chainability&#8221; does not return any significant result<br />
- I thought that title was just a nice claim for a nice feature and it&#8217;s not meant to be some kind of supremacy declaration I don&#8217;t really care about<br />
- in your framework I can&#8217;t find any &#8220;return $this&#8221; thus you&#8217;re not supporting chainability<br />
- using PHP5 does not mean you support chainability, if you don&#8217;t return $this on every method you&#8217;re not supporting chainability<br />
- Zend Framework does not support chainability, sorry</p>
<p>I wrote this long comment not because I felt I had to justify myself but because there are too many unuseful wars within the free software environment which should be avoided.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joshdavey</title>
		<link>http://fabrizioballiano.net/2008/02/14/p4a-3-the-first-php-framework-with-chain-effect/comment-page-1/#comment-257</link>
		<dc:creator>joshdavey</dc:creator>
		<pubDate>Sat, 23 Feb 2008 04:11:41 +0000</pubDate>
		<guid isPermaLink="false">http://fabrizioballiano.net/2008/02/14/p4a-3-the-first-php-framework-with-chain-effect/#comment-257</guid>
		<description>First php framework with chain effect? Doesn&#039;t cake already do this as long as you&#039;re using PHP5? I&#039;m pretty sure Zend allows this for many of their classes and my own framework has been using method chaining for it&#039;s activeRecord class for ages.</description>
		<content:encoded><![CDATA[<p>First php framework with chain effect? Doesn&#8217;t cake already do this as long as you&#8217;re using PHP5? I&#8217;m pretty sure Zend allows this for many of their classes and my own framework has been using method chaining for it&#8217;s activeRecord class for ages.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabrizio Balliano</title>
		<link>http://fabrizioballiano.net/2008/02/14/p4a-3-the-first-php-framework-with-chain-effect/comment-page-1/#comment-245</link>
		<dc:creator>Fabrizio Balliano</dc:creator>
		<pubDate>Fri, 22 Feb 2008 09:13:56 +0000</pubDate>
		<guid isPermaLink="false">http://fabrizioballiano.net/2008/02/14/p4a-3-the-first-php-framework-with-chain-effect/#comment-245</guid>
		<description>@CriticJohn: thank you for your suggestions, I&#039;ll take a look at them but I can anticipate that some of them are quite difficult to implement and... actually some of them make me think &quot;better to use ruby instead&quot; because creating wrap-around things for unsupported PHP core constructor could lead to very tricky results.

anyway, we&#039;ll talk about those after the 3.0 release, we still have a lot of work to do :-)))</description>
		<content:encoded><![CDATA[<p>@CriticJohn: thank you for your suggestions, I&#8217;ll take a look at them but I can anticipate that some of them are quite difficult to implement and&#8230; actually some of them make me think &#8220;better to use ruby instead&#8221; because creating wrap-around things for unsupported PHP core constructor could lead to very tricky results.</p>
<p>anyway, we&#8217;ll talk about those after the 3.0 release, we still have a lot of work to do :-)))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CriticJohn</title>
		<link>http://fabrizioballiano.net/2008/02/14/p4a-3-the-first-php-framework-with-chain-effect/comment-page-1/#comment-239</link>
		<dc:creator>CriticJohn</dc:creator>
		<pubDate>Thu, 21 Feb 2008 19:08:26 +0000</pubDate>
		<guid isPermaLink="false">http://fabrizioballiano.net/2008/02/14/p4a-3-the-first-php-framework-with-chain-effect/#comment-239</guid>
		<description>This is nice! :-) :-)
Years ago, when i wrote code in Java, this was the best thing about it - 
foo = myObj.getThis().doThat().finallyThis().toString().Tokenize().getFirst();

and so on.

Somewhere down the line, with all the xml config files and the elaborate directory structures, J2EE lost its way among coders without huge biceps and triceps.
You&#039;re bringing back the good things in Java to PHP, albeit via inspiration from jQuery.

Thank you! :-) 

Other interesting things can be found on the blog of Rob Rohan where he explains a simple idea behind &quot;Simple MVC ASP&quot;.

It might look a toy before P4A, but the simplicity angle is VERY important.
The code is released in public domain, so taking a concept from there isn&#039;t going to rub anyone the wrong way :-)

Now all we need is Ruby-style &quot;5.times&quot;.... Iterators, simulated by a global function or class.

Maybe o(5)-&gt;times(&#039;callback_fn_name&#039;) ... ?
(&#039;o&#039; is short for &#039;object&#039; like h() or $() in Prototype.js)

Another really useful addition to this code-simplifcation goal is the classic ASP structure &quot;With ... End With&quot; :

With obj do
  .count = 5
  .max = 10
  .min = 1
  .name = &quot;foobar&quot;
End with

Which might mean something like this:

$this-&gt;setCount(5) 
     -&gt;setMax(10)
     -&gt;setMin(1)
     -&gt;setName(&#039;foobar&#039;)
;
//each of setCount(), setMax(), etc. returns $this.

So, mutiple &quot;$this-&gt;&quot; are removed so that code looks less redundant.

Right now, there is so much of :
$this-&gt;foobar-&gt;do_something($abcd);
$this-&gt;foobar-&gt;do_something_else($efgh);
$this-&gt;foobar-&gt;do_something($ijkl);
$this-&gt;foobar-&gt;do_something($mnop);
------------------------
With .. End With

What say? makes sense?</description>
		<content:encoded><![CDATA[<p>This is nice! :-) :-)<br />
Years ago, when i wrote code in Java, this was the best thing about it &#8211;<br />
foo = myObj.getThis().doThat().finallyThis().toString().Tokenize().getFirst();</p>
<p>and so on.</p>
<p>Somewhere down the line, with all the xml config files and the elaborate directory structures, J2EE lost its way among coders without huge biceps and triceps.<br />
You&#8217;re bringing back the good things in Java to PHP, albeit via inspiration from jQuery.</p>
<p>Thank you! :-) </p>
<p>Other interesting things can be found on the blog of Rob Rohan where he explains a simple idea behind &#8220;Simple MVC ASP&#8221;.</p>
<p>It might look a toy before P4A, but the simplicity angle is VERY important.<br />
The code is released in public domain, so taking a concept from there isn&#8217;t going to rub anyone the wrong way :-)</p>
<p>Now all we need is Ruby-style &#8220;5.times&#8221;&#8230;. Iterators, simulated by a global function or class.</p>
<p>Maybe o(5)-&gt;times(&#8216;callback_fn_name&#8217;) &#8230; ?<br />
(&#8216;o&#8217; is short for &#8216;object&#8217; like h() or $() in Prototype.js)</p>
<p>Another really useful addition to this code-simplifcation goal is the classic ASP structure &#8220;With &#8230; End With&#8221; :</p>
<p>With obj do<br />
  .count = 5<br />
  .max = 10<br />
  .min = 1<br />
  .name = &#8220;foobar&#8221;<br />
End with</p>
<p>Which might mean something like this:</p>
<p>$this-&gt;setCount(5)<br />
     -&gt;setMax(10)<br />
     -&gt;setMin(1)<br />
     -&gt;setName(&#8216;foobar&#8217;)<br />
;<br />
//each of setCount(), setMax(), etc. returns $this.</p>
<p>So, mutiple &#8220;$this-&gt;&#8221; are removed so that code looks less redundant.</p>
<p>Right now, there is so much of :<br />
$this-&gt;foobar-&gt;do_something($abcd);<br />
$this-&gt;foobar-&gt;do_something_else($efgh);<br />
$this-&gt;foobar-&gt;do_something($ijkl);<br />
$this-&gt;foobar-&gt;do_something($mnop);<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
With .. End With</p>
<p>What say? makes sense?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Huston, we landed on the moon and it&#8217;s full of coders, P4A 3 must be released! @ Fabrizio Balliano's blog</title>
		<link>http://fabrizioballiano.net/2008/02/14/p4a-3-the-first-php-framework-with-chain-effect/comment-page-1/#comment-202</link>
		<dc:creator>Huston, we landed on the moon and it&#8217;s full of coders, P4A 3 must be released! @ Fabrizio Balliano's blog</dc:creator>
		<pubDate>Mon, 18 Feb 2008 07:38:50 +0000</pubDate>
		<guid isPermaLink="false">http://fabrizioballiano.net/2008/02/14/p4a-3-the-first-php-framework-with-chain-effect/#comment-202</guid>
		<description>[...] chainability [...]</description>
		<content:encoded><![CDATA[<p>[...] chainability [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabrizio Balliano</title>
		<link>http://fabrizioballiano.net/2008/02/14/p4a-3-the-first-php-framework-with-chain-effect/comment-page-1/#comment-200</link>
		<dc:creator>Fabrizio Balliano</dc:creator>
		<pubDate>Mon, 18 Feb 2008 07:02:07 +0000</pubDate>
		<guid isPermaLink="false">http://fabrizioballiano.net/2008/02/14/p4a-3-the-first-php-framework-with-chain-effect/#comment-200</guid>
		<description>@Carlo: you didn&#039;t pay attention... it&#039;s available since midnight, right on time... :-)</description>
		<content:encoded><![CDATA[<p>@Carlo: you didn&#8217;t pay attention&#8230; it&#8217;s available since midnight, right on time&#8230; :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: P4A_Fan</title>
		<link>http://fabrizioballiano.net/2008/02/14/p4a-3-the-first-php-framework-with-chain-effect/comment-page-1/#comment-199</link>
		<dc:creator>P4A_Fan</dc:creator>
		<pubDate>Mon, 18 Feb 2008 02:12:13 +0000</pubDate>
		<guid isPermaLink="false">http://fabrizioballiano.net/2008/02/14/p4a-3-the-first-php-framework-with-chain-effect/#comment-199</guid>
		<description>Very cool!!!  Can&#039;t wait until this version is released!</description>
		<content:encoded><![CDATA[<p>Very cool!!!  Can&#8217;t wait until this version is released!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlo</title>
		<link>http://fabrizioballiano.net/2008/02/14/p4a-3-the-first-php-framework-with-chain-effect/comment-page-1/#comment-198</link>
		<dc:creator>Carlo</dc:creator>
		<pubDate>Mon, 18 Feb 2008 00:57:51 +0000</pubDate>
		<guid isPermaLink="false">http://fabrizioballiano.net/2008/02/14/p4a-3-the-first-php-framework-with-chain-effect/#comment-198</guid>
		<description>Come on it&#039;s monday! Where&#039;s the preview...</description>
		<content:encoded><![CDATA[<p>Come on it&#8217;s monday! Where&#8217;s the preview&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabrizio Balliano</title>
		<link>http://fabrizioballiano.net/2008/02/14/p4a-3-the-first-php-framework-with-chain-effect/comment-page-1/#comment-197</link>
		<dc:creator>Fabrizio Balliano</dc:creator>
		<pubDate>Fri, 15 Feb 2008 13:39:21 +0000</pubDate>
		<guid isPermaLink="false">http://fabrizioballiano.net/2008/02/14/p4a-3-the-first-php-framework-with-chain-effect/#comment-197</guid>
		<description>@Paulo: hahahah great comment! :-))</description>
		<content:encoded><![CDATA[<p>@Paulo: hahahah great comment! :-))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paulo</title>
		<link>http://fabrizioballiano.net/2008/02/14/p4a-3-the-first-php-framework-with-chain-effect/comment-page-1/#comment-196</link>
		<dc:creator>Paulo</dc:creator>
		<pubDate>Fri, 15 Feb 2008 11:02:28 +0000</pubDate>
		<guid isPermaLink="false">http://fabrizioballiano.net/2008/02/14/p4a-3-the-first-php-framework-with-chain-effect/#comment-196</guid>
		<description>Sweet new feature!!!
Now, answering you... Yesssssss, counting down the hours...</description>
		<content:encoded><![CDATA[<p>Sweet new feature!!!<br />
Now, answering you&#8230; Yesssssss, counting down the hours&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

