SitePoint Sponsor

User Tag List

Results 1 to 12 of 12
  1. #1
    SitePoint Zealot
    Join Date
    Dec 2005
    Location
    New York, NY, U.S.
    Posts
    128
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    To Learn Ruby/RoR...?

    Hey everyone, I have been thinking about learning ruby. My past programming expierience is in C++ from high school and some in college too (which I currently still attend), I know some php, but not a lot. I was wondering if I should start learning ruby and RoR and cut back on the PHP more or press on and learn more PHP? I would consider myself more of a designer than a programmer, but I enjoy both very much. I have printed out Why's poignant guide to ruby and created a makeshift book out of it so that I can read it without being online (I don't really like reading books on a computer). Thanks.

  2. #2
    SitePoint Guru
    Join Date
    Aug 2005
    Posts
    986
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why's book is more art than Ruby ;-). You can learn Ruby from it, but i think you should read this too: http://whytheluckystiff.net/ruby/pickaxe/. It's an old, free version of the book, but it's good nonetheless.

    Ruby is a better language than PHP, but if you want to build a simple website with some dynamic pages PHP is the way to go. If you want to learn Ruby because you want to learn a new programming language *or* if you want to make fairly complex webpages you should learn Ruby.

    Ruby is a lot easier to use and learn than PHP because PHP is very inconsistent. On the other hand, Ruby has more advanced concepts like closures. Once you understand it it's easy. Do you remember when you learnt the if-statement? Learning what closures are is like that.

  3. #3
    SitePoint Evangelist
    Join Date
    Apr 2005
    Posts
    485
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Mygly
    Hey everyone, I have been thinking about learning ruby. My past programming expierience is in C++ from high school and some in college too (which I currently still attend), I know some php, but not a lot. I was wondering if I should start learning ruby and RoR and cut back on the PHP more or press on and learn more PHP? I would consider myself more of a designer than a programmer, but I enjoy both very much. I have printed out Why's poignant guide to ruby and created a makeshift book out of it so that I can read it without being online (I don't really like reading books on a computer). Thanks.
    i recommend learning ruby.

    first and foremost, it is more flexible than php.

    for example, i'm working on a program to test for the current isp ip and, if different, send an email with the new ip.

    the app will be a single executable. i'm also working on using tk in order to allow the user to input their smtp server, login, password, etc.

    this is fairly straightforward in ruby, but it would be more difficult in php. using a single executable would be impossible in php.

    ruby is much more powerful and useful.

    you can also set up a php coding style website using ruby, so i'm not so sure that substituting ruby for php is bad. rails would be overkill for a simple site, but ruby could probably work just fine.

    the only downside would appear to be that php tends to be faster, but that isn't a substantial issue in the vast majority of apps.

  4. #4
    SitePoint Zealot
    Join Date
    Dec 2005
    Location
    New York, NY, U.S.
    Posts
    128
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you guys very much for the feedback. Now onto the next part to this question, where do I start learning Ruby. From what I can find there are almost no books on it, most are on ruby with rails integration, and I assume I should learn Ruby by itself first. Any tutorials or recommended books would be great. Give tuts/books for ruby and ruby on rails, and if you can rank them in the order in which they should be read if there is one. Thanks again.

  5. #5
    SitePoint Zealot
    Join Date
    Jul 2005
    Posts
    124
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ruby -
    Programming Ruby
    Ruby Cookbook
    Ruby for Rails

    Rails -
    Agile Web Development with Rails
    Rails Recipes
    Ruby for Rails (I know, in both categories.)

  6. #6
    SitePoint Member
    Join Date
    Aug 2005
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    php has a syntax similar to c++ so it would probably be easier for you in particular.
    free domains
    Daily Domainer News - FREE real-time domain news and commentary!

  7. #7
    throw me a bone ... now bonefry's Avatar
    Join Date
    Nov 2004
    Location
    Romania
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by SnXster
    php has a syntax similar to c++ so it would probably be easier for you in particular.
    actually that's pretty false ... besides having braces, and sharing some common keywords like if, while and for, PHP has nothing to do with C++

  8. #8
    SitePoint Zealot
    Join Date
    Dec 2005
    Location
    New York, NY, U.S.
    Posts
    128
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the list IAIHMB, may I ask why ruby for rails last?

  9. #9
    SitePoint Zealot
    Join Date
    Jul 2005
    Posts
    124
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    They weren't in any particular order, if I had to learn Rails in a short period of time again I would start with Agile Web Development with Rails and then get a decent Ruby and Rails reference.

  10. #10
    SitePoint Zealot
    Join Date
    Dec 2005
    Location
    New York, NY, U.S.
    Posts
    128
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by IAIHMB
    They weren't in any particular order
    Ahh yes, forgive my stupidity Can you learn Ruby while learning rails or is it better to just read up on Ruby first and then rails, like programming ruby and then agile web dev. with rails?

  11. #11
    SitePoint Zealot
    Join Date
    Jul 2005
    Posts
    124
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A lot of people learned Ruby and Rails at the same time, Agile Web Development with Rails even includes a basic Ruby introduction. If you start with Agile Web Development with Rails definitely pick up Ruby for Rails afterwards, it explains a lot of the Ruby isms.

  12. #12
    SitePoint Zealot
    Join Date
    Dec 2005
    Location
    New York, NY, U.S.
    Posts
    128
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks IAIHMB, i'll probably tackle Agile Web Development with Rails first, and then go from there.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •