New PHP to Ruby Reference

  • published on March 20th, 2008

    If you look up at the navigation bar, you’ll see we’ve added a new Reference section.

    When you’re starting out with Ruby and Rails, often times you’ll know how to do something in PHP and need a way to map that knowledge into the Ruby world. For example, you might ask yourself, “What’s the equivalent of fopen in Ruby?”

    Now, you can get the answer just like you would on php.net — http://railsforphp.com/fopen

    You can also enter a PHP function name into the search box at the top of every page. If we have a reference page for that function, you’ll be taken directly there.

    PHP and Ruby are great complementary tools. You might find that you like Ruby for other tasks like command line scripts. With this in mind, our reference differentiates between Ruby and Rails. Solutions that only work in Rails, such as the one for http_build_query, are clearly marked as such.

    To start out, we’ve seeded the reference with many of the more common functions for working with strings, regular expressions, and the filesystem. In the coming weeks, we’ll continue to expand it.

5 comments

  • comment by Rick 20 Mar 08

    Wow. I’m the epitome of your target audience — a professional PHP developer for 8 years who’s been experimenting with Ruby and Rails for about 2 months. This site was already helpful, but with this addition it’s going to be downright indispensable. Thank you!

    I haven’t purchased your book, but only because hard-copy programming references have never really been my thing. You should consider adding a PayPal donation link. I’d use it.

  • comment by Pierre 22 Mar 08

    Thank you for your great site. It really helps learning Ruby/Rails if you’re programming PHP ;-)

  • comment by Jason Miller 6 Jun 08

    Thank you for providing such a valuable resource for PHP developers which are wanting to learn and develop using Ruby on Rails. There wasn’t any specific resource available short of the drudgery of reading through a Ruby book, and then trying to follow instructions on how to build a rails app. The paradigm shift can be quite confusing and frustrating, but your book seems to explain something, cause me to question what I’m seeing, and then right thereafter clarify what I was confused about.

    For instance at one point I saw ‘%w( fish sheep bacon )’ in an example, and I was like “WTF? Here is another one of those little things they’re going to show but not explain, and I’m not going to get what I need to have an integrated understanding of how this works”…and then on the next page it was explained. What a breath of fresh air. Its all coming together now.

  • comment by Klaus Paiva 18 Jun 08

    Is there any way to contribute with this project?

    Thanks!

  • comment by Mike 12 Sep 08

    Thanks for providing this site for php developers who want to try Ruby. I find http://www.references2.com is useful for Ruby, Rails and PHP references. Great when using several technonlogies at the same time

Post a comment


We welcome your participation but please note we reserve the right to remove any comments that we think are not relevant or do not contribute to the discussion.