Ruby, as an emerging language, has developed rapidly over the past few years with the help of the rails killer application. This articleArticleThis is my summary of Ruby over the past month. Of course, the main tone is for reference.
Peter Cooper's five essentials for your ruby toolbox. To put it bluntly, let's start. Summary:
Rubygems
A good id
Ruby programming language is developed by the Japanese pine line, is a simple and fast object-oriented programming language, today mainly talk about the ruby framework--ruby on Rails (http://www.maiziedu.com/course/ruby/), Maybe some friends don't like Ruby, but as a languag
Opening
Empty is the color, and the color is empty.Empty and empty, in the Ruby language, everything is an object.
Ruby is an object-oriented language (object oriented Language), and the object-oriented concept is much more robust than other languages.
The raw type data and object type data in Java are not present in Ruby. Most of the stuff in
Brief introduction
The Ruby on Rails framework has been widely watched since its inception and, guided by ideas like "Don't repeat Yourself" and "contract is superior to configuration", rails gives Web developers a very high level of development efficiency. ActiveRecord's flexibility allows you to use a very easy-to-use Hibernate without cumbersome configuration, Github and Rubygems's rich and varied rails plug-ins are another powerful guarantee for
Install and uninstall Ruby in Ubuntu
In ubuntu12.04, run the following command to install Ruby 1.8 by default.1 $ sudoapt-Get installruby
I. The following describes how to install ruby1.9.3 (in some versions of Linux, 1.8 must be installed first)
Install curl first. If you have installed curl, you will be prompted that curl is already in the latest version.1 $ sudo apt-Get installcurl
Next, install the
0. Reply content: First, let's talk about your point of view: you must first understand what the goals of these script languages are, and the answers to different goals are different.
Let's talk about my personal experience (perl ruby python) for your reference:
0.) at school, I learned about perl ruby and python.
Perl is a bunch of weeds, and the impression is like a village girl on a construction site (n
Brief introduction
Twitter is now the leader in social networking. Twitter only allows users to post no more than 140 characters, and who would have guessed that the previously insignificant small web site is now worth more than 1 billion of billions of dollars, has millions of users, has built a lot of apps on Twitter, and that new developers are ready to invest in the wave.
This article does not intend to introduce Twitter (in fact, it is not necessary). Instead, this article describes how t
Shortly before learning Ruby, I found that Ruby and Python were very much alike, so they were tested and compared, and they knew there was a ready-made online ... Here are the characteristics of the test results sequence (including lists and tuples, etc.) with sharding: It may be convenient to extract the specific elements, temporarily feel useless: note is used: separate two numbers. The minus sign indica
Both PHP and Ruby on Rails have a large number of their own loyal fans. Comparing the two is a difficult choice in itself. Whoever wins will attract the saliva of the other's fans. By this effect, developers often seem hesitant to choose between the two. Although the starting point of this article is a comparison, it is not a one-sided-style singing and singing, but a dialectical synthesis of contrast. No good or bad, suitable for their own is the bes
1, with java,c# and other languages of the Try...catch...finally...throw, Ruby Begin/end ... rescue...ensure ... raise to handle the exception, retry can be used in rescue. You can use either rescue or ensure, when both are used, rescue must be in front of ensure.2, $arr 3, the first letter of the class name should be capitalized, such as student, the method name and parameter name should start with a lowercase letter or begin with an underscore, such
Build RubyMine + Ruby On Rails + MySQL development environment in Windows
I recently took over a mobile phone project. Some problems have been encountered during the environment setup process. We have recorded the problems in the following article and offered our solutions.
Development Environment: Windows 2003; JetBrains RubyMine6.3.3
1. download the latest version of ruby(rubyinstaller-2.0.0-p598.exe, the
Ruby + Apache + MySQL for Linux
Ruby is a very interesting open-source scripting language that supports Windows/Linux and other platforms. It can be used to develop games, network applications, and system management,CGI program, etc. It is concise, elegant, and highly efficient to execute, and now there are many mature frameworks to support it. However, it is currently not widely used in China. If you are i
Ruby pioneers talk about the shortcomings of this programming language
Ruby creators song benzihong and Rails creator David Heinemeier Hansson make frank comments on the language.
As a dynamic language originally released in 1995, Ruby was widely praised for its convenience advantage and often appeared on the popular language selection list. However,
Loops in Ruby are used to execute the same code block several times. This section details all the looping statements that are supported by Ruby.Ruby While statementGrammar
While conditional [does]
code
end
When conditional is true, code is executed. The while loop is conditional by preserving the word do, a newline character, a backslash, or a semicolon; , to separate from the code.Instance
#!/usr/bin/
Ruby on Rails has always been popular in China and the world. You will see stacked Ruby and Java in Java websites, search engines, and hot forums, and the two of them seem to be incompatible with each other. Even oreilly, a master who has been supporting Java for many years, began to publish Ruby books to lead people out of Java. The scope of this discussion is g
Regular Expression
Most of Ruby's built-in types and otherProgramming LanguageVery similar. Mainly include strings, integers, floats, and arrays. However, only the script language,
Such as Ruby, Perl, and awk provide support for built-in expression types. It is a powerful text processing tool, though the regular expression is relatively hidden.
They are much different from simply adding interface class libraries.
Regular Expressions are a simp
Ruby is a purely object-oriented language, and all projects seem to be in Ruby as an object. Each value in Ruby is an object, even the most primitive thing: a string, a number, or even true and false. Even if a class itself is an object, it is an instance of class. This chapter will cover the object-oriented aspects of Ruby
D Guadalcanal recently wanted to do a website, in addition, the old has learned a dynamic language idea, to meet the two conditions of the programming language, Ruby, Python is the most appropriate two languages. Now Ruby on Rails is in the ascendant, shine! So, you've chosen Ruby to start learning from scratch.
The day before yesterday saw Ruby's iterator, for
Ruby provides a complete set of I/O-related methods that are implemented in the kernel (Kernel) module. All I/O methods derive from the IO class.
Class IO provides all the underlying methods, such as read, write, gets, puts, ReadLine, getc, and printf.
This section explains the basic I/O functions available in all Ruby. For more functions, check out Ruby's IO class.puts statement
In the previous section,
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.