The document introduces Ruby and Ruby on Rails. It discusses that Ruby is an object-oriented and interpreted programming language. It highlights some key aspects of Ruby including that everything is an object, Ruby's powerful arrays and built-in regular expressions. It also discusses how Ruby classes are open and the expressiveness of blocks. The document then introduces Ruby on Rails, noting its creators and key principles of convention over configuration, DRY principle, and high productivity. It provides some examples of Rails applications and compares Rails to other web frameworks. In closing, it invites questions and provides references for further reading.
3. Ruby
“more powerful than Perl, and more OO
than Python”
“interpreted, object-oriented, portable,
untyped, garbage collected”
4. Yukihiro ‘Matz’ Matsumoto,
creator of Ruby:
“Often people, especially
computer engineers, focus on the
machines. They think, quot;By doing
this, the machine will run faster.
By doing this, the machine will
run more effectively. By doing
this, ... But in fact we need to
focus on humans, on how
humans care about doing
programming or operating the
application of the machines. We
are the masters. They are the
slaves.”
5. Everything is Object
>> 2009.class # → Fixnum
>> :lets_start.class # → Symbol
>> quot;ruby is suckingquot;.capitalize
# → quot;Ruby is suckingquot;
>> 3.times {puts quot;Сайн уу?quot;}
Сайн уу?
Сайн уу?
Сайн уу?