<?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.4-alpha1 - http://www.s9y.org/</generator>
    <pubDate>Fri, 09 May 2008 20:09:47 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>Nazz: The no-framework PHP MVC framework</title>
    <link>http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC-framework.html#c4107</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 (Nazz)</author>
    <content:encoded>
    Personally, I don&#039;t like frameworks. I tend to spend more time trying to figure out the framework than getting anything useful done. I don&#039;t see a problem mixing php &amp;amp; html. Web pages are not that complex. Get some data and display it. Validate some input and save it. Abstracting everything out becomes a total nightmare when you try to debug it. Not only that, if you ever take over a project that uses some framework, it will take forever to figure out what the hell is going on. With php,sql,html all in one page, it is obvious and simple and for me, waay easier to maintain. I don&#039;t have to go looking for the database class here, the object class over there, blah, blah , blah.

Plus those frameworks are slow as a dog. No thanks. I stick to regular old php and a few common libraries. 
    </content:encoded>

    <pubDate>Thu, 08 May 2008 19:55:32 -0700</pubDate>
    <guid isPermaLink="false">http://toys.lerdorf.com/archives/38-guid.html#c4107</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Brian Dickson: The no-framework PHP MVC framework</title>
    <link>http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC-framework.html#c4084</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 (Brian Dickson)</author>
    <content:encoded>
    I can confirm the ideas of this article and the comments of those who agree with the objects of the article. I am living proof.

I am a PHP noob, an OOP noob and an MVC noob. You may already be thinking about dismissing my opinion before I can explain my position, pls bear with me.

I have been building websites (small ones), over the past four years using Dreamweaver, for both static and dynamic projects, (this is an instance where size DOESN&#039;T matter, trust me). It was only recently when I have been involved in the creation of one of my own projects, that I decided I would have to, do things as I did when I first became interested in computers over twenty five years ago, that is, get my hands dirty in some heavy code.

I needed a site that would through up articles and video/audio that was related to the article. I needed to create a tutorial website, that makes heavy use of tracking users actions, article use over time etc. I first looked at the two major open source frameworks, but I soon ran into obstacles when I wanted to do something specific. I spent over three months becoming familiar with both of them before realising a simple truth.

Then I spent another month researching PHP frameworks, having been sold the marketing mantra of, access to libraries, cleaner and better, more organised code. Again after trying to wrap my head around MVC and OOP, I realised that same simple truth. What is this truth I speak of?

I spent so much time learning these CMSes and frameworks, that I believe I could have competed the the whole project within the same time period, using PHP5 classes and straight HTML/CSS.

As for cleaner organised code that you can come back to in a year? I don&#039;t understand the argument. If you split your code down into manageble block, as in the example of this article, managability is not an issue.

As for code re-use? again, I don&#039;t understand. Do people not build up a library of common classes that are well commented? can you simply not include ir call these classes in your future projects or the same project?

Enough of this nonsense. It seems people against this Rasmus&#039; comments are simply wishing to defend their particular way of working.

I realise I am a guy developing on his own and the needs of a team might be different, but I doubt it.

OK, I&#039;m off to do what I should have done three months ago. Thanks Rasmus.

PS I found CodeIgniter the lightest framework out there and it doesn&#039;t impose too many restrictions. 
    </content:encoded>

    <pubDate>Mon, 14 Apr 2008 09:51:22 -0700</pubDate>
    <guid isPermaLink="false">http://toys.lerdorf.com/archives/38-guid.html#c4084</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Steve: GeoCool!</title>
    <link>http://toys.lerdorf.com/archives/35-GeoCool!.html#c4081</link>
            <category></category>
    
    <comments>http://toys.lerdorf.com/archives/35-GeoCool!.html#comments</comments>
    <wfw:comment>http://toys.lerdorf.com/wfwcomment.php?cid=35</wfw:comment>

    

    <author>nospam@example.com (Steve)</author>
    <content:encoded>
    Do I need to put a pid# in this code in order to get it working on my website?

Please help as I am trying to figure out how to get lat/long coordinates from an address someone types in, its actually a school asignment that I am having some difficulty with, I also need to get the local sunset/sunrise and time.  can someone help me please?

Thanks so much..
steve107@sympatico.ca 
    </content:encoded>

    <pubDate>Thu, 03 Apr 2008 07:20:34 -0700</pubDate>
    <guid isPermaLink="false">http://toys.lerdorf.com/archives/35-guid.html#c4081</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>jostein martinsen: Looking for a new 1U box</title>
    <link>http://toys.lerdorf.com/archives/47-Looking-for-a-new-1U-box.html#c4080</link>
            <category></category>
    
    <comments>http://toys.lerdorf.com/archives/47-Looking-for-a-new-1U-box.html#comments</comments>
    <wfw:comment>http://toys.lerdorf.com/wfwcomment.php?cid=47</wfw:comment>

    

    <author>nospam@example.com (jostein martinsen)</author>
    <content:encoded>
    http://www.xpcgear.com/sc6015ttb1.html

Here you get two servers in the same chassis for $2.8K.
So put in dual quad core cpu:s and you&#039;ll have 16cpu:s and up to 64 GB ram in the same box :) 
    </content:encoded>

    <pubDate>Wed, 02 Apr 2008 13:52:45 -0700</pubDate>
    <guid isPermaLink="false">http://toys.lerdorf.com/archives/47-guid.html#c4080</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Chris: IBM Thinkpad T42p</title>
    <link>http://toys.lerdorf.com/archives/22-IBM-Thinkpad-T42p.html#c4068</link>
            <category></category>
    
    <comments>http://toys.lerdorf.com/archives/22-IBM-Thinkpad-T42p.html#comments</comments>
    <wfw:comment>http://toys.lerdorf.com/wfwcomment.php?cid=22</wfw:comment>

    

    <author>nospam@example.com (Chris)</author>
    <content:encoded>
    Thanks a lot Rasmus!  I have a T42p myself that I run Debian Etch on.  I really liked your technique of using vnc with a secondary monitor/projector.  I set it up too just now and will hopefully use it for presentations from now on.

There&#039;s one small problem though.  Normally I just have a second monitor plugged in, and can move my cursor back and forth between screens (I&#039;m not doing anything fancy, just using the radeon driver along with a dual-head ServerLayout)  When using vncserver, though, instead of the cursor stopping at either end of the set of screens, it loops back around several times before eventually being blocked by the edge of a screen.  I&#039;m pretty sure this is the result of the cursor switching screens both when I move back and forth and when entering and exiting the xvncviewer window.  It becomes nearly impossible to remember where I am.  

Is there any way I can isolate my cursor to my thinkpad&#039;s screen so that entering the xvncviewer window is the only way that I can enter the projector&#039;s screen?  I know this is an old page of yours, but maybe you have some advice.  Thanks again for the wonderful write-up! 
    </content:encoded>

    <pubDate>Wed, 26 Mar 2008 23:06:21 -0700</pubDate>
    <guid isPermaLink="false">http://toys.lerdorf.com/archives/22-guid.html#c4068</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>P Appleton: The no-framework PHP MVC framework</title>
    <link>http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC-framework.html#c4060</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 (P Appleton)</author>
    <content:encoded>
    Thanks for the comment Rex S. I was about to throw myself into Framework Hell but was doubtful about how much use they would be long term. I am currently working on a very tightly frameworked project in .NET and it takes a very long time to make any changes and it is hard to see the logic in one place. The original code generator is no longer used and structures are now coded by hand - it takes forever and is no fun whatsoever.

For a comparison my previous project was in ASP and the majority of the logic was held in single ASP pages, maintenance was a breeze and performance was good (the projects were functionally very similar).

As a comparison I would say a similar change would take 1 hour on the non framework system and about 1 day on the frameworked system. OK the frameworked system was allowed to get out of hand but when you get a number of people doing their own thing anything can happen.

I still think a framework/code generation can be a good thing but you have to watch out for the point where it becomes a hindrance  and it this point you are probably too reliant on it to back out or abandon it.

I think Rasmus has demonstrated a viable approach to flexible development philosophy and on a more careful read though of his example it looks even better. I will be trying out his methods and will try to sneak some code generation and framework advantages alongside it. Hey  I want my cake and eat it. The jury is still out for me. Great article thanks. 
    </content:encoded>

    <pubDate>Thu, 06 Mar 2008 02:19:28 -0800</pubDate>
    <guid isPermaLink="false">http://toys.lerdorf.com/archives/38-guid.html#c4060</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Cesar D. Rodas: The no-framework PHP MVC framework</title>
    <link>http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC-framework.html#c4059</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 (Cesar D. Rodas)</author>
    <content:encoded>
    What about of Smarty in the view?, I think it will cause an extra overhead on the server...

nice post. 
    </content:encoded>

    <pubDate>Tue, 04 Mar 2008 19:58:53 -0800</pubDate>
    <guid isPermaLink="false">http://toys.lerdorf.com/archives/38-guid.html#c4059</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>tonyb: The no-framework PHP MVC framework</title>
    <link>http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC-framework.html#c4053</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 (tonyb)</author>
    <content:encoded>
    Bravo! Some sane reasoning for all this recent PHP framework madness. PHP elegance comes form it&#039;s simplicity and the ability to be used flexibly . And this framework that Rasmus illustrates, clearly illustrates the only real framework you need. It&#039;s simple PHP at its core, just seperated into the basics of MVC.

Any PHP developers that have been doing PHP long enough has developed their own frameworks, of course they are not as abstracted or generalized as the big one (PhpCake, Symfony, Seagull), but they get the job done.

Agreeing with most of the other posters, frameworks abstract the development process so much , that you&#039;ll end spending more time configuring them, looking for file(s) and overall managing the development process instead of actually developing. the time savings in my opinion are negligible and the developer time lost in learning, training or retaining the framework structure is much greater than stock PHP.

 When it&#039;s all said and done  the bulk of your coding is in the logic , the controller piece, no framework in the world simpifies that.  The only &quot;big&quot; framework I would consider is CodeIgniter, its the one the most closely resembles  a grown up version from what Rasmus illustrates here.

Programming is hard enough why add more abstraction? 
    </content:encoded>

    <pubDate>Thu, 07 Feb 2008 08:04:18 -0800</pubDate>
    <guid isPermaLink="false">http://toys.lerdorf.com/archives/38-guid.html#c4053</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Rex S. Sacayan: The no-framework PHP MVC framework</title>
    <link>http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC-framework.html#c4052</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 (Rex S. Sacayan)</author>
    <content:encoded>
    I really agree with Rasmus, it&#039;s a proven and brilliant idea, I have already proven it to myself. I have been using PHP to build website for 4 years using simple PHP programming, and it works very well. Last year I have spent most of my time learning PHP frameworks and looking which is best but I ended up quitting, I never have use any of those in building a website, It&#039;s just too complicated and hard to maintain.

I prefer to make it simple and less code as much as possible.

Clean, secure and fast, that&#039;s it!

Great article Rasmus! 
    </content:encoded>

    <pubDate>Wed, 30 Jan 2008 22:32:55 -0800</pubDate>
    <guid isPermaLink="false">http://toys.lerdorf.com/archives/38-guid.html#c4052</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Rasmus: Looking for a new 1U box</title>
    <link>http://toys.lerdorf.com/archives/47-Looking-for-a-new-1U-box.html#c4047</link>
            <category></category>
    
    <comments>http://toys.lerdorf.com/archives/47-Looking-for-a-new-1U-box.html#comments</comments>
    <wfw:comment>http://toys.lerdorf.com/wfwcomment.php?cid=47</wfw:comment>

    

    <author>nospam@example.com (Rasmus)</author>
    <content:encoded>
    Yeah, $8k is a bit high for a personal web/mail server.  I am looking more in the $2000-$2500 range. 
    </content:encoded>

    <pubDate>Sat, 12 Jan 2008 19:11:04 -0800</pubDate>
    <guid isPermaLink="false">http://toys.lerdorf.com/archives/47-guid.html#c4047</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>

</channel>
</rss>