<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sun, 07 Sep 2008 05:08:43 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[David Hansson's Blog: The immediacy of PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/9914</guid>
      <link>http://www.phpdeveloper.org/news/9914</link>
      <description><![CDATA[<p>
As <i>Matthew Weir O'Phinney</i> <a href="http://weierophinney.net/matthew/archives/168-DHH-on-PHP.html">points out</a>, <i>David Hansson</i> (of <a href="http://rubyonrails.org/">Rails</a> fame) has posted a few <a href="http://www.loudthinking.com/posts/23-the-immediacy-of-php">comments</a> on what he calls the "immediacy of PHP".
</p>
<blockquote>
I love the fact that it's all just self-contained. That the language includes so many helpful functions in the box. [...] PHP scales down like no other package for the web and it deserves more credit for tackling that scope.
</blockquote>
<p>and to that, <i>Matthew</i> comments:</p>
<blockquote>
It's nice to see leaders of projects like Rails having this same attitude. It's a breath of fresh air in the competitive market of web development frameworks.
</blockquote>]]></description>
      <pubDate>Fri, 04 Apr 2008 11:21:10 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Rails for PHP Developers: Three New Articles Posted (Scope, Variables & RegEx)]]></title>
      <guid>http://www.phpdeveloper.org/news/9659</guid>
      <link>http://www.phpdeveloper.org/news/9659</link>
      <description><![CDATA[<p>
<i>Mike Naberezny</i> has posted a few more articles to the "Rails for PHP Developers" website (based on <a href="http://www.pragprog.com/titles/ndphpr">this book</a>) covering some more of the basics.
</p>
<p>There's three new tutorials posted:</p>
<ul>
<li><a href="http://railsforphp.com/2008/02/18/ruby-block-scope/">Ruby Block Scope</a> - the basics of Ruby block scope, a common point of confusion for PHP developers new to Ruby. 
<li><a href="http://railsforphp.com/2008/02/13/variable-arguments/">Variable Arguments</a> - an article that shows two common API patterns found in Rails, variable arguments and option hashes, and how to implement them both in PHP. 
<li><a href="http://railsforphp.com/2008/01/17/regular-expressions-in-ruby/">Regular Expressions in Ruby</a> - a useful reference that maps all of the common PHP regular expression functions to the equivalents in Ruby. 
</ul>
<p>
Check out the <a href="http://railsforphp.com/">rest of the site</a> for even more great content.
</p>]]></description>
      <pubDate>Tue, 19 Feb 2008 08:44:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Community News: Rails for PHP Developers Website Launched]]></title>
      <guid>http://www.phpdeveloper.org/news/9351</guid>
      <link>http://www.phpdeveloper.org/news/9351</link>
      <description><![CDATA[<p>
<i>Mike Naberezny</i> has start up a new resource to try to bridge some of the gap between PHP and Ruby and to help developers of either to get a bit more insight into the others' side - <a href="http://railsforphp.com/">Rails for PHP Developers</a> (based on <a href="http://www.pragprog.com/titles/ndphpr">the book</a> published by the Pragmatic Programmers).
</p>
<blockquote>
Rails for PHP Developers is a new site for PHP developers who are also interested in Rails and Ruby.  PHP and Ruby are great complementary tools that are sometimes seen as adversarial, which is really unfortunate.  We use both and we'll be writing regular articles to help cross-pollinate ideas and promote collaboration between the communities. 
</blockquote>
<p>
There's already some good content there - <a href="http://railsforphp.com/2008/01/03/useful-perlisms-in-ruby/">useful perlisms in ruby</a>, a look at <a href="http://railsforphp.com/2007/12/21/accessing-attributes-in-php-objects/">PHP object attributes and some information about <a href="http://railsforphp.com/2007/12/11/beta-2-released/">the</a> <a href="http://railsforphp.com/2007/11/08/about-the-book/">release</a> of the site itself. 
</p>]]></description>
      <pubDate>Thu, 03 Jan 2008 14:52:15 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[O'Reilly Ruby Blog: 7 reasons I switched back to PHP after 2 years on Rails]]></title>
      <guid>http://www.phpdeveloper.org/news/8709</guid>
      <link>http://www.phpdeveloper.org/news/8709</link>
      <description><![CDATA[<p>
The PHP Community is buzzing about <a href="http://www.oreillynet.com/ruby/blog/2007/09/7_reasons_i_switched_back_to_p_1.html">a new article</a>, posted on the O'Reilly Ruby blog, about how the author (<i>Derek Silvers</i> of <a href="http://www.cdbaby.com">cdbaby.com</a>) made the decision that Ruby on Rails just wasn't right for the project he was working on.
</p>
<blockquote>
<p>
Back in January 2005, I announced on the O'Reilly blog that I was going to completely scrap over 100,000 lines of messy PHP code in my existing CD Baby (cdbaby.com) website, and rewrite the entire thing in Rails, from scratch. [...] The first few months showed good progress, and Jeremy could not have been more amazing, twisting the deep inner guts of Rails to make it do things it was never intended to do.
</p>
<p>
But at every step, it seemed our needs clashed with Rails' preferences. (Like trying to turn a train into a boat. It's do-able with a lot of glue. But it's damn hard. And certainly makes you ask why you're really doing this.)
</p>
</blockquote>
<p>
Recounting the rest of the story, <i>Derek</i> mentions the turning point ("Is there anything Rails can do that PHP CAN'T do?") and the speed at which they were able to make up for the two years of lost development time. To helps others make a decision for their project, he also includes seven reasons why he made the decision to switch back, including:
</p>
<ul>
<li>Our entire company's stuff was in php: don't underestimate integration
<li>Don't want what i don't need
<li>I love SQL
<li>Programming languages are like girlfriends: the new one is better because *you* are better
</ul>
<p>
There's also been several bloggers in the PHP community that have responded to the article:
</p>
<ul>
<li><a href="http://naramore.net/blog/index.php?p=127">Elizabeth Naramore</a> - "Derek Sivers' Article on RoR vs PHP"
<li><a href="http://paul-m-jones.com/blog/?p=259">Paul Jones</a> - "Is there anything Rails can do that PHP cannot do? *No.*"
<li><a href="http://terrychay.com/blog/article/php-ruby-evil-good.shtml">Terry Chay</a> - "Why PHP triumphs over Ruby"
<li><a href="http://www.procata.com/blog/archives/2007/09/23/ruby-versus-php-or-there-and-back-again/">Jeff Moore</a> - "Ruby versus PHP or There and Back Again"
</ul>]]></description>
      <pubDate>Mon, 24 Sep 2007 08:49:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Nick Halstead's Blog: Open source Scaling Ruby on Rails vs PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/7665</guid>
      <link>http://www.phpdeveloper.org/news/7665</link>
      <description><![CDATA[<p>
On his "What I accidently learnt about programming" blog today, <i>Nick Halstead</i> shares <a href="http://blog.assembleron.com/2007/04/19/open-source-scaling-ruby-vs-php/">some of his thoughts</a> on Open Source scaling functionality in languages, specifically comparing Ruby and PHP.
</p>
<blockquote>
Compared to the current problems Rails is facing PHP is proving itself within a very wide range of sectors including the commercial sector. And although PHP in its raw state is slower to develop for and more prone to having BAD code written for it. The guys at Zend (and the open source community) are doing a great job at building a framework that is making developed quicker and enforces better code practices.
</blockquote>
<p>
He talks about the advantage of using a framework and how, because PHP is such a flexible, open language, it's easy to go "under the hood" and mess with things a bit. This is all in the scope of the issues that Rails is having and how it's a bit more difficult to make things custom to what you need.
</p>]]></description>
      <pubDate>Fri, 20 Apr 2007 07:05:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevChix: Getting started with YUI's Connection Manager in Rails and PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/7374</guid>
      <link>http://www.phpdeveloper.org/news/7374</link>
      <description><![CDATA[<p>
From the DevChix website, there's <a href="http://www.devchix.com/2007/02/28/getting-started-with-yui%e2%80%99s-connection-manager-in-rails-and-php-or-all-happy-families-are-not-alike/">this new post</a> that helps introduce developers (both in PHP and Rails environments) to hos to use the <a href="http://developer.yahoo.com/yui/connection/">Yahoo! UI connection manager</a> in their applications.
</p>
<blockquote>
This post is geared towards folks who haven't done the "A" part of "AJAX" before (And I mean the first "A", as in "Asychronous"); are new to Yahoo's implementation of the XMLHttpRequest object (The Yahoo! Connection Manager) and would like added information on how that works; or both.
</blockquote>
<p>
<i>Sarah</i> <a href="http://www.devchix.com/2007/02/28/getting-started-with-yui%e2%80%99s-connection-manager-in-rails-and-php-or-all-happy-families-are-not-alike/">starts off</a> slow with an example of making a connection to a backend PHP script as called by a HTML form. The simple example is fleshed out with a database backend (via PEAR::DB) and the Javascript to handle the response and the errors that might arise. Finally, a request can be made and the result eval-ed to give the client a nice, simple Javascript object to work with.
</p>]]></description>
      <pubDate>Fri, 02 Mar 2007 11:34:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Soledad Pendaes' Blog: PHP will never have a (real) Rails-like framework]]></title>
      <guid>http://www.phpdeveloper.org/news/7194</guid>
      <link>http://www.phpdeveloper.org/news/7194</link>
      <description><![CDATA[<p>
Well, according to <i>Soledad Pendaes</i>, PHP will <a href="http://www.soledadpenades.com/2007/01/22/php-will-never-have-a-real-rails-like-framework/">never have a (real) Rails-like framework</a> because of some of the limitations with objects inherent to the language.
</p>
<blockquote>
I know the title is harsh but it's so true. At least it is according to nowadays php's implementation of classes and objects, which do not permit to "reopen" and add or redefine new methods to an existing class definition, which is the basis upon Rails (and I presume lots more of applications and frameworks) is built.
</blockquote>
<p>
<a href="http://www.soledadpenades.com/2007/01/22/php-will-never-have-a-real-rails-like-framework/">The post</a> goes on to talk about they "why" behind the statement - basically that this kind of functionality makes it easier to "Extend. Morph. Adapt. Improve. Refine." your applications. She talks some about other frameworks that have tried to offer the same kinds of functionality Rails does (CakePHP and Symfony) but notes that they still have their limitations (in specific, mentioning CakePHP's AppModel functionality).
</p>]]></description>
      <pubDate>Wed, 31 Jan 2007 09:15:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[LoLoCoJr Blog:  Rewriting a (large) PHP application in Rails, part 2]]></title>
      <guid>http://www.phpdeveloper.org/news/6948</guid>
      <link>http://www.phpdeveloper.org/news/6948</link>
      <description><![CDATA[<p>
The LoLoCoJr site has published <a href="http://www.railsguru.com/articles/2006/12/19/rewriting-a-large-php-application-in-rails-part-2">part two</a> of the series (<a href="http://www.phpdeveloper.org/news/6895">part one</a> is here) about converting a PHP application over to Rails.
</p>
<blockquote>
In my <a href="http://www.railsguru.com/articles/2006/12/13/convertinga-large-php-application-to-rails-part-1">previous post</a> on this topic I described the method we used to convert a legacy MySQL PHP database to a Rails conformant PostgreSQL hosted version. In this article I will tell a bit about how we converted the HTML of the application to Rails layout templates and partials.
</blockquote>
<p>
It's a <a href="http://www.railsguru.com/articles/2006/12/19/rewriting-a-large-php-application-in-rails-part-2">quickpost</a> this time showing how to extract the rendered HTML from the page's output, writing out some of the business logic, and a mention of test driven development versus write test after developing methods.
</p>]]></description>
      <pubDate>Wed, 20 Dec 2006 10:17:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Felix Geisendorfer's Blog: Modeling relationships in CakePHP (faking Rails' ThroughAssociation)]]></title>
      <guid>http://www.phpdeveloper.org/news/6579</guid>
      <link>http://www.phpdeveloper.org/news/6579</link>
      <description><![CDATA[<p>
On the ThinkingPHP Blog today, <i>Felix</i> brings another feature of the popular Rails framework over to the world of PHP - in <a href="http://www.cakephp.org">CakePHP</a> specifically:
</p>
<blockquote>
The idea behind it is pretty simple: Often you have two Models that are associated with each other where setting the associations themself via hasAndBelongsToMany isn't quite enough for what you try to to.
</blockquote>
<p>
He <a href="http://www.thinkingphp.org/2006/10/26/modeling-relationships-in-cakephp-faking-rails-throughassociation/">gives an example</a> of the code, a method to get around the typical CRUD pattern without breaking it. His example involves users and groups and storing information surrounding them. Storing the data about the groups and which users belong to which groups is easy - it's when you start including some meta-data into the mix that things get a little complex.
</p>
<p>
He provides the sample code to make it all work - three models and three controllers - and the database structure to work behind the scenes.
</p>]]></description>
      <pubDate>Thu, 26 Oct 2006 07:12:52 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Andrei Zmievski's Blog: "PHP Eats Rails for Breakfast"]]></title>
      <guid>http://www.phpdeveloper.org/news/6544</guid>
      <link>http://www.phpdeveloper.org/news/6544</link>
      <description><![CDATA[<p>
In his <a href="http://www.gravitonic.com/blog/archives/000195.html">latest</a>, <i>Andrei Zmievski</i> talks a bit about <a href="http://ohloh.net/wiki/articles/php_eats_rails">an article</a> over on the Ohloh.net website (statistics site that analyzes the source of Open Source applications) titled "PHP Eats Rails for Breakfast".
</p>
<blockquote>
So far they've indexed over 3,000 projects and their conclusion seems to be that among Web scripting languages, PHP is the undisputed champion (as measured by the LOC count).
</blockquote>
<p>
He also notes that they've discovered something interesting - despite the lowering numbers of developers/projects being done with PHP, the code and applications seem to be growing still. <i>Andrei</i> interprets this as a positive move for developers away from the "reinvent the wheel" school of thought to a more "find something that works already and go from there".
</p>
<p>
Check out <a href="http://ohloh.net/wiki/articles/php_eats_rails">the original article</a> for more information on the stats and some charts to show the trends.
</p>]]></description>
      <pubDate>Mon, 23 Oct 2006 07:15:04 -0500</pubDate>
    </item>
  </channel>
</rss>
