Ruby on Rails or PHP ?

Discussion in 'Web Design and Development' started by fab5freddy, Apr 13, 2009.

  1. fab5freddy macrumors 65816

    fab5freddy

    Joined:
    Jan 21, 2007
    Location:
    Heaven or Hell
    #1
    I am about to start learning a web scripting language,
    and want to choose between Ruby on Rails and PHP .......

    Which one is easier to start with ?

    all i know now is HTML and a little CSS.
     
  2. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #2
    They are both comparable in terms of ease of use.
     
  3. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #3
    PHP might be a touch easier to get started with from a perspective that there's more PHP tutorials out there. Also, web hosts more commonly support PHP than Ruby on Rails. Rails also tends to be more for database oriented web apps whereas PHP is a little broader. So, it kind of depends on what you intend to do with the knowledge. You won't go wrong with either one though.
     
  4. pigoz macrumors member

    Joined:
    Aug 24, 2007
    Location:
    Milan, Italy
    #4
    You are comparing a language (PHP) to a framework (Ruby on Rails). You should choose a PHP framework (if you want to start with PHP choose a framework: CakePHP or symfony).

    My personal preference is Ruby on Rails. I love the Ruby programming language very much for some of its features.
     
  5. Cabbit macrumors 68020

    Cabbit

    Joined:
    Jan 30, 2006
    Location:
    Scotland
    #5
    I don't agree with starting any sort of programing with a framework. I have always been taught to learn how a language works in its most raw form in order to understand it and i believe in that.

    Learning how the language syntax works and is structured is more important than learning a framework that you go "i want a blog make me one". Though that is a exaggeration as frameworks can be much more complex it still holds true that it is best to get the fundamentals correct before moving on to the shortcuts.

    I see the biggest issue with a framework comes when you want to do something the framework does not supply you will be left with having to learn all over again.

    Start with the basics, follow some tutorials on ether and get to grips with the basics like variables, loops, and conditional statements then look at the different frameworks and find out which one works for you. I have not yet got to grips with any frameworks just yet as it has taken me a long time to learn how to make functions and classes and a few built in functions that i wanted to get a good rounded knowledge in. Now that i have these skills i am looking at the frameworks and how these would help me develop my applications so far i see little need for them and to me they just make it seem more complex for now having to read though the documentation of all the classes they provide.

    If you are planning on building data driven websites you will most certainly want to take a look at SQL syntax for preforming database quires and how to produce a .htaccess file for securing your website as i have had to spend a few weeks plugging holes with the aid of my friend whom is quite the hacker.

    For deciding between Ruby and PHP my personal opinion on the matter just now is that Ruby and its framework Ruby on Rails is rather gimmicky and is no better in the long run as PHP and Zend. From what i have read in articles though there is a lot of praise for Ruby on Rails in a lot of situations developers are better served with PHP as it is more mature and scales better with large applications there is also more work for PHP developers and a much larger collection of tutorials, sample code, and open-source classes for you to learn from.
     
  6. Delameko macrumors member

    Joined:
    May 1, 2008
    #6
    I think that really depends on your needs. I started learning Rails a few years back, but the need to know how it all works sent me back to creating apps in Ruby - which is invaluable to me and ends up making me a better developer.

    However, a lot of my friends are designers and only want/need enough knowledge to create simple apps. They're turning to Cake or Ignition, and they can get sites up quickly. Now rather than just designing sites they can create the entire site for their clients, and in only a couple of weeks. Plus the learning curve is not as steep.

    That's outdated information, Rails scales just fine, has for a while now. And there are plenty of tutorials and resources out there - at the end of the day it just comes down to whatever you prefer. I love working in Ruby, it's by far my favourite language (I program in Python and PHP at my job).

    Also I'd point out that although it's true there are more PHP jobs advertised, there is also a lot more competition for the jobs (at least where I live). I went to two Rails interviews last month and for one of them I was the only person who applied.
     

Share This Page