Getting Started with Ruby (i)

Source: Internet
Author: User

Objective

The language is rarely heard, it may not be used to hear too much about Ruby, work requires the language, need to start learning the language from 0, slowly learning simply ... It's amazing ... forgive me for being shallow. Originally very early has been born, the garden also has a large number of years ago, others wrote Ruby, seemingly domestic has been very few people with this script language, plus now more is inclined to python, and I did not catch this trip in time car, but also to learn something too much, if each is a little less than the loss. Perhaps this language in the future will not be used or involved, perhaps for the future to learn Python help, the knowledge of receiving goods is not afraid of much, afraid not to learn! The historical origins of Ruby are not involved, and we go into Ruby's Hello World next.

Software download

Ruby Install:ruby

RubyMine Install:rubymine

Cracked and attention

(1) Crack: The above rubymine link is the latest version, after installation needs to register and activate, Various activation codes on the Internet and the basis of keygen.exe to generate the activation code have been invalidated, I am a variety of search, various tests, in order not to learn Ruby children's shoes waste unnecessary time is hereby explained: The page appears to register activation select "License Server" and enter "/HTTP 15.idea.lanyus.com/"Click OK, then you know, activated, it is so simple."

(2) Note: When you install Ruby and then install RubyMine, the external library Ruby is automatically loaded when you open RubyMine to create a ruby file, but if you first install RubyMine to create a ruby file, you find that there is no smart hint to install ruby, When you open RubyMine, you'll notice that there's no smart tip, you just need to delete the project where Ruby was created, and then recreate the project and create a Ruby file with smart hints. As shown below, you're successful.

HelloWorld

Let me see what Ruby's inner world is like, and Ruby will say hello to the world.

How amazing are you? C # calculates 1 to 100 of the and
  var 0 ;    for (int0; i++)  {      + = i;  }  Console.WriteLine (sum);        
Ruby calculates 1 to 100 of the and
00(1... 101 do |elem|   sum+ =I  i+ =1endputs sum    

Conclusion

Ruby's magic and strong self-evident, its concise syntax let me sigh for one. The follow-up will continue to explain Ruby's underlying syntax in a gradual manner. Follow me come on (of course, the latest EF I will not fall, follow-up will be the corresponding timely explanation)!

Getting Started with Ruby (i)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.