<?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>Wed, 19 Jun 2013 17:27:43 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Raphael Stolt's Blog: Rails for PHP Developers book review]]></title>
      <guid>http://www.phpdeveloper.org/news/11406</guid>
      <link>http://www.phpdeveloper.org/news/11406</link>
      <description><![CDATA[<p>
<i>Raphael Stolt</i> has <A href="http://raphaelstolt.blogspot.com/2008/11/rails-for-php-developers-book-review.html">done a review</a> of a book that's helping bridge the gap between Rails and PHP for those already using the PHP language. The book "Rails for PHP Developers" (part of the Pragmatic Programmers series of books, authored by <i>Derek DeVries</i> and <i>Mike Naberezny</i>) is a guide to learning Ruby on Rails from a PHP developer's perspective.
</p>
<blockquote>
The e-book version of the Pragmatic Programmers release <A href="http://www.pragprog.com/titles/ndphpr/rails-for-php-developers">Rails for PHP Developers</a> written by Derek DeVries and Mike Naberezny occupies now some of my scarce hard drive space for several months, and today I managed to hit the last page of it. In case you're interested in knowing if it's worthy to sacrifice some rare hard drive or bookshelf space for this book read on.
</blockquote>
<p>
He goes through the three parts of the book - a look at the MVC pattern, teaching some of the details of Ruby and comparing the structure of the two languages to help PHP developers relate a bit more. <i>Raphael</i> gives it good marks for being a great guide to not only Ruby and Rails but to also making it accessible for PHP developers to make a smoother transition from one to the other if they're interested.
</p>]]></description>
      <pubDate>Fri, 14 Nov 2008 07:57:40 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Andy Jeffries' Blog: Rebuilding a site from Symfony to Rails]]></title>
      <guid>http://www.phpdeveloper.org/news/11364</guid>
      <link>http://www.phpdeveloper.org/news/11364</link>
      <description><![CDATA[<p>
In a <A href="http://andyjeffries.co.uk/articles/rebuilding-a-site-from-symfony-to-rails">recent entry</a> to his blog <i>Andy Jeffries</i> gives an overview of his site's transition over from one framework to another - away from Symfony and over to Rails.
</p>
<blockquote>
I decided as I was learning/using Symfony at my contract at the time that it would be a good experiment to write it in Symfony. [...] The site did fairly well when I posted but I still posted in frequently.
</blockquote>
<p>
After redefining the site's purpose a bit, he reconsidered the language (and framework) choice and decided to do a rewrite in Rails. He gives a comparison of the process on things like lines of code, time to build, performance differences, deployment and automated testing.
</p>]]></description>
      <pubDate>Fri, 07 Nov 2008 08:47:20 -0600</pubDate>
    </item>
    <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>
  </channel>
</rss>
