Description
In this course, you will learn :
- Discover the distinctions between Ruby and other programming languages.
- Learn the fundamentals of Ruby.
- Understand the Ruby operators and methods.
- In Ruby, you'll learn about object-oriented programming.
- Learn about the Ruby debugging process and Ruby Version Management (RVM).
- Learn about the Ruby testing process.
Syllabus :
1. First Steps
- Runtime Environments
- Writing Our First Program
- REPL
2. Fundamentals of Ruby
- Variables in Ruby
- String Addition and Multiplication
- Data Types in Ruby
- Everything Is An Object in Ruby (Proof)
- Type Casting (Type Conversion)
- Fractional Numbers
- String Interpolation in Ruby
- Bang!
- Blocks in Ruby
- Blocks with Parameters
- Methods of Ruby’s Integer Class
3. Conditional Statements
- Testing Variables and Branching
- Combining Conditions
- Some Useful Ruby Methods
- Random Numbers
4. Operators and Methods
- Ternary Operator
- Loading Indicator
- Methods
- Judgment Day Emulator
- Instance and Local Variables
- Programming a Slot Machine
5. Arrays
- Introduction to arrays
- Initializing Arrays
- Accessing Arrays
- Battle of the Robots
- Arrays of Arrays: Two-dimensional arrays
- Arrays of Arrays: Referencing
- Accessing Arrays of Arrays
- Multidimensional Arrays
- Gems
- Closer Look into Arrays
- Elements in Arrays
- Symbols
6. Hash
- Hash
- Hash in Ruby
- Other Types as Hash Values
- JSON-structure of a real-world application
- English-Spanish dictionary
- Comparison of Hashes and Arrays
- Methods of Hash Class
- Setting a Default Value in Hash
- Passing Parameters to Methods
- HashSets
- Iteration over Hash Elements
- The “dig” method
7. Fun with Object Oriented Programming
- Objects and State
- Scope of Variables
- Significance of State
- Example of State
- Duck Typing and Polymorphism
- Inheritance
- Subtyping vs Inheritance
- Class methods
- The truth about Object-oriented Programming
8. Debugging in Ruby
- Debugging in Ruby
- Debugging Using the Output to the Console
- Debugging Using a Console Debugger
9. Ruby Version Manager
- Introduction to the Version Management
- Semantic Versioning
- Multiple Ruby Versions
10. Testing Ruby Programs
- Introduction to Software Testing
- Rspec Testing Framework
- A TestCase Scenario