Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Raphael Stolt's Blog:
Rails for PHP Developers book review
Nov 14, 2008 @ 13:57:40

Raphael Stolt has done a review 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 Derek DeVries and Mike Naberezny) is a guide to learning Ruby on Rails from a PHP developer's perspective.

The e-book version of the Pragmatic Programmers release Rails for PHP Developers 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.

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. Raphael 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.

tagged: book review developer rails ruby pragmaticprogrammers

Link:

Andy Jeffries' Blog:
Rebuilding a site from Symfony to Rails
Nov 07, 2008 @ 14:47:20

In a recent entry to his blog Andy Jeffries gives an overview of his site's transition over from one framework to another - away from Symfony and over to Rails.

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.

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.

tagged: symfony rails rebuild overview compare framework

Link:

David Hansson's Blog:
The immediacy of PHP
Apr 04, 2008 @ 16:21:10

As Matthew Weir O'Phinney points out, David Hansson (of Rails fame) has posted a few comments on what he calls the "immediacy of PHP".

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.

and to that, Matthew comments:

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.
tagged: immediacy language web rails helpful scale

Link:

Rails for PHP Developers:
Three New Articles Posted (Scope, Variables & RegEx)
Feb 19, 2008 @ 14:44:00

Mike Naberezny has posted a few more articles to the "Rails for PHP Developers" website (based on this book) covering some more of the basics.

There's three new tutorials posted:

  • Ruby Block Scope - the basics of Ruby block scope, a common point of confusion for PHP developers new to Ruby.
  • Variable Arguments - an article that shows two common API patterns found in Rails, variable arguments and option hashes, and how to implement them both in PHP.
  • Regular Expressions in Ruby - a useful reference that maps all of the common PHP regular expression functions to the equivalents in Ruby.

Check out the rest of the site for even more great content.

tagged: rails development regularexpression variable argument scope ruby

Link:

Community News:
Rails for PHP Developers Website Launched
Jan 03, 2008 @ 20:52:15

Mike Naberezny 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 - Rails for PHP Developers (based on the book published by the Pragmatic Programmers).

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.

There's already some good content there - useful perlisms in ruby, a look at PHP object attributes and some information about the release of the site itself.

tagged: rubyonrails rails developer bridge complement tools rubyonrails rails developer bridge complement tools

Link:

Community News:
Rails for PHP Developers Website Launched
Jan 03, 2008 @ 20:52:15

Mike Naberezny 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 - Rails for PHP Developers (based on the book published by the Pragmatic Programmers).

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.

There's already some good content there - useful perlisms in ruby, a look at PHP object attributes and some information about the release of the site itself.

tagged: rubyonrails rails developer bridge complement tools rubyonrails rails developer bridge complement tools

Link:

O'Reilly Ruby Blog:
7 reasons I switched back to PHP after 2 years on Rails
Sep 24, 2007 @ 13:49:00

The PHP Community is buzzing about a new article, posted on the O'Reilly Ruby blog, about how the author (Derek Silvers of cdbaby.com) made the decision that Ruby on Rails just wasn't right for the project he was working on.

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.

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.)

Recounting the rest of the story, Derek 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:

  • Our entire company's stuff was in php: don't underestimate integration
  • Don't want what i don’t need
  • I love SQL
  • Programming languages are like girlfriends: the new one is better because *you* are better

There's also been several bloggers in the PHP community that have responded to the article:

tagged: oreilly ruby rubyonrails cdbaby rails oreilly ruby rubyonrails cdbaby rails

Link:

O'Reilly Ruby Blog:
7 reasons I switched back to PHP after 2 years on Rails
Sep 24, 2007 @ 13:49:00

The PHP Community is buzzing about a new article, posted on the O'Reilly Ruby blog, about how the author (Derek Silvers of cdbaby.com) made the decision that Ruby on Rails just wasn't right for the project he was working on.

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.

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.)

Recounting the rest of the story, Derek 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:

  • Our entire company's stuff was in php: don't underestimate integration
  • Don't want what i don’t need
  • I love SQL
  • Programming languages are like girlfriends: the new one is better because *you* are better

There's also been several bloggers in the PHP community that have responded to the article:

tagged: oreilly ruby rubyonrails cdbaby rails oreilly ruby rubyonrails cdbaby rails

Link:

Nick Halstead's Blog:
Open source Scaling Ruby on Rails vs PHP
Apr 20, 2007 @ 12:05:00

On his "What I accidently learnt about programming" blog today, Nick Halstead shares some of his thoughts on Open Source scaling functionality in languages, specifically comparing Ruby and PHP.

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.

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.

tagged: rails scaling rubyonrails opensource rails scaling rubyonrails opensource

Link:

Nick Halstead's Blog:
Open source Scaling Ruby on Rails vs PHP
Apr 20, 2007 @ 12:05:00

On his "What I accidently learnt about programming" blog today, Nick Halstead shares some of his thoughts on Open Source scaling functionality in languages, specifically comparing Ruby and PHP.

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.

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.

tagged: rails scaling rubyonrails opensource rails scaling rubyonrails opensource

Link:


Trending Topics: