<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
<channel>
    
    <title> Rasmus' Toys Page - Comments</title>
    <link>http://toys.lerdorf.com/</link>
    <description> Rasmus' Toys Page - </description>
    <dc:language>en</dc:language>
    <admin:errorReportsTo rdf:resource="mailto:" />
    <generator>Serendipity 1.6-alpha1 - http://www.s9y.org/</generator>
    <pubDate>Fri, 12 Mar 2010 00:18:27 GMT</pubDate>

    <image>
        <url>http://toys.lerdorf.com/templates/default/img/s9y_banner_small.png</url>
        <title>RSS:  Rasmus' Toys Page - Comments -  Rasmus' Toys Page - </title>
        <link>http://toys.lerdorf.com/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Nifty Future Tips: HipHop PHP - Nifty Trick?</title>
    <link>http://toys.lerdorf.com/archives/53-HipHop-PHP-Nifty-Trick.html#c4474</link>
            <category></category>
    
    <comments>http://toys.lerdorf.com/archives/53-HipHop-PHP-Nifty-Trick.html#comments</comments>
    <wfw:comment>http://toys.lerdorf.com/wfwcomment.php?cid=53</wfw:comment>

    

    <author>nospam@example.com (Nifty Future Tips)</author>
    <content:encoded>
    I think it would be useful, even if it had to require type hinting and return type hinting. But even that could be overcome with the zval struct couldn&#039;t it? 
    </content:encoded>

    <pubDate>Wed, 10 Mar 2010 12:27:58 -0800</pubDate>
    <guid isPermaLink="false">http://toys.lerdorf.com/archives/53-guid.html#c4474</guid>
    
</item>
<item>
    <title>justpassingby: The no-framework PHP MVC framework</title>
    <link>http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC-framework.html#c4467</link>
            <category></category>
    
    <comments>http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC-framework.html#comments</comments>
    <wfw:comment>http://toys.lerdorf.com/wfwcomment.php?cid=38</wfw:comment>

    

    <author>nospam@example.com (justpassingby)</author>
    <content:encoded>
    @Jose/@retryistherealretry

I think Ruby&#039;s Sinatra and PHP&#039;s rough equivalent - Fat-Free Framework (http://fatfree.sourceforge.net) - are both in the right direction. Programmer has freedom in how MVC design pattern should be separated, or even no separation at all. No clutter in directory structures. It implements the front controller design pattern just as well, so you have all routers/controllers in a single file. But even that is under your control.

All told, it could qualify as a no-framework framework. It&#039;s not the size, the speed, the OOP or procedural style employed, blah, blah, that matters. It&#039;s how elegant the code is, how the code is easily distributed across a team, and how usable it is. 
    </content:encoded>

    <pubDate>Thu, 25 Feb 2010 05:51:46 -0800</pubDate>
    <guid isPermaLink="false">http://toys.lerdorf.com/archives/38-guid.html#c4467</guid>
    
</item>
<item>
    <title>Jose: The no-framework PHP MVC framework</title>
    <link>http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC-framework.html#c4465</link>
            <category></category>
    
    <comments>http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC-framework.html#comments</comments>
    <wfw:comment>http://toys.lerdorf.com/wfwcomment.php?cid=38</wfw:comment>

    

    <author>nospam@example.com (Jose)</author>
    <content:encoded>
    Like retry said &quot;A php &#039;framework&#039; that lets you pick and choose components to use within your design structure rather than force structure upon you would suit php best. And isn&#039;t that pretty much what 3rd party libs were before the framework fad came about?&quot;

I think that will make a lot of sense for PHP, I think like having a YUI library approach, but for PHP. That would be really cool!! 
    </content:encoded>

    <pubDate>Tue, 23 Feb 2010 20:30:41 -0800</pubDate>
    <guid isPermaLink="false">http://toys.lerdorf.com/archives/38-guid.html#c4465</guid>
    
</item>
<item>
    <title>solostyle: The no-framework PHP MVC framework</title>
    <link>http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC-framework.html#c4459</link>
            <category></category>
    
    <comments>http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC-framework.html#comments</comments>
    <wfw:comment>http://toys.lerdorf.com/wfwcomment.php?cid=38</wfw:comment>

    

    <author>nospam@example.com (solostyle)</author>
    <content:encoded>
    Hello! 

I&#039;ve been implementing my own mvc in php recently and stumbled upon this, which is in many ways similar to what I&#039;ve been writing. I have a concern about the controller, which i am facing right now in my code.

When I look at your code, it seems like the real controller is in common.js&#039;s usage of event listeners in fancyItems(). Initial page load is controlled by the thing you call the controller: add_c. I understand that in conventional mvc definition, your add_c is the controller. But really add_c does nothing more than what back-end model should be doing anyway. The view never directly interacts with the model in your example; it interacts only with your add_c controller. So I consider add_c, what you call the controller, really a layer upon the model. The view is defined by your html, but more significantly it is defined by the javascript. AND, in my opinion, it looks like the javascript also functions as your controller. (My purist view thinks &quot;controller&quot; refers to the thing that processes user input and decides what to do with it, &quot;view&quot; referring to the output and how to serve it.) 

Do you see it this way, too, or could you? In my application, I have taken to using asyc requests to update the view (and I use YUI 2.7), and my javascript ends up doing what you do--it passes some parameters and a resource (URL-type thing) to the back-end code, which figures out which back-end controller (similar to your add_c) and view (similar to your add.php) to give control to. I can see flaws with this.. it just doesn&#039;t seem as beautiful as I imagined my mvc would be. Of course, I am willing to incorporate some imperfections, but only if they are totally necessary.

I guess my concern is really highlighting a flaw I see in the way mvc is being defined/interpreted/implemented... Maybe it would be useful to separate client-side view and controller functionality. So the callback function fN() would be seen more as a view updater, the clickFormEvent() more as the controller. Or if not separate them, at least begin to think of them in this way, so that when the application is expanded and more things are added, you might consider more of a separation. Any thoughts? 
    </content:encoded>

    <pubDate>Fri, 12 Feb 2010 16:05:55 -0800</pubDate>
    <guid isPermaLink="false">http://toys.lerdorf.com/archives/38-guid.html#c4459</guid>
    
</item>
<item>
    <title>Sam Shull: HipHop PHP - Nifty Trick?</title>
    <link>http://toys.lerdorf.com/archives/53-HipHop-PHP-Nifty-Trick.html#c4455</link>
            <category></category>
    
    <comments>http://toys.lerdorf.com/archives/53-HipHop-PHP-Nifty-Trick.html#comments</comments>
    <wfw:comment>http://toys.lerdorf.com/wfwcomment.php?cid=53</wfw:comment>

    

    <author>nospam@example.com (Sam Shull)</author>
    <content:encoded>
    Yes, I have seen CodeGen_PECL, I guess I was just asking about something that didn&#039;t involve writing C, but could still be compiled. 
    </content:encoded>

    <pubDate>Fri, 12 Feb 2010 05:39:00 -0800</pubDate>
    <guid isPermaLink="false">http://toys.lerdorf.com/archives/53-guid.html#c4455</guid>
    
</item>
<item>
    <title>Rasmus: HipHop PHP - Nifty Trick?</title>
    <link>http://toys.lerdorf.com/archives/53-HipHop-PHP-Nifty-Trick.html#c4453</link>
            <category></category>
    
    <comments>http://toys.lerdorf.com/archives/53-HipHop-PHP-Nifty-Trick.html#comments</comments>
    <wfw:comment>http://toys.lerdorf.com/wfwcomment.php?cid=53</wfw:comment>

    

    <author>nospam@example.com (Rasmus)</author>
    <content:encoded>
    We already have ext/skel in the source tree and the more powerful CodeGen_Pecl.  See http://pear.php.net/package/CodeGen_PECL which lets you define much of an extension in an xml file.  Just about all parts of an extension can be described, and while it doesn&#039;t mean you don&#039;t have to write some C or C++ code to do what your extension is supposed to do, it does free you from needing to know the details of the PHP APIs.  Documentation is here: http://php-baustelle.de/CodeGen_PECL/manual.html 
    </content:encoded>

    <pubDate>Thu, 11 Feb 2010 20:49:19 -0800</pubDate>
    <guid isPermaLink="false">http://toys.lerdorf.com/archives/53-guid.html#c4453</guid>
    
</item>
<item>
    <title>Sam Shull: HipHop PHP - Nifty Trick?</title>
    <link>http://toys.lerdorf.com/archives/53-HipHop-PHP-Nifty-Trick.html#c4452</link>
            <category></category>
    
    <comments>http://toys.lerdorf.com/archives/53-HipHop-PHP-Nifty-Trick.html#comments</comments>
    <wfw:comment>http://toys.lerdorf.com/wfwcomment.php?cid=53</wfw:comment>

    

    <author>nospam@example.com (Sam Shull)</author>
    <content:encoded>
    I think that HipHop is pretty cool, but not being much of a C/C++ programmer, I was hoping for a code transformer that output Zend API C code, that could then be compiled in the normal phpize way. Something along the lines of:

function x ($a, $b)
{
    return $a * $b;
}

might out put an extension skeleton that contained a function like

PHP_FUNCTION(x)
{
    /*I have no idea on how to implement this in the Zend API, but you get the idea*/
     long *a, &lt;strong&gt;b;
     if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, &quot;ll&quot;, &amp;a, &amp;b) == FAILURE) {
		return;
	}
     return_value = a &lt;/strong&gt; b;
}

or something to that extent. 

I think it would be useful, even if it had to require type hinting and return type hinting. But even that could be overcome with the zval struct couldn&#039;t it? Have you heard of anyone trying to do this type of code transformation? I feel like it would make these really complex frameworks so much simpler to implement IMHO.

(Couldn&#039;t figure out how to prevent ** from being parsed as bold, sorry) 
    </content:encoded>

    <pubDate>Thu, 11 Feb 2010 19:21:41 -0800</pubDate>
    <guid isPermaLink="false">http://toys.lerdorf.com/archives/53-guid.html#c4452</guid>
    
</item>
<item>
    <title>Ma'moon Al-Akash: A quick look at XHP</title>
    <link>http://toys.lerdorf.com/archives/54-A-quick-look-at-XHP.html#c4446</link>
            <category></category>
    
    <comments>http://toys.lerdorf.com/archives/54-A-quick-look-at-XHP.html#comments</comments>
    <wfw:comment>http://toys.lerdorf.com/wfwcomment.php?cid=54</wfw:comment>

    

    <author>nospam@example.com (Ma'moon Al-Akash)</author>
    <content:encoded>
    Hello Rasmus,
Do you trust &quot;Siege&quot; more than &quot;ab&quot; or any other benchmarking tool for benchmarking your web apps?

Thank You! 
    </content:encoded>

    <pubDate>Wed, 10 Feb 2010 15:32:41 -0800</pubDate>
    <guid isPermaLink="false">http://toys.lerdorf.com/archives/54-guid.html#c4446</guid>
    
</item>
<item>
    <title>James Printer: A quick look at XHP</title>
    <link>http://toys.lerdorf.com/archives/54-A-quick-look-at-XHP.html#c4444</link>
            <category></category>
    
    <comments>http://toys.lerdorf.com/archives/54-A-quick-look-at-XHP.html#comments</comments>
    <wfw:comment>http://toys.lerdorf.com/wfwcomment.php?cid=54</wfw:comment>

    

    <author>nospam@example.com (James Printer)</author>
    <content:encoded>
    Thankyou. 
    </content:encoded>

    <pubDate>Wed, 10 Feb 2010 13:55:39 -0800</pubDate>
    <guid isPermaLink="false">http://toys.lerdorf.com/archives/54-guid.html#c4444</guid>
    
</item>
<item>
    <title>Rasmus: A quick look at XHP</title>
    <link>http://toys.lerdorf.com/archives/54-A-quick-look-at-XHP.html#c4441</link>
            <category></category>
    
    <comments>http://toys.lerdorf.com/archives/54-A-quick-look-at-XHP.html#comments</comments>
    <wfw:comment>http://toys.lerdorf.com/wfwcomment.php?cid=54</wfw:comment>

    

    <author>nospam@example.com (Rasmus)</author>
    <content:encoded>
    The callgraphs come from Callgrind and exported from kcachegrind. 
    </content:encoded>

    <pubDate>Wed, 10 Feb 2010 13:09:49 -0800</pubDate>
    <guid isPermaLink="false">http://toys.lerdorf.com/archives/54-guid.html#c4441</guid>
    
</item>

</channel>
</rss>