- Skills Directory
- Ruby
Ruby
Ruby is an interpreted, dynamic, open-source programming language with a focus on simplicity and productivity. Ruby focuses on POLA (Principle of Least Astonishment), meaning it aims to minimize confusion for experienced users.
This competency area includes exploring the basics of Ruby programming, including constructors, operators, loops, methods, and objects. Also includes learning to write simple modules, working with Arrays, and input-output, among others.
Key Competencies:
-
Basics of Ruby Programming - Installing a Ruby interpreter. Writing a simple Ruby program, running a ruby program. Able to open up Interactive Ruby Console (IRB) and able to run simple commands.
-
Ruby’s literal Constructors & Operators - Understanding the basic operations of String, Symbol, Array, Hash & Range, and working with basic arithmetic operators and precedence.
-
Control Flow and loops - Conditional code execution using If, If/Else, Case Statements. Unconditional looping using loop/do, Conditional looping using while and until. Looping based on a list of values.
-
Methods - Defining methods, calling methods, with or without parameters, arguments, and calling syntax.
-
Ruby Objects - Creating simple Classes and objects, instantiating objects, and calling methods on objects. Working with Instance variables, Getter and Setter Methods, attr_reader, atter_accessor, attr_writer. Understanding of simple class inheritance mechanisms.
-
Modules - Writing a simple module with methods. Including a module in a class - Include & Extend a module.
-
Collections - Arrays - Exploring Array operations such as push, shift, concat, flatten, reverse, join, etc. Executing Simple Array Querying Operations: size, empty?, include?, count, first, last, sample, etc.
-
Input & Output - Reading input from the keyboard and displaying output to console, Reading from and writing to files.