SitePoint Sponsor

User Tag List

Results 1 to 10 of 10

Thread: What is ruby?

  1. #1
    SitePoint Guru team1504's Avatar
    Join Date
    May 2010
    Location
    Okemos, Michigan, USA
    Posts
    732
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    What is ruby?

    Hi,
    i have never used ruby before, but i was wondering if someone would be nice enough to tell me what it is used for.

    I am guessing that it is a server side site programming language, as PHP and ASP are, but why is it its own language?

    I dont beleive I have ever seen any life examples and only heard of faint discussion on people using it?

    Is it out of date or does it only compile on certain server or is there some specific things that only Ruby can achieve?

    In other words, what makes Ruby, Ruby? and why would one chose to programme in Ruby?

    Thanks for all your help!

    Best regards,
    Team 1504

  2. #2
    SitePoint Member
    Join Date
    Jun 2010
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ruby is a scripting language like php or python. It is fully object oriented and also has a very compact syntax

  3. #3
    Team ********* Louis Simoneau's Avatar
    Join Date
    Sep 2009
    Location
    Melbourne, Australia
    Posts
    228
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hi,
    i have never used ruby before, but i was wondering if someone would be nice enough to tell me what it is used for.

    I am guessing that it is a server side site programming language, as PHP and ASP are, but why is it its own language?
    Ruby is a scripting language, like Python or Perl. It's used server-side, most frequently as part of the Ruby on Rails and Sinatra frameworks, but can also be used for writing scripts to run locally.

    I dont beleive I have ever seen any life examples and only heard of faint discussion on people using it?
    Twitter was originally built in Ruby on Rails, as was Hulu. All the 37signals apps (basecamp, highrise, etc.) are built in Rails, so are GitHub, Shopify, getSatisfaction, and tons of other high-profile sites.

    Is it out of date or does it only compile on certain server or is there some specific things that only Ruby can achieve?
    Definitely not out of date, it's under active development. It's interpreted, so it doesn't compile at all (like PHP). I don't think there's anything that only Ruby can achieve (other than making programmers happy )

    In other words, what makes Ruby, Ruby? and why would one chose to programme in Ruby?
    Most people who like ruby like it because it has very short and readable syntax (compared with the more spaghetti-like PHP), and because it's purely object oriented: everything in Ruby is an object, and behaves like an object.

    Many of the key selling points are summarized on the Ruby site's about page:

    http://www.ruby-lang.org/en/about/

    Hope that helped! Let me know if you have more questions!

  4. #4
    SitePoint Member
    Join Date
    Jul 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up

    Ruby -- It acts like oops language like Java,C++ and also acts like scripting language such as Perl, Python.

    Rails is the killer application. Except Rails, ruby has nearly 40 most importnat libraries in it.
    They ar esuch as ,

    Watir
    Selenium
    Cucumber
    Bret-Watircraft
    Etc..,

  5. #5
    SitePoint Guru team1504's Avatar
    Join Date
    May 2010
    Location
    Okemos, Michigan, USA
    Posts
    732
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hello jazzezravi— welcome to sitepoint! Thank you for answering my question as your First post.
    I am currently debating between perl & Ruby (not on rails not yet)

  6. #6
    SitePoint Member
    Join Date
    Jul 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi team1504,

    Thanks. With the help of ruby we can do the following things
    http://bit.ly/j_demo_watir
    http://bit.ly/j_demo_watir2

    I am sure Ruby is little bit best with Perl for scripting purpose.


    Thanks
    Raveendran
    <snip/>
    Last edited by ScallioXTX; Jul 16, 2010 at 03:16. Reason: removed fake signature - wait a total of 90 days to expire to avail of a signature

  7. #7
    SitePoint Guru team1504's Avatar
    Join Date
    May 2010
    Location
    Okemos, Michigan, USA
    Posts
    732
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Question

    Hi,
    Could you help me understyand what each of those links are supposed to do?

    Thanks in advance,
    Team 1504

  8. #8
    SitePoint Member
    Join Date
    Jul 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile

    Hi Team 1504,

    With the hep of ruby,

    1. We can able to Upload N number of video files automatically at a time in to Youtube account.

    2. Both of the links demonstrated that functionality.

    3. Automatically open browsers,fill forms,read data from Excel/Text/Doc/Video files and fill/upload in to youtube.

    Thanks

  9. #9
    SitePoint Guru team1504's Avatar
    Join Date
    May 2010
    Location
    Okemos, Michigan, USA
    Posts
    732
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thank you! I have currently decided to learn Perl and then probably Ruby (without rails) and lastly Python.
    I love Ruby's syntax but dislike Python's only one way to do something because I am creative. However I love Python's applications especially with GUI. Hmm who knows what ill choose after Perl

    Thanks & Best Regards,
    Team 1504

  10. #10
    SitePoint Wizard Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,283
    Mentioned
    51 Post(s)
    Tagged
    2 Thread(s)
    Quote Originally Posted by Louis
    It's interpreted, so it doesn't compile at all (like PHP).
    Is that true? Team decided on Perl, which I know does compile (sometimes, in parts or in whole, depending on what you're doing... giving you both compile-time errors and run-time errors) and Python does something similar (both compile to byte-code). Are there no compiling parts of Ruby?


Tags for this Thread

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
  •