Chapter I
(avr. time for this chapter: 1 day)
Hi. Ruby is an interpreted, high-level, general-purpose programming language which supports multiple programming paradigms. It was designed with an emphasis on programming productivity and simplicity. In Ruby, everything is an object, including primitive data types. It was developed in the mid-1990s by Yukihiro "Matz" Matsumoto in Japan.
Ruby is dynamically typed and uses garbage collection and just-in-time compilation. It supports multiple programming paradigms, including procedural, object-oriented, and functional programming.
In this chapter the objective is to look at the world of ruby, which will serve as a basis for the next chapters where we will be delving into one of the frameworks that work with ruby, Rails.
The idea is to familiarize yourself with the basics.
So, let's code
Let's Start
Ruby in Twenty Minutes (quick start)
This is a small Ruby tutorial that should take no more than 20 minutes to complete: https://www.ruby-lang.org/en/documentation/quickstart/
It makes the assumption that you already have Ruby installed. If not, checkout this link: [https://www.ruby-lang.org/en/documentation/installation/] (https://www.ruby-lang.org/en/documentation/installation/)
Ruby Koans
The Koans walk you along the path to enlightenment in order to learn Ruby. The goal is to learn the Ruby language, syntax, structure, and some common functions and libraries. Testing is not just something we pay lip service to, but something we live. It is essential in your quest to learn and do great things in the language. http://rubykoans.com
- Recommended Koans:
- About_arrays.rb
- About_blocks.rb
- About_classes.rb
- About_control_statements.rb
- About_hashes.rb
- About_iteration.rb
- About_methods.rb
- About_strings.rb
- about_symbols.rb
Ruby Tutorial
This tutorial has been prepared for beginners to help them understand the basic to advanced concepts related to Ruby Scripting languages. https://www.tutorialspoint.com/ruby/index.htm
- Ruby - Classes and Objects
- Ruby - Variables
- Ruby - Operators
- Ruby - Methods
- Ruby - Blocks (same as Koans)
- Ruby - Modules
- Ruby - Exceptions